Skip to main content

Batch

A batch variable is a custom list variable that contains variables and supplemental information needed to update into the object repository

Construction​

A batch can be constructed in the following ways:

// RECOMMENDED: Creating a batch from the PROCESS variable
batch=PROCESS.createBatch()

// Directly creating a batch
batch = Batch()

Creating a batch using the createBatch of a process sets the following properties on the batch:

  • service as the service property on the process
  • name as the name property on the process
  • correlationId as the unique executionId of the process

Properties​

A batch has the following properties:

NameDescriptionType
idThe id of the batchScalar(String)
loaderThe name of the loaderScalar(String)
nameThe name of the batch or process that runs this batchScalar(String)
serviceThe service name of the batch or process that runs this batchScalar(String)
sizeThe number of objects in the batchScalar(Int)
descriptionThe description of this listString
fastIndicates that this batch is loading events using the fast method, no versioning or correctionsBoolean
historyIndicates that this batch is loading historyBoolean

Methods​

A batch variable has the following methods:

NameDescriptionReturn Type
add(Object)Adds an object to the batchthis
addAll(List(Object))Adds all the objects from the supplied list to this batchthis
subList(int,int)Gets a list with the elements in the supplied rangeList
remove(index)Removes an element from the list at the specified position (0 being first)Void
remove(item)Removes an element from the listVoid
set(index, element)Replaces the element at the specified position in this list with the specified elementVoid