Get Batch
Retrieves a batch by id, according to the Batch
interface in the engine.
Method
GET /batch/{id}
Parameters
Path Parameters
Name | Description |
---|---|
id | The id of the batch to be retrieved. |
Result
A JSON object corresponding to the Batch
interface in the engine.
Its properties are as follows:
Name | Type | Description |
---|---|---|
id | String | The id of the batch. |
type | String | The type of the batch. See the User Guide for more information about batch types. |
totalJobs | Number | The total jobs of a batch is the number of batch execution jobs required to complete the batch. |
jobsCreated | Number | The number of batch execution jobs already created by the seed job. |
batchJobsPerSeed | Number |
The number of batch execution jobs created per seed job invocation.
The batch seed job is invoked until it has created all batch execution jobs required by
the batch (see totalJobs property).
|
invocationsPerBatchJob | Number |
Every batch execution job invokes the command executed by the batch
invocationsPerBatchJob times. E.g., for a process instance
migration batch this specifies the number of process instances which
are migrated per batch execution job.
|
seedJobDefinitionId | String | The job definition id for the seed jobs of this batch. |
monitorJobDefinitionId | String | The job definition id for the monitor jobs of this batch. |
batchJobDefinitionId | String | The job definition id for the batch execution jobs of this batch. |
suspended | Boolean | Indicates whether this batch is suspended or not. |
tenantId | String | The tenant id of the batch. |
createUserId | String | The id of the user that created the batch. |
startTime | String | The time the batch was started. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ . |
executionStartTime | String |
The time the batch execution was started, i.e., at least one batch job has been executed.
Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ .
|
Response codes
Code | Media type | Description |
---|---|---|
200 | application/json | Request successful. |
404 | application/json | Batch with given id does not exist. See the Introduction for the error response format. |
Example
Request
GET /batch/aBatchId
Response
Status 200.
{
"id": "aBatchId",
"type": "aBatchType",
"totalJobs": 10,
"batchJobsPerSeed": 100,
"jobsCreated": 10,
"invocationsPerBatchJob": 1,
"seedJobDefinitionId": "aSeedJobDefinitionId",
"monitorJobDefinitionId": "aMonitorJobDefinitionId",
"batchJobDefinitionId": "aBatchJobDefinitionId",
"suspended": false,
"tenantId": "aTenantId",
"createUserId": "aUserId",
"startTime":"2013-01-23T13:42:42.000+0200",
"executionStartTime":"2013-01-23T13:42:43.000+0200"
}