Download OpenAPI specification:Download
OpenApi Spec for Camunda Platform REST API.
Queries for a list of authorizations using a list of parameters. The size of the result set can be retrieved by using the Get Authorization Count method.
id | string Filter by the id of the authorization. |
type | integer <int32> Filter by authorization type. (0=global, 1=grant, 2=revoke). See the User Guide for more information about authorization types. |
userIdIn | string Filter by a comma-separated list of userIds. |
groupIdIn | string Filter by a comma-separated list of groupIds. |
resourceType | integer <int32> Filter by an integer representation of the resource type. See the User Guide for a list of integer representations of resource types. |
resourceId | string Filter by resource id. |
sortBy | string Enum: "resourceType" "resourceId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /authorization?userIdIn=jonny1,jonny2
[- {
- "id": "anAuthorizationId",
- "type": 0,
- "permissions": [
- "ALL"
], - "userId": "jonny1",
- "groupId": null,
- "resourceType": 1,
- "resourceId": "*"
}, - {
- "id": "anotherAuthorizationId",
- "type": 0,
- "permissions": [
- "CREATE",
- "READ"
], - "userId": "jonny2",
- "groupId": null,
- "resourceType": 1,
- "resourceId": "*",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "f8259e5d-ab9d-11e8-8449-e4a7a094a9d6"
}
]
The OPTIONS request allows you to check for the set of available operations that the currently
authenticated user can perform on the /authorization
resource. Whether the user can perform an operation
or not may depend on various factors, including the users authorizations to interact with this
resource and the internal configuration of the process engine.
OPTIONS /authorization
{- "links": [
]
}
Performs an authorization check for the currently authenticated user.
permissionName required | string String value representing the permission name to check for. |
resourceName required | string String value for the name of the resource to check permissions for. |
resourceType required | integer <int32> An integer representing the resource type to check permissions for. See the User Guide for a list of integer representations of resource types. |
resourceId | string The id of the resource to check permissions for. If left blank, a check for global permissions on the resource is performed. |
userId | string The id of the user to check permissions for. The currently authenticated
user must have a READ permission for the Authorization resource. If |
GET /authorization/check?permissionName=READ,resourceName=USER,resourceType=1,resourceId=jonny
{- "permissionName": "READ",
- "resourceName": "USER",
- "resourceId": "jonny",
- "authorized": true
}
Queries for authorizations using a list of parameters and retrieves the count.
id | string Filter by the id of the authorization. |
type | integer <int32> Filter by authorization type. (0=global, 1=grant, 2=revoke). See the User Guide for more information about authorization types. |
userIdIn | string Filter by a comma-separated list of userIds. |
groupIdIn | string Filter by a comma-separated list of groupIds. |
resourceType | integer <int32> Filter by an integer representation of the resource type. See the User Guide for a list of integer representations of resource types. |
resourceId | string Filter by resource id. |
GET /authorization/count?userIdIn=jonny1,jonny2
{- "count": 2
}
Creates a new authorization.
type | integer or null <int32> The type of the authorization (0=global, 1=grant, 2=revoke). See the User Guide for more information about authorization types. |
permissions | Array of strings or null An array of Strings holding the permissions provided by this authorization. |
userId | string or null The id of the user this authorization has been created for. The value |
groupId | string or null The id of the group this authorization has been created for. |
resourceType | integer or null <int32> An integer representing the resource type. See the User Guide for a list of integer representations of resource types. |
resourceId | string or null The resource Id. The value |
{- "type": 0,
- "permissions": [
- "CREATE",
- "READ"
], - "userId": "*",
- "groupId": null,
- "resourceType": 1,
- "resourceId": "*"
}
POST /authorization/create
{- "id": "anAuthorizationId",
- "type": 0,
- "permissions": [
- "CREATE",
- "READ"
], - "userId": "*",
- "groupId": null,
- "resourceType": 1,
- "resourceId": "*",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "f8259e5d-ab9d-11e8-8449-e4a7a094a9d6",
- "links": [
- {
- "method": "GET",
- "rel": "self"
}, - {
- "method": "PUT",
- "rel": "update"
}, - {
- "method": "DELETE",
- "rel": "delete"
}
]
}
Retrieves an authorization by id.
id required | string The id of the authorization to be retrieved. |
GET /authorization/anAuthorizationId
{- "id": "anAuthorizationId",
- "type": 0,
- "permissions": [
- "CREATE",
- "READ"
], - "userId": "*",
- "groupId": null,
- "resourceType": 1,
- "resourceId": "*",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "f8259e5d-ab9d-11e8-8449-e4a7a094a9d6"
}
The OPTIONS request allows you to check for the set of available operations that the currently
authenticated user can perform on a given instance of the /authorization
resource.
Whether the user can perform an operation or not may depend on various factors, including the users
authorizations to interact with this resource and the internal configuration of the process engine.
id required | string The id of the authorization to be retrieved. |
OPTIONS /authorization/anAuthorizationId
{- "links": [
- {
- "method": "GET",
- "rel": "self"
}, - {
- "method": "PUT",
- "rel": "update"
}, - {
- "method": "DELETE",
- "rel": "delete"
}
]
}
Updates an authorization by id.
id required | string The id of the authorization to be updated. |
permissions | Array of strings or null An array of Strings holding the permissions provided by this authorization. |
userId | string or null The id of the user this authorization has been created for. The value |
groupId | string or null The id of the group this authorization has been created for. |
resourceType | integer or null <int32> An integer representing the resource type. See the User Guide for a list of integer representations of resource types. |
resourceId | string or null The resource Id. The value |
{- "permissions": 16,
- "userId": "*",
- "groupId": null,
- "resourceType": 1,
- "resourceId": "*"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Queries for batches that fulfill given parameters. Parameters may be the properties of batches, such as the id or type. The size of the result set can be retrieved by using the Get Batch Count method.
sortBy | string Enum: "batchId" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
batchId | string Filter by batch id. |
type | string Filter by batch type. See the User Guide for more information about batch types. |
tenantIdIn | string Filter by a comma-separated list of |
withoutTenantId | boolean Only include batches which belong to no tenant.
Value can effectively only be |
suspended | boolean A |
createdBy | string Only include batches that were started by this user id. |
startedBefore | string <date-time> Only include batches that were started before the given date. By default,
the date must have the format |
startedAfter | string <date-time> Only include batches that were started after the given date. By default,
the date must have the format |
withFailures | boolean Only include batches having jobs with failures.
Value can only be |
withoutFailures | boolean Only include batches having jobs without failures.
Value can only be |
Response for GET /batch?type=aBatchType&sortBy=batchId&sortOrder=asc
[- {
- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "batchJobsPerSeed": 100,
- "jobsCreated": 10,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "suspended": false,
- "tenantId": "aTenantId",
- "createUserId": "aUserId"
}
]
Requests the number of batches that fulfill the query criteria. Takes the same filtering parameters as the Get Batches method.
batchId | string Filter by batch id. |
type | string Filter by batch type. See the User Guide for more information about batch types. |
tenantIdIn | string Filter by a comma-separated list of |
withoutTenantId | boolean Only include batches which belong to no tenant.
Value can effectively only be |
suspended | boolean A |
createdBy | string Only include batches that were started by this user id. |
startedBefore | string <date-time> Only include batches that were started before the given date. By default,
the date must have the format |
startedAfter | string <date-time> Only include batches that were started after the given date. By default,
the date must have the format |
withFailures | boolean Only include batches having jobs with failures.
Value can only be |
withoutFailures | boolean Only include batches having jobs without failures.
Value can only be |
Response for GET /batch/count?type=aBatchType
{- "count": 1
}
Queries for batch statistics that fulfill given parameters. Parameters may be the properties of batches, such as the id or type. The size of the result set can be retrieved by using the Get Batch Statistics Count method.
sortBy | string Enum: "batchId" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
batchId | string Filter by batch id. |
type | string Filter by batch type. See the User Guide for more information about batch types. |
tenantIdIn | string Filter by a comma-separated list of |
withoutTenantId | boolean Only include batches which belong to no tenant.
Value can effectively only be |
suspended | boolean A |
createdBy | string Only include batches that were started by this user id. |
startedBefore | string <date-time> Only include batches that were started before the given date. By default,
the date must have the format |
startedAfter | string <date-time> Only include batches that were started after the given date. By default,
the date must have the format |
withFailures | boolean Only include batches having jobs with failures.
Value can only be |
withoutFailures | boolean Only include batches having jobs without failures.
Value can only be |
Response for GET /batch/statistics?type=aBatchType&sortBy=batchId&sortOrder=asc
[- {
- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "batchJobsPerSeed": 100,
- "jobsCreated": 10,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "remainingJobs": 3,
- "completedJobs": 7,
- "failedJobs": 1,
- "suspended": false,
- "tenantId": "aTenantId",
- "createUserId": "aUserId"
}
]
Requests the number of batch statistics that fulfill the query criteria. Takes the same filtering parameters as the Get Batch Statistics method.
batchId | string Filter by batch id. |
type | string Filter by batch type. See the User Guide for more information about batch types. |
tenantIdIn | string Filter by a comma-separated list of |
withoutTenantId | boolean Only include batches which belong to no tenant.
Value can effectively only be |
suspended | boolean A |
createdBy | string Only include batches that were started by this user id. |
startedBefore | string <date-time> Only include batches that were started before the given date. By default,
the date must have the format |
startedAfter | string <date-time> Only include batches that were started after the given date. By default,
the date must have the format |
withFailures | boolean Only include batches having jobs with failures.
Value can only be |
withoutFailures | boolean Only include batches having jobs without failures.
Value can only be |
Response for GET /batch/count?type=aBatchType
{- "count": 1
}
Deletes a batch by id, including all related jobs and job definitions. Optionally also deletes the batch history.
id required | string The id of the batch to be deleted. |
cascade | boolean
|
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a batch by id, according to the Batch interface in the engine.
id required | string The id of the batch to be retrieved. |
Response for GET /batch/aBatchId
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "batchJobsPerSeed": 100,
- "jobsCreated": 10,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "suspended": false,
- "tenantId": "aTenantId",
- "createUserId": "aUserId"
}
Activates or suspends a batch by id.
id required | string The id of the batch to activate or suspend. |
suspended | boolean or null A Boolean value which indicates whether to activate or suspend a given instance (e.g. process instance, job, job definition, or batch). When the value is set to true, the given instance will be suspended and when the value is set to false, the given instance will be activated. |
{- "suspended": true
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Triggers evaluation of conditions for conditional start event(s). Internally this maps to the engines condition evaluation builder method ConditionEvaluationBuilder#evaluateStartConditions(). For more information see the Conditional Start Events section of the BPMN 2.0 Implementation Reference.
object or null A map of variables which are used for evaluation of the conditions and are injected into the process instances which have been triggered. Each key is a variable name and each value a JSON variable value object with the following properties. | |
businessKey | string or null Used for the process instances that have been triggered after the evaluation. |
tenantId | string or null Used to evaluate a condition for a tenant with the given id. Will only evaluate conditions of process definitions which belong to the tenant. |
withoutTenantId | boolean or null A Boolean value that indicates whether the conditions should only be evaluated of process definitions which belong to no tenant or not. Value may only be true, as false is the default behavior. |
processDefinitionId | string or null Used to evaluate conditions of the process definition with the given id. |
The content of the Request Body
{- "variables": {
- "temperature": {
- "value": 24,
- "type": "Integer",
- "valueInfo": {
- "transient": true
}
}, - "city": {
- "value": "Parma",
- "type": "String"
}
}, - "businessKey": "aBusinessKey",
- "tenantId": "aTenantId"
}
The Response content of a status 200
[- {
- "links": [ ],
- "id": "aProcInstId",
- "definitionId": "aProcDefId",
- "businessKey": "aBusinessKey",
- "caseInstanceId": null,
- "ended": false,
- "suspended": false,
- "tenantId": "aTenantId"
}, - {
- "links": [ ],
- "id": "anotherId",
- "definitionId": "aProcDefId",
- "businessKey": "aBusinessKey",
- "caseInstanceId": null,
- "ended": false,
- "suspended": false,
- "tenantId": "aTenantId"
}
]
Queries for decision definitions that fulfill given parameters. Parameters may be the properties of decision definitions, such as the name, key or version. The size of the result set can be retrieved by using the Get Decision Definition Count method.
sortBy | string Enum: "category" "decisionRequirementsDefinitionKey" "key" "id" "name" "version" "deploymentId" "deployTime" "versionTag" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
decisionDefinitionId | string Filter by decision definition id. |
decisionDefinitionIdIn | string Filter by decision definition ids. |
name | string Filter by decision definition name. |
nameLike | string Filter by decision definition names that the parameter is a substring of. |
deploymentId | string Filter by the deployment the id belongs to. |
deployedAfter | string <date-time> Filter by the deploy time of the deployment the decision definition belongs to. Only selects decision definitions that have been deployed after (exclusive) a specific time. |
deployedAt | string <date-time> Filter by the deploy time of the deployment the decision definition belongs to. Only selects decision definitions that have been deployed at a specific time (exact match). |
key | string Filter by decision definition key, i.e., the id in the DMN 1.0 XML. Exact match. |
keyLike | string Filter by decision definition keys that the parameter is a substring of. |
category | string Filter by decision definition category. Exact match. |
categoryLike | string Filter by decision definition categories that the parameter is a substring of. |
version | integer <int32> Filter by decision definition version. |
latestVersion | boolean Only include those decision definitions that are latest versions.
Value may only be |
resourceName | string Filter by the name of the decision definition resource. Exact match. |
resourceNameLike | string Filter by names of those decision definition resources that the parameter is a substring of. |
decisionRequirementsDefinitionId | string Filter by the id of the decision requirements definition this decision definition belongs to. |
decisionRequirementsDefinitionKey | string Filter by the key of the decision requirements definition this decision definition belongs to. |
withoutDecisionRequirementsDefinition | boolean Only include decision definitions which does not belongs to any decision requirements definition.
Value may only be |
tenantIdIn | string Filter by a comma-separated list of |
withoutTenantId | boolean Only include decision definitions which belong to no tenant.
Value can effectively only be |
includeDecisionDefinitionsWithoutTenantId | boolean Include decision definitions which belong to no tenant.
Can be used in combination with |
versionTag | string Filter by the version tag. |
versionTagLike | string Filter by the version tags of those decision definition resources that the parameter is a substring of. |
Response for GET /decision-definition?key=dish-decision&sortBy=category&sortOrder=asc
[- {
- "id": "dish-decision:1:c633e8a8-41b7-11e6-b0ef-00aa004d0001",
- "key": "dish-decision",
- "name": "Dish Decision",
- "version": 1,
- "resource": "drd-dish-decision.dmn",
- "deploymentId": "c627175e-41b7-11e6-b0ef-00aa004d0001",
- "decisionRequirementsDefinitionId": "dish:1:c633c195-41b7-11e6-b0ef-00aa004d0001",
- "decisionRequirementsDefinitionKey": "dish",
- "tenantId": null,
- "versionTag": null,
- "historyTimeToLive": 5
}
]
Requests the number of decision definitions that fulfill the query criteria. Takes the same filtering parameters as the Get Decision Definition method.
decisionDefinitionId | string Filter by decision definition id. |
decisionDefinitionIdIn | string Filter by decision definition ids. |
name | string Filter by decision definition name. |
nameLike | string Filter by decision definition names that the parameter is a substring of. |
deploymentId | string Filter by the deployment the id belongs to. |
deployedAfter | string <date-time> Filter by the deploy time of the deployment the decision definition belongs to. Only selects decision definitions that have been deployed after (exclusive) a specific time. |
deployedAt | string <date-time> Filter by the deploy time of the deployment the decision definition belongs to. Only selects decision definitions that have been deployed at a specific time (exact match). |
key | string Filter by decision definition key, i.e., the id in the DMN 1.0 XML. Exact match. |
keyLike | string Filter by decision definition keys that the parameter is a substring of. |
category | string Filter by decision definition category. Exact match. |
categoryLike | string Filter by decision definition categories that the parameter is a substring of. |
version | integer <int32> Filter by decision definition version. |
latestVersion | boolean Only include those decision definitions that are latest versions.
Value may only be |
resourceName | string Filter by the name of the decision definition resource. Exact match. |
resourceNameLike | string Filter by names of those decision definition resources that the parameter is a substring of. |
decisionRequirementsDefinitionId | string Filter by the id of the decision requirements definition this decision definition belongs to. |
decisionRequirementsDefinitionKey | string Filter by the key of the decision requirements definition this decision definition belongs to. |
withoutDecisionRequirementsDefinition | boolean Only include decision definitions which does not belongs to any decision requirements definition.
Value may only be |
tenantIdIn | string Filter by a comma-separated list of |
withoutTenantId | boolean Only include decision definitions which belong to no tenant.
Value can effectively only be |
includeDecisionDefinitionsWithoutTenantId | boolean Include decision definitions which belong to no tenant.
Can be used in combination with |
versionTag | string Filter by the version tag. |
versionTagLike | string Filter by the version tags of those decision definition resources that the parameter is a substring of. |
Response for GET /decision-definition/count?key=dish-decision&version=2
{- "count": 1
}
Retrieves the latest version of the decision definition which belongs to no tenant.
key required | string The key of the decision definition (the latest version thereof) to be retrieved. |
Response for GET /decision-definition/key/dish-decision
{- "id": "aDecisionDefinitionId",
- "key": "dish-decision",
- "name": "Dish Decision",
- "version": 1,
- "resource": "drd-dish-decision.dmn",
- "deploymentId": "c627175e-41b7-11e6-b0ef-00aa004d0001",
- "decisionRequirementsDefinitionId": "dish:1:c633c195-41b7-11e6-b0ef-00aa004d0001",
- "decisionRequirementsDefinitionKey": "dish",
- "tenantId": null,
- "versionTag": null,
- "historyTimeToLive": 5
}
Returns the diagram for the latest version of the decision definition which belongs to no tenant
key required | string The key of the decision definition (the latest version thereof) to be retrieved. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Evaluates the latest version of the decision definition which belongs to no tenant. The input values of the decision have to be supplied in the request body.
key required | string The key of the decision definition (the latest version thereof) to be evaluated. |
object or null |
{- "variables": {
- "amount": {
- "value": 600,
- "type": "Double"
}, - "invoiceCategory": {
- "value": "Misc",
- "type": "String"
}
}
}
Response for POST /decision-definition/key/aKey/evaluate
[- {
- "result": {
- "value": "management",
- "type": "String",
- "valueInfo": null
}
}
]
Updates the latest version of the decision definition which belongs to no tenant. The field is used within History cleanup.
key required | string The key of the decision definitions to change history time to live. |
historyTimeToLive | integer or null <int32> >= 0 New value for historyTimeToLive field of the definition.
Can be |
{- "historyTimeToLive": 5
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the latest version of the decision definition for tenant
key required | string The key of the decision definition (the latest version thereof) to be retrieved. |
tenant-id required | string The id of the tenant the decision definition belongs to. |
Response for GET /decision-definition/key/dish-decision/tenant-id/aTenantId
{- "id": "aDecisionDefinitionId",
- "key": "dish-decision",
- "name": "Dish Decision",
- "version": 1,
- "resource": "drd-dish-decision.dmn",
- "deploymentId": "c627175e-41b7-11e6-b0ef-00aa004d0001",
- "decisionRequirementsDefinitionId": "dish:1:c633c195-41b7-11e6-b0ef-00aa004d0001",
- "decisionRequirementsDefinitionKey": "dish",
- "tenantId": "aTenantId",
- "versionTag": null,
- "historyTimeToLive": 5
}
Returns the XML of the latest version of the decision definition for tenant.
key required | string The key of the decision definition (the latest version thereof) to be retrieved. |
tenant-id required | string The id of the tenant the decision definition belongs to. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Evaluates the latest version of the decision definition for tenant. The input values of the decision have to be supplied in the request body.
key required | string The key of the decision definition (the latest version thereof) to be evaluated. |
tenant-id required | string The id of the tenant the decision definition belongs to. |
object or null |
{- "variables": {
- "amount": {
- "value": 600,
- "type": "Double"
}, - "invoiceCategory": {
- "value": "Misc",
- "type": "String"
}
}
}
Response for POST /decision-definition/akey/aKey/tenand-id/aTenantId/evaluate
[- {
- "result": {
- "value": "management",
- "type": "String",
- "valueInfo": null
}
}
]
Updates the latest version of the decision definition for tenant.
The field is used within History cleanup.
The value of the update is mandatory by default and does not allow null
values. To enable them, please
set the feature flag enforceHistoryTimeToLive
to false
. Read more in [Configuration Properties]
(https://docs.camunda.org/manual/7.22/reference/deployment-descriptors/tags/process-engine#configuration-properties)
key required | string The key of the decision definitions to change history time to live. |
tenant-id required | string The id of the tenant the decision definition belongs to. |
historyTimeToLive | integer or null <int32> >= 0 New value for historyTimeToLive field of the definition.
Can be |
{- "historyTimeToLive": 5
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the XML of the latest version of the decision definition for tenant
key required | string The key of the decision definition (the latest version thereof). |
tenant-id required | string The id of the tenant the decision definition belongs to. |
Response for GET /decision-definition/key/aKey/tenant-id/aTenantId/xml
{- "id": "aDecisionDefinitionId",
- "dmnXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <definitions xmlns=\"http://www.omg.org/spec/DMN/20151101/dmn.xsd\"\n id=\"definitions\"\n name=\"camunda\"\n namespace=\"http://camunda.org/schema/1.0/dmn\">\n <decision id=\"testDecision\" name=\"decision\">\n <decisionTable id=\"table\">\n <output id=\"result\" name=\"result\" >\n </output>\n <rule id=\"rule\">\n <outputEntry id=\"output1\">\n <text>\"not okay\"</text>\n </outputEntry>\n </rule>\n </decisionTable>\n </decision>\n </definitions>"
}
Retrieves the XML for the latest version of the decision definition which belongs to no tenant.
key required | string The key of the decision definition (the latest version thereof). |
Response for GET /decision-definition/key/aKey/xml
{- "id": "aDecisionDefinitionId",
- "dmnXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <definitions xmlns=\"http://www.omg.org/spec/DMN/20151101/dmn.xsd\"\n id=\"definitions\"\n name=\"camunda\"\n namespace=\"http://camunda.org/schema/1.0/dmn\">\n <decision id=\"testDecision\" name=\"decision\">\n <decisionTable id=\"table\">\n <output id=\"result\" name=\"result\" >\n </output>\n <rule id=\"rule\">\n <outputEntry id=\"output1\">\n <text>\"not okay\"</text>\n </outputEntry>\n </rule>\n </decisionTable>\n </decision>\n </definitions>"
}
Retrieves a decision definition by id, according to the DecisionDefinition
interface in the engine.
id required | string The id of the decision definition to be retrieved. |
Response for GET /decision-definition/aDecisionDefinitionId
{- "id": "aDecisionDefinitionId",
- "key": "dish-decision",
- "name": "Dish Decision",
- "version": 1,
- "resource": "drd-dish-decision.dmn",
- "deploymentId": "c627175e-41b7-11e6-b0ef-00aa004d0001",
- "decisionRequirementsDefinitionId": "dish:1:c633c195-41b7-11e6-b0ef-00aa004d0001",
- "decisionRequirementsDefinitionKey": "dish",
- "tenantId": null,
- "versionTag": null,
- "historyTimeToLive": 5
}
Evaluates a given decision and returns the result. The input values of the decision have to be supplied in the request body.
id required | string The id of the decision definition to be evaluated. |
object or null |
{- "variables": {
- "amount": {
- "value": 600,
- "type": "Double"
}, - "invoiceCategory": {
- "value": "Misc",
- "type": "String"
}
}
}
Response for POST /decision-definition/aDecisionDefinitionId/evaluate
[- {
- "result": {
- "value": "management",
- "type": "String",
- "valueInfo": null
}
}
]
Updates history time to live for decision definition. The field is used within History cleanup.
id required | string The id of the decision definition to change history time to live. |
historyTimeToLive | integer or null <int32> >= 0 New value for historyTimeToLive field of the definition.
Can be |
{- "historyTimeToLive": 5
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the DMN XML of a decision definition.
id required | string The id of the decision definition. |
Response for GET /decision-definition/aDecisionDefinitionId/xml
{- "id": "aDecisionDefinitionId",
- "dmnXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <definitions xmlns=\"http://www.omg.org/spec/DMN/20151101/dmn.xsd\"\n id=\"definitions\"\n name=\"camunda\"\n namespace=\"http://camunda.org/schema/1.0/dmn\">\n <decision id=\"testDecision\" name=\"decision\">\n <decisionTable id=\"table\">\n <output id=\"result\" name=\"result\" >\n </output>\n <rule id=\"rule\">\n <outputEntry id=\"output1\">\n <text>\"not okay\"</text>\n </outputEntry>\n </rule>\n </decisionTable>\n </decision>\n </definitions>"
}
Queries for decision requirements definitions that fulfill given parameters. Parameters may be the properties of decision requirements definitions, such as the name, key or version. The size of the result set can be retrieved by using the Get Decision Requirements Definition Count method.
decisionRequirementsDefinitionId | string Filter by decision requirements definition id. |
decisionRequirementsDefinitionIdIn | string Filter by decision requirements definition ids. |
name | string Filter by decision requirements definition name. |
nameLike | string Filter by decision requirements definition names that the parameter is a substring of. |
deploymentId | string Filter by the id of the deployment a decision requirement definition belongs to. |
key | string Filter by decision requirements definition key, i.e., the id in the DMN 1.3 XML. Exact match. |
keyLike | string Filter by decision requirements definition keys that the parameter is a substring of. |
category | string Filter by decision requirements definition category. Exact match. |
categoryLike | string Filter by decision requirements definition categories that the parameter is a substring of. |
version | integer <int32> Filter by decision requirements definition version. |
latestVersion | boolean Only include those decision requirements definitions that are latest versions. Value may
only be |
resourceName | string Filter by the name of the decision requirements definition resource. Exact match. |
resourceNameLike | string Filter by names of those decision requirements definition resources that the parameter is a substring of. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A decision requirements definition must have one of the given tenant ids. |
withoutTenantId | boolean Only include decision requirements definitions which belong to no tenant. Value may only
be |
includeDecisionRequirementsDefinitionsWithoutTenantId | boolean Include decision requirements definitions which belong to no tenant. Can be used in
combination with |
sortBy | string Enum: "id" "key" "name" "version" "deploymentId" "category" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /decision-requirements-definition?key=dish&sortBy=version&sortOrder=asc
[- {
- "id": "dish:1:c633c195-41b7-11e6-b0ef-00aa004d0001",
- "key": "dish",
- "category": "drd-test",
- "name": "Dish",
- "version": 1,
- "resource": "dish.dmn",
- "deploymentId": "c627175e-41b7-11e6-b0ef-00aa004d0001",
- "tenantId": null
}
]
Requests the number of decision requirements definitions that fulfill the query criteria. Takes the same filtering parameters as the Get Decision Requirements Definitions method.
decisionRequirementsDefinitionId | string Filter by decision requirements definition id. |
decisionRequirementsDefinitionIdIn | string Filter by decision requirements definition ids. |
name | string Filter by decision requirements definition name. |
nameLike | string Filter by decision requirements definition names that the parameter is a substring of. |
deploymentId | string Filter by the id of the deployment a decision requirement definition belongs to. |
key | string Filter by decision requirements definition key, i.e., the id in the DMN 1.3 XML. Exact match. |
keyLike | string Filter by decision requirements definition keys that the parameter is a substring of. |
category | string Filter by decision requirements definition category. Exact match. |
categoryLike | string Filter by decision requirements definition categories that the parameter is a substring of. |
version | integer <int32> Filter by decision requirements definition version. |
latestVersion | boolean Only include those decision requirements definitions that are latest versions. Value may
only be |
resourceName | string Filter by the name of the decision requirements definition resource. Exact match. |
resourceNameLike | string Filter by names of those decision requirements definition resources that the parameter is a substring of. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A decision requirements definition must have one of the given tenant ids. |
withoutTenantId | boolean Only include decision requirements definitions which belong to no tenant. Value may only
be |
includeDecisionRequirementsDefinitionsWithoutTenantId | boolean Include decision requirements definitions which belong to no tenant. Can be used in
combination with |
GET /decision-requirements-definition/count?key=dish
{- "count": 1
}
Retrieves a decision requirements definition according to the
DecisionRequirementsDefinition
interface in the engine.
Returns the latest version of the decision requirements definition
which belongs to no tenant.
key required | string The key of the decision requirements definition (the latest version thereof) to be retrieved. |
GET /decision-requirements-definition/key/invoiceKey
{- "id": "invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c",
- "key": "invoiceKey",
- "category": "invoice",
- "name": "receiptInvoice",
- "version": 2,
- "resource": "invoice.dmn",
- "deploymentId": "c627175e-41b7-11e6-b0ef-00aa004d0001",
- "tenantId": null
}
Retrieves the diagram of a decision requirements definition. Returns the diagram for the latest version of the decision requirements definition which belongs to no tenant.
key required | string The key of the decision requirements definition (the latest version thereof) to be retrieved. |
GET /decision-requirements-definition/key/invoiceKey/diagram
Retrieves a decision requirements definition according to the
DecisionRequirementsDefinition
interface in the engine.
Returns the latest version of the decision requirements definition
for a tenant.
key required | string The key of the decision requirements definition (the latest version thereof) to be retrieved. |
tenant-id required | string The id of the tenant to which the decision requirements definition belongs to. |
GET /decision-requirements-definition/key/invoiceKey/tenant-id/tenantA
{- "id": "invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c",
- "key": "invoiceKey",
- "category": "invoice",
- "name": "receiptInvoice",
- "version": 2,
- "resource": "invoice.dmn",
- "deploymentId": "c627175e-41b7-11e6-b0ef-00aa004d0001",
- "tenantId": "tenantA"
}
Retrieves the diagram of a decision requirements definition. Returns the diagram of the latest version of the decision requirements definition for a tenant.
key required | string The key of the decision requirements definition (the latest version thereof) to be retrieved. |
tenant-id required | string The id of the tenant to which the decision requirements definition belongs to. |
GET /decision-requirements-definition/key/invoiceKey/tenant-id/tenantA/diagram
Retrieves the DMN XML of a decision requirements definition. Returns the XML of the latest version of the decision requirements definition for a tenant.
key required | string The key of the decision requirements definition (the latest version thereof) to be retrieved. |
tenant-id required | string The id of the tenant to which the decision requirements definition belongs to. |
GET /decision-requirements-definition/key/invoiceKey/tenant-id/tenantA/xml
{- "id": "invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c",
- "dmnXml": "<?xml version=\"1.1\" encoding=\"UTF-8\"?>...<definitions id=\"dish\" name=\"Dish\" namespace=\"test-drg\" ... />"
}
Retrieves the DMN XML of a decision requirements definition. Returns the XML for the latest version of the decision requirements definition which belongs to no tenant.
key required | string The key of the decision requirements definition (the latest version thereof) to be retrieved. |
GET /decision-requirements-definition/key/invoiceKey/xml
{- "id": "invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c",
- "dmnXml": "<?xml version=\"1.1\" encoding=\"UTF-8\"?>...<definitions id=\"dish\" name=\"Dish\" namespace=\"test-drg\" ... />"
}
Retrieves a decision requirements definition according to the
DecisionRequirementsDefinition
interface in the engine.
id required | string The id of the decision requirements definition to be retrieved. |
GET /decision-requirements-definition/invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c
{- "id": "invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c",
- "key": "invoiceKey",
- "category": "invoice",
- "name": "receiptInvoice",
- "version": 2,
- "resource": "invoice.dmn",
- "deploymentId": "c627175e-41b7-11e6-b0ef-00aa004d0001",
- "tenantId": null
}
Retrieves the diagram of a decision requirements definition.
id required | string The id of the decision requirements definition. |
GET /decision-requirements-definition/invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c/diagram
Retrieves the DMN XML of a decision requirements definition.
id required | string The id of the decision requirements definition. |
GET /decision-requirements-definition/invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c/xml
{- "id": "invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c",
- "dmnXml": "<?xml version=\"1.1\" encoding=\"UTF-8\"?>...<definitions id=\"dish\" name=\"Dish\" namespace=\"test-drg\" ... />"
}
Queries for deployments that fulfill given parameters. Parameters may be the properties of deployments, such as the id or name or a range of the deployment time. The size of the result set can be retrieved by using the Get Deployment count method.
id | string Filter by deployment id |
name | string Filter by the deployment name. Exact match. |
nameLike | string Filter by the deployment name that the parameter is a substring of. The parameter can include the
wildcard |
source | string Filter by the deployment source. |
withoutSource | boolean Default: false Filter by the deployment source whereby source is equal to |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A deployment must have one of the given tenant ids. |
withoutTenantId | boolean Default: false Only include deployments which belong to no tenant. Value may only be |
includeDeploymentsWithoutTenantId | boolean Default: false Include deployments which belong to no tenant. Can be used in combination with |
after | string <date-time> Restricts to all deployments after the given date.
By default, the date must have the format
|
before | string <date-time> Restricts to all deployments before the given date.
By default, the date must have the format
|
sortBy | string Enum: "id" "name" "deploymentTime" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
[- {
- "id": "someId",
- "name": "deploymentName",
- "source": "process application",
- "tenantId": null,
- "deploymentTime": "2013-04-23T13:42:43.000+0200"
}
]
Queries for the number of deployments that fulfill given parameters. Takes the same parameters as the Get Deployments method.
id | string Filter by deployment id |
name | string Filter by the deployment name. Exact match. |
nameLike | string Filter by the deployment name that the parameter is a substring of. The parameter can include the
wildcard |
source | string Filter by the deployment source. |
withoutSource | boolean Default: false Filter by the deployment source whereby source is equal to |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A deployment must have one of the given tenant ids. |
withoutTenantId | boolean Default: false Only include deployments which belong to no tenant. Value may only be |
includeDeploymentsWithoutTenantId | boolean Default: false Include deployments which belong to no tenant. Can be used in combination with |
after | string <date-time> Restricts to all deployments after the given date.
By default, the date must have the format
|
before | string <date-time> Restricts to all deployments before the given date.
By default, the date must have the format
|
{- "count": 1
}
Creates a deployment.
Security Consideration
Deployments can contain custom code in form of scripts or EL expressions to customize process behavior. This may be abused for remote execution of arbitrary code.
tenant-id | string or null The tenant id for the deployment to be created. |
deployment-source | string or null The source for the deployment to be created. |
deploy-changed-only | boolean or null Default: false A flag indicating whether the process engine should perform duplicate checking on a per-resource basis. If set to true, only those resources that have actually changed are deployed. Checks are made against resources included previous deployments of the same name and source and only against the latest versions of those resources. If set to true, the option enable-duplicate-filtering is overridden and set to true. |
enable-duplicate-filtering | boolean or null Default: false A flag indicating whether the process engine should perform duplicate checking for the deployment or not. This allows you to check if a deployment with the same name and the same resouces already exists and if true, not create a new deployment but instead return the existing deployment. The default value is false. |
deployment-name | string or null The name for the deployment to be created. |
deployment-activation-time | string or null <date-time> Sets the date on which the process definitions contained in this deployment will be activated. This means that all process
definitions will be deployed as usual, but they will be suspended from the start until the given activation date.
By default,
the date must have the format |
data | string or null <binary> The binary data to create the deployment resource. It is possible to have more than one form part with different form part names for the binary data to create a deployment. |
{- "links": [
], - "id": "aDeploymentId",
- "name": "aName",
- "source": "process application",
- "deploymentTime": "2013-01-23T13:59:43.000+0200",
- "tenantId": null,
- "deployedProcessDefinitions": {
- "aProcDefId": {
- "id": "aProcDefId",
- "key": "aKey",
- "category": "aCategory",
- "description": "aDescription",
- "name": "aName",
- "version": 42,
- "resource": "aResourceName",
- "deploymentId": "aDeploymentId",
- "diagram": "aResourceName.png",
- "suspended": true,
- "tenantId": null,
- "versionTag": null
}
}, - "deployedCaseDefinitions": null,
- "deployedDecisionDefinitions": null,
- "deployedDecisionRequirementsDefinitions": null
}
Deletes a deployment by id.
id required | string The id of the deployment to be deleted. |
cascade | boolean Default: false
|
skipCustomListeners | boolean Default: false
|
skipIoMappings | boolean Default: false
|
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a deployment by id, according to the Deployment
interface of the engine.
id required | string The id of the deployment. |
{- "id": "someDeploymentId",
- "name": "deploymentName",
- "source": "process application",
- "deploymentTime": "2013-04-23T13:42:43.000+0200"
}
Re-deploys an existing deployment.
The deployment resources to re-deploy can be restricted by using the properties resourceIds
or
resourceNames
. If no deployment resources to re-deploy are passed then all existing resources of the
given deployment are re-deployed.
Warning: Deployments can contain custom code in form of scripts or EL expressions to customize process behavior. This may be abused for remote execution of arbitrary code. See the section on security considerations for custom code in the user guide for details.
id required | string The id of the deployment to re-deploy. |
resourceIds | Array of strings or null A list of deployment resource ids to re-deploy. |
resourceNames | Array of strings or null A list of deployment resource names to re-deploy. |
source | string or null Sets the source of the deployment. |
{- "resourceIds": [
- "aResourceId"
], - "resourceNames": [
- "aResourceName"
], - "source": "cockpit"
}
{- "links": [
], - "id": "aDeploymentId",
- "name": "aName",
- "source": "cockpit",
- "deploymentTime": "2015-10-13T13:59:43.000+0200",
- "tenantId": null,
- "deployedProcessDefinitions": {
- "aProcDefId": {
- "id": "aProcDefId",
- "key": "aKey",
- "category": "aCategory",
- "description": "aDescription",
- "name": "aName",
- "version": 42,
- "resource": "aResourceName",
- "deploymentId": "aDeploymentId",
- "diagram": "aResourceName.png",
- "suspended": true,
- "tenantId": null,
- "versionTag": null
}
}, - "deployedCaseDefinitions": null,
- "deployedDecisionDefinitions": null,
- "deployedDecisionRequirementsDefinitions": null
}
Retrieves all deployment resources of a given deployment.
id required | string The id of the deployment to retrieve the deployment resources for. |
[- {
- "id": "anResourceId",
- "name": "anResourceName",
- "deploymentId": "anDeploymentId"
}, - {
- "id": "anotherResourceId",
- "name": "anotherResourceName",
- "deploymentId": "anDeploymentId"
}
]
Retrieves a deployment resource by resource id for the given deployment.
id required | string The id of the deployment |
resourceId required | string The id of the deployment resource |
{- "id": "someResourceId",
- "name": "someResourceName",
- "deploymentId": "someDeploymentId"
}
Retrieves the binary content of a deployment resource for the given deployment by id.
id required | string The id of the deployment. |
resourceId required | string The id of the deployment resource. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Queries for event subscriptions that fulfill given parameters. The size of the result set can be retrieved by using the Get Event Subscriptions count method.
eventSubscriptionId | string Only select subscription with the given id. |
eventName | string Only select subscriptions for events with the given name. |
eventType | string Enum: "message" "signal" "compensate" "conditional" Only select subscriptions for events with the given type.
Valid values: |
executionId | string Only select subscriptions that belong to an execution with the given id. |
processInstanceId | string Only select subscriptions that belong to a process instance with the given id. |
activityId | string Only select subscriptions that belong to an activity with the given id. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. Only select subscriptions that belong to one of the given tenant ids. |
withoutTenantId | boolean Only select subscriptions which have no tenant id.
Value may only be |
includeEventSubscriptionsWithoutTenantId | boolean Select event subscriptions which have no tenant id.
Can be used in combination with tenantIdIn parameter.
Value may only be |
sortBy | string Enum: "created" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
[- {
- "id": "anId",
- "eventType": "message",
- "eventName": "anEventName",
- "executionId": "anExecutionId",
- "processInstanceId": "aProcessInstanceId",
- "activityId": "anActivityId",
- "createdDate": "2020-04-20T15:23:12.229+0200",
- "tenantId": null
}, - {
- "id": "anotherId",
- "eventType": "message",
- "eventName": "anotherEventName",
- "executionId": "anotherExecutionId",
- "processInstanceId": "anotherProcessInstanceId",
- "activityId": "anotherActivityId",
- "createdDate": "2020-04-20T15:20:12.229+0200",
- "tenantId": null
}
]
Queries for the number of event subscriptions that fulfill given parameters. Takes the same parameters as the Get Event Subscriptions method.
eventSubscriptionId | string Only select subscription with the given id. |
eventName | string Only select subscriptions for events with the given name. |
eventType | string Enum: "message" "signal" "compensate" "conditional" Only select subscriptions for events with the given type.
Valid values: |
executionId | string Only select subscriptions that belong to an execution with the given id. |
processInstanceId | string Only select subscriptions that belong to a process instance with the given id. |
activityId | string Only select subscriptions that belong to an activity with the given id. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. Only select subscriptions that belong to one of the given tenant ids. |
withoutTenantId | boolean Only select subscriptions which have no tenant id.
Value may only be |
includeEventSubscriptionsWithoutTenantId | boolean Select event subscriptions which have no tenant id.
Can be used in combination with tenantIdIn parameter.
Value may only be |
{- "count": 1
}
Queries for the executions that fulfill given parameters. Parameters may be static as well as dynamic runtime properties of executions. The size of the result set can be retrieved by using the Get Execution Count method.
businessKey | string Filter by the business key of the process instances the executions belong to. |
processDefinitionId | string Filter by the process definition the executions run on. |
processDefinitionKey | string Filter by the key of the process definition the executions run on. |
processInstanceId | string Filter by the id of the process instance the execution belongs to. |
activityId | string Filter by the id of the activity the execution currently executes. |
signalEventSubscriptionName | string Select only those executions that expect a signal of the given name. |
messageEventSubscriptionName | string Select only those executions that expect a message of the given name. |
active | boolean Only include active executions. Value may only be |
suspended | boolean Only include suspended executions. Value may only be |
incidentId | string Filter by the incident id. |
incidentType | string Filter by the incident type. See the User Guide for a list of incident types. |
incidentMessage | string Filter by the incident message. Exact match. |
incidentMessageLike | string Filter by the incident message that the parameter is a substring of. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. An execution must have one of the given tenant ids. |
variables | string Only include executions that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are: |
processVariables | string Only include executions that belong to a process instance with variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are: |
variableNamesIgnoreCase | boolean Match all variable names provided in |
variableValuesIgnoreCase | boolean Match all variable values provided in |
sortBy | string Enum: "instanceId" "definitionKey" "definitionId" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /execution?variables=myVariable_eq_camunda
[- {
- "id": "anId",
- "processInstanceId": "aProcInstId",
- "ended": false,
- "tenantId": null
}
]
Queries for executions that fulfill given parameters through a JSON object.
This method is slightly more powerful than the Get
Executions method
because it allows
to filter by multiple instance and execution variables of types
String
, Number
or Boolean
.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
businessKey | string or null Filter by the business key of the process instances the executions belong to. |
processDefinitionId | string or null Filter by the process definition the executions run on. |
processDefinitionKey | string or null Filter by the key of the process definition the executions run on. |
processInstanceId | string or null Filter by the id of the process instance the execution belongs to. |
activityId | string or null Filter by the id of the activity the execution currently executes. |
signalEventSubscriptionName | string or null Select only those executions that expect a signal of the given name. |
messageEventSubscriptionName | string or null Select only those executions that expect a message of the given name. |
active | boolean or null Only include active executions. Value may only be |
suspended | boolean or null Only include suspended executions. Value may only be |
incidentId | string or null Filter by the incident id. |
incidentType | string or null Filter by the incident type. See the User Guide for a list of incident types. |
incidentMessage | string or null Filter by the incident message. Exact match. |
incidentMessageLike | string or null Filter by the incident message that the parameter is a substring of. |
tenantIdIn | Array of strings or null Filter by a list of tenant ids. An execution must have one of the given tenant ids. |
Array of objects or null (VariableQueryParameterDto) An array to only include executions that have variables with certain values. The array consists of objects with the three properties Valid operator values are: | |
Array of objects or null (VariableQueryParameterDto) An array to only include executions that belong to a process instance with variables with certain values. The array consists of objects with the three properties Valid operator values are: | |
variableNamesIgnoreCase | boolean or null Match all variable names provided in |
variableValuesIgnoreCase | boolean or null Match all variable values provided in |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Has no effect for the |
{- "variables": [
- {
- "name": "myVariable",
- "operator": "eq",
- "value": "camunda"
}, - {
- "name": "mySecondVariable",
- "operator": "neq",
- "value": 124
}
], - "processDefinitionId": "aProcessDefinitionId",
- "sorting": [
- {
- "sortBy": "definitionKey",
- "sortOrder": "asc"
}, - {
- "sortBy": "instanceId",
- "sortOrder": "desc"
}
]
}
POST /execution
[- {
- "id": "anId",
- "processInstanceId": "aProcInstId",
- "ended": false,
- "tenantId": null
}
]
Queries for the number of executions that fulfill given parameters. Takes the same parameters as the Get Executions method.
businessKey | string Filter by the business key of the process instances the executions belong to. |
processDefinitionId | string Filter by the process definition the executions run on. |
processDefinitionKey | string Filter by the key of the process definition the executions run on. |
processInstanceId | string Filter by the id of the process instance the execution belongs to. |
activityId | string Filter by the id of the activity the execution currently executes. |
signalEventSubscriptionName | string Select only those executions that expect a signal of the given name. |
messageEventSubscriptionName | string Select only those executions that expect a message of the given name. |
active | boolean Only include active executions. Value may only be |
suspended | boolean Only include suspended executions. Value may only be |
incidentId | string Filter by the incident id. |
incidentType | string Filter by the incident type. See the User Guide for a list of incident types. |
incidentMessage | string Filter by the incident message. Exact match. |
incidentMessageLike | string Filter by the incident message that the parameter is a substring of. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. An execution must have one of the given tenant ids. |
variables | string Only include executions that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are: |
processVariables | string Only include executions that belong to a process instance with variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are: |
variableNamesIgnoreCase | boolean Match all variable names provided in |
variableValuesIgnoreCase | boolean Match all variable values provided in |
GET /execution/count?variables=myVariable_eq_camunda
{- "count": 1
}
Queries for the number of executions that fulfill given parameters. This method takes the same message body as the Get Executions POST method and therefore it is slightly more powerful than the Get Execution Count method.
businessKey | string or null Filter by the business key of the process instances the executions belong to. |
processDefinitionId | string or null Filter by the process definition the executions run on. |
processDefinitionKey | string or null Filter by the key of the process definition the executions run on. |
processInstanceId | string or null Filter by the id of the process instance the execution belongs to. |
activityId | string or null Filter by the id of the activity the execution currently executes. |
signalEventSubscriptionName | string or null Select only those executions that expect a signal of the given name. |
messageEventSubscriptionName | string or null Select only those executions that expect a message of the given name. |
active | boolean or null Only include active executions. Value may only be |
suspended | boolean or null Only include suspended executions. Value may only be |
incidentId | string or null Filter by the incident id. |
incidentType | string or null Filter by the incident type. See the User Guide for a list of incident types. |
incidentMessage | string or null Filter by the incident message. Exact match. |
incidentMessageLike | string or null Filter by the incident message that the parameter is a substring of. |
tenantIdIn | Array of strings or null Filter by a list of tenant ids. An execution must have one of the given tenant ids. |
Array of objects or null (VariableQueryParameterDto) An array to only include executions that have variables with certain values. The array consists of objects with the three properties Valid operator values are: | |
Array of objects or null (VariableQueryParameterDto) An array to only include executions that belong to a process instance with variables with certain values. The array consists of objects with the three properties Valid operator values are: | |
variableNamesIgnoreCase | boolean or null Match all variable names provided in |
variableValuesIgnoreCase | boolean or null Match all variable values provided in |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Has no effect for the |
{- "variables": [
- {
- "name": "myVariable",
- "operator": "eq",
- "value": "camunda"
}, - {
- "name": "mySecondVariable",
- "operator": "neq",
- "value": 124
}
], - "processDefinitionId": "aProcessDefinitionId"
}
POST /execution/count
{- "count": 1
}
Retrieves an execution by id, according to the Execution
interface in the
engine.
id required | string The id of the execution to be retrieved. |
GET /execution/anExecutionId
{- "id": "anExecutionId",
- "processInstanceId": "aProcInstId",
- "ended": false,
- "tenantId": null
}
Creates a custom incident with given properties.
id required | string The id of the execution to create a new incident for. |
incidentType | string or null A type of the new incident. |
configuration | string or null A configuration for the new incident. |
message | string or null A message for the new incident. |
{- "incidentType": "aType",
- "configuration": "aConfiguration"
}
POST /execution/anExecutionId/create-incident
{- "id": "anIncidentId",
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "executionId": "anExecutionId",
- "incidentTimestamp": "2014-03-01T08:00:00.000+0200",
- "incidentType": "failedJob",
- "activityId": "serviceTask",
- "failedActivityId": "serviceTask",
- "causeIncidentId": "aCauseIncidentId",
- "rootCauseIncidentId": "aRootCauseIncidentId",
- "configuration": "aConfiguration",
- "tenantId": null,
- "incidentMessage": "anIncidentMessage",
- "jobDefinitionId": "aJobDefinitionId"
}
Retrieves all variables of a given execution by id.
id required | string The id of the execution to retrieve the variables from. |
deserializeValues | boolean Determines whether serializable variable values (typically
variables that store custom Java objects) should be deserialized
on server side (default If set to If set to Note: While |
GET /execution/anExecutionId/localVariables
{- "aVariableKey": {
- "value": {
- "prop1": "a",
- "prop2": "b"
}, - "type": "Object",
- "valueInfo": {
- "objectTypeName": "com.example.MyObject",
- "serializationDataFormat": "application/xml"
}
}
}
Updates or deletes the variables in the context of an execution by id. The updates do not propagate upwards in the execution hierarchy. Updates precede deletions. So, if a variable is updated AND deleted, the deletion overrides the update.
id required | string The id of the execution to set variables for. |
object or null A JSON object containing variable key-value pairs. | |
deletions | Array of strings or null An array of String keys of variables to be deleted. |
{- "modifications": {
- "aVariable": {
- "value": "aValue",
- "type": "String"
}, - "anotherVariable": {
- "value": 42,
- "type": "Integer"
}
}, - "deletions": [
- "aThirdVariable",
- "FourthVariable"
]
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Deletes a variable in the context of a given execution by id. Deletion does not propagate upwards in the execution hierarchy.
id required | string The id of the execution to delete the variable from. |
varName required | string The name of the variable to delete. |
Retrieves a variable from the context of a given execution by id. Does not traverse the parent execution hierarchy.
id required | string The id of the execution to retrieve the variable from. |
varName required | string The name of the variable to get. |
deserializeValue | boolean Determines whether serializable variable values (typically
variables that store custom Java objects) should be deserialized
on server side (default If set to Note: While |
GET /execution/anExecutionId/localVariables/aVarName
{- "value": {
- "prop1": "a",
- "prop2": "b"
}, - "type": "Object",
- "valueInfo": {
- "objectTypeName": "com.example.MyObject",
- "serializationDataFormat": "application/xml"
}
}
Sets a variable in the context of a given execution by id. Update does not propagate upwards in the execution hierarchy.
id required | string The id of the execution to set the variable for. |
varName required | string The name of the variable to set. |
value | any (AnyValue) Can be any value - string, number, boolean, array or object. Note: Not every endpoint supports every type. |
type | string or null The value type of the variable. |
object A JSON object containing additional, value-type-dependent properties. For serialized variables of type Object, the following properties can be provided:
For serialized variables of type File, the following properties can be provided:
The following property can be provided for all value types:
|
{- "value": "someValue",
- "type": "String"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a binary variable from the context of a given execution by id. Does not traverse the parent execution hierarchy. Applicable for byte array and file variables.
id required | string The id of the execution to retrieve the variable from. |
varName required | string The name of the variable to get. |
Content-Type: application/octet-stream
Sets the serialized value for a binary variable or the binary value for a file variable in the context of a given execution by id.
id required | string The id of the execution to set the variable for. |
varName required | string The name of the variable to set. |
data | string or null <binary> The binary data to be set. For File variables, this multipart can contain the filename, binary value and MIME type of the file variable to be set Only the filename is mandatory. |
valueType | string or null Enum: "Bytes" "File" The name of the variable type. Either Bytes for a byte array variable or File for a file variable. |
POST /execution/anExecutionId/localVariables/aVarName/data
``` ---OSQH1f8lzs83iXFHphqfIuitaQfNKFY74Y Content-Disposition: form-data; name="data"; filename="unspecified" Content-Type: application/octet-stream Content-Transfer-Encoding: binary <<Byte Stream ommitted>> ---OSQH1f8lzs83iXFHphqfIuitaQfNKFY74Y Content-Disposition: form-data; name="valueType" Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Bytes ---OSQH1f8lzs83iXFHphqfIuitaQfNKFY74Y-- ```
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a message event subscription for a given execution by id and a message name.
id required | string The id of the execution that holds the subscription. |
messageName required | string The name of the message that the subscription corresponds to. |
GET /execution/anExecutionId/messageSubscriptions/someMessage
{- "id": "anEventSubscriptionId",
- "eventType": "message",
- "eventName": "anEvent",
- "executionId": "anExecutionId",
- "processInstanceId": "aProcInstId",
- "activityId": "anActivity",
- "tenantId": null,
- "createdDate": "2013-01-23T13:59:43.000+0200"
}
Delivers a message to a specific execution by id, to trigger an existing message event subscription. Inject process variables as the message's payload.
id required | string The id of the execution to submit the message to. |
messageName required | string The name of the message that the addressed subscription corresponds to. |
object or null A JSON object containing variable key-value pairs. Each key is a variable name and each value a JSON variable value object. |
{- "variables": {
- "aVariable": {
- "value": true,
- "type": "Boolean"
}, - "anotherVariable": {
- "value": 42,
- "type": "Integer"
}
}
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Signals an execution by id. Can for example be used to explicitly skip user tasks or signal asynchronous continuations.
id required | string The id of the execution to signal. |
object or null A JSON object containing variable key-value pairs. Each key is a variable name and each value a JSON variable value object. |
{- "variables": {
- "myVariable": {
- "value": "camunda",
- "type": "String"
}, - "mySecondVariable": {
- "value": 124,
- "type": "Integer"
}
}
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Queries for the external tasks that fulfill given parameters. Parameters may be static as well as dynamic runtime properties of executions. The size of the result set can be retrieved by using the Get External Task Count method.
externalTaskId | string Filter by an external task's id. |
externalTaskIdIn | string Filter by the comma-separated list of external task ids. |
topicName | string Filter by an external task topic. |
workerId | string Filter by the id of the worker that the task was most recently locked by. |
locked | boolean Only include external tasks that are currently locked (i.e., they have a lock time and it has not expired).
Value may only be |
notLocked | boolean Only include external tasks that are currently not locked (i.e., they have no lock or it has expired).
Value may only be |
withRetriesLeft | boolean Only include external tasks that have a positive (> 0) number of retries (or |
noRetriesLeft | boolean Only include external tasks that have 0 retries. Value may only be |
lockExpirationAfter | string <date-time> Restrict to external tasks that have a lock that expires after a given date. By
default, the date must have the format
|
lockExpirationBefore | string <date-time> Restrict to external tasks that have a lock that expires before a given date. By
default, the date must have the format
|
activityId | string Filter by the id of the activity that an external task is created for. |
activityIdIn | string Filter by the comma-separated list of ids of the activities that an external task is created for. |
executionId | string Filter by the id of the execution that an external task belongs to. |
processInstanceId | string Filter by the id of the process instance that an external task belongs to. |
processInstanceIdIn | string Filter by a comma-separated list of process instance ids that an external task may belong to. |
processDefinitionId | string Filter by the id of the process definition that an external task belongs to. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. An external task must have one of the given tenant ids. |
active | boolean Only include active tasks. Value may only be |
suspended | boolean Only include suspended tasks. Value may only be |
priorityHigherThanOrEquals | integer <int64> Only include jobs with a priority higher than or equal to the given value.
Value must be a valid |
priorityLowerThanOrEquals | integer <int64> Only include jobs with a priority lower than or equal to the given value.
Value must be a valid |
sortBy | string Enum: "id" "lockExpirationTime" "processInstanceId" "processDefinitionId" "processDefinitionKey" "taskPriority" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
[- {
- "activityId": "anActivityId",
- "activityInstanceId": "anActivityInstanceId",
- "errorMessage": "anErrorMessage",
- "executionId": "anExecutionId",
- "id": "anExternalTaskId",
- "lockExpirationTime": "2015-10-06T16:34:42.000+0200",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "processInstanceId": "aProcessInstanceId",
- "tenantId": null,
- "retries": 3,
- "suspended": false,
- "workerId": "aWorkerId",
- "topicName": "aTopic",
- "priority": 9,
- "businessKey": "aBusinessKey"
}, - {
- "activityId": "anotherActivityId",
- "activityInstanceId": "anotherActivityInstanceId",
- "errorMessage": "anotherErrorMessage",
- "executionId": "anotherExecutionId",
- "id": "anotherExternalTaskId",
- "lockExpirationTime": "2015-10-06T16:34:42.000+0200",
- "processDefinitionId": "anotherProcessDefinitionId",
- "processDefinitionKey": "anotherProcessDefinitionKey",
- "processInstanceId": "anotherProcessInstanceId",
- "tenantId": null,
- "retries": 1,
- "suspended": false,
- "workerId": "aWorkerId",
- "topicName": "aTopic",
- "priority": 3,
- "businessKey": "aBusinessKey"
}
]
Queries for external tasks that fulfill given parameters in the form of a JSON object.
This method is slightly more powerful than the Get External Tasks method because it allows to specify a hierarchical result sorting.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
externalTaskId | string or null Filter by an external task's id. |
externalTaskIdIn | Array of strings or null Filter by the comma-separated list of external task ids. |
topicName | string or null Filter by an external task topic. |
workerId | string or null Filter by the id of the worker that the task was most recently locked by. |
locked | boolean or null Only include external tasks that are currently locked (i.e., they have a lock time and it has not expired).
Value may only be |
notLocked | boolean or null Only include external tasks that are currently not locked (i.e., they have no lock or it has expired).
Value may only be |
withRetriesLeft | boolean or null Only include external tasks that have a positive (> 0) number of retries (or |
noRetriesLeft | boolean or null Only include external tasks that have 0 retries. Value may only be |
lockExpirationAfter | string or null <date-time> Restrict to external tasks that have a lock that expires after a given date. By
default, the date must have the format
|
lockExpirationBefore | string or null <date-time> Restrict to external tasks that have a lock that expires before a given date. By
default, the date must have the format
|
activityId | string or null Filter by the id of the activity that an external task is created for. |
activityIdIn | Array of strings or null Filter by the comma-separated list of ids of the activities that an external task is created for. |
executionId | string or null Filter by the id of the execution that an external task belongs to. |
processInstanceId | string or null Filter by the id of the process instance that an external task belongs to. |
processInstanceIdIn | Array of strings or null Filter by a comma-separated list of process instance ids that an external task may belong to. |
processDefinitionId | string or null Filter by the id of the process definition that an external task belongs to. |
tenantIdIn | Array of strings or null Filter by a comma-separated list of tenant ids. An external task must have one of the given tenant ids. |
active | boolean or null Only include active tasks. Value may only be |
suspended | boolean or null Only include suspended tasks. Value may only be |
priorityHigherThanOrEquals | integer or null <int64> Only include jobs with a priority higher than or equal to the given value.
Value must be a valid |
priorityLowerThanOrEquals | integer or null <int64> Only include jobs with a priority lower than or equal to the given value.
Value must be a valid |
Array of objects or null A JSON array of criteria to sort the result by. Each element of the array is a JSON object that specifies one ordering. The position in the array identifies the rank of an ordering, i.e., whether it is primary, secondary, etc. The ordering objects have the following properties:
|
{- "processDefinitionId": "aProcessDefinitionId",
- "sorting": [
- {
- "sortBy": "processDefinitionKey",
- "sortOrder": "asc"
}, - {
- "sortBy": "lockExpirationTime",
- "sortOrder": "desc"
}, - {
- "sortBy": "createTime",
- "sortOrder": "asc"
}
]
}
[- {
- "activityId": "anActivityId",
- "activityInstanceId": "anActivityInstanceId",
- "errorMessage": "anErrorMessage",
- "executionId": "anExecutionId",
- "id": "anExternalTaskId",
- "lockExpirationTime": "2015-10-06T16:34:42.000+0200",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "processInstanceId": "aProcessInstanceId",
- "tenantId": null,
- "retries": 3,
- "suspended": false,
- "workerId": "aWorkerId",
- "topicName": "aTopic",
- "priority": 9,
- "businessKey": "aBusinessKey"
}, - {
- "activityId": "anotherActivityId",
- "activityInstanceId": "anotherActivityInstanceId",
- "errorMessage": "anotherErrorMessage",
- "executionId": "anotherExecutionId",
- "id": "anotherExternalTaskId",
- "lockExpirationTime": "2015-10-06T16:34:42.000+0200",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "anotherProcessDefinitionKey",
- "processInstanceId": "anotherProcessInstanceId",
- "tenantId": null,
- "retries": 1,
- "suspended": false,
- "workerId": "aWorkerId",
- "topicName": "aTopic",
- "priority": 3,
- "businessKey": "aBusinessKey"
}
]
Queries for the number of external tasks that fulfill given parameters. Takes the same parameters as the Get External Tasks method.
externalTaskId | string Filter by an external task's id. |
externalTaskIdIn | string Filter by the comma-separated list of external task ids. |
topicName | string Filter by an external task topic. |
workerId | string Filter by the id of the worker that the task was most recently locked by. |
locked | boolean Only include external tasks that are currently locked (i.e., they have a lock time and it has not expired).
Value may only be |
notLocked | boolean Only include external tasks that are currently not locked (i.e., they have no lock or it has expired).
Value may only be |
withRetriesLeft | boolean Only include external tasks that have a positive (> 0) number of retries (or |
noRetriesLeft | boolean Only include external tasks that have 0 retries. Value may only be |
lockExpirationAfter | string <date-time> Restrict to external tasks that have a lock that expires after a given date. By
default, the date must have the format
|
lockExpirationBefore | string <date-time> Restrict to external tasks that have a lock that expires before a given date. By
default, the date must have the format
|
activityId | string Filter by the id of the activity that an external task is created for. |
activityIdIn | string Filter by the comma-separated list of ids of the activities that an external task is created for. |
executionId | string Filter by the id of the execution that an external task belongs to. |
processInstanceId | string Filter by the id of the process instance that an external task belongs to. |
processInstanceIdIn | string Filter by a comma-separated list of process instance ids that an external task may belong to. |
processDefinitionId | string Filter by the id of the process definition that an external task belongs to. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. An external task must have one of the given tenant ids. |
active | boolean Only include active tasks. Value may only be |
suspended | boolean Only include suspended tasks. Value may only be |
priorityHigherThanOrEquals | integer <int64> Only include jobs with a priority higher than or equal to the given value.
Value must be a valid |
priorityLowerThanOrEquals | integer <int64> Only include jobs with a priority lower than or equal to the given value.
Value must be a valid |
{- "count": 42
}
Queries for the number of external tasks that fulfill given parameters. This method takes the same message body as the Get External Tasks (POST) method.
externalTaskId | string or null Filter by an external task's id. |
externalTaskIdIn | Array of strings or null Filter by the comma-separated list of external task ids. |
topicName | string or null Filter by an external task topic. |
workerId | string or null Filter by the id of the worker that the task was most recently locked by. |
locked | boolean or null Only include external tasks that are currently locked (i.e., they have a lock time and it has not expired).
Value may only be |
notLocked | boolean or null Only include external tasks that are currently not locked (i.e., they have no lock or it has expired).
Value may only be |
withRetriesLeft | boolean or null Only include external tasks that have a positive (> 0) number of retries (or |
noRetriesLeft | boolean or null Only include external tasks that have 0 retries. Value may only be |
lockExpirationAfter | string or null <date-time> Restrict to external tasks that have a lock that expires after a given date. By
default, the date must have the format
|
lockExpirationBefore | string or null <date-time> Restrict to external tasks that have a lock that expires before a given date. By
default, the date must have the format
|
activityId | string or null Filter by the id of the activity that an external task is created for. |
activityIdIn | Array of strings or null Filter by the comma-separated list of ids of the activities that an external task is created for. |
executionId | string or null Filter by the id of the execution that an external task belongs to. |
processInstanceId | string or null Filter by the id of the process instance that an external task belongs to. |
processInstanceIdIn | Array of strings or null Filter by a comma-separated list of process instance ids that an external task may belong to. |
processDefinitionId | string or null Filter by the id of the process definition that an external task belongs to. |
tenantIdIn | Array of strings or null Filter by a comma-separated list of tenant ids. An external task must have one of the given tenant ids. |
active | boolean or null Only include active tasks. Value may only be |
suspended | boolean or null Only include suspended tasks. Value may only be |
priorityHigherThanOrEquals | integer or null <int64> Only include jobs with a priority higher than or equal to the given value.
Value must be a valid |
priorityLowerThanOrEquals | integer or null <int64> Only include jobs with a priority lower than or equal to the given value.
Value must be a valid |
Array of objects or null A JSON array of criteria to sort the result by. Each element of the array is a JSON object that specifies one ordering. The position in the array identifies the rank of an ordering, i.e., whether it is primary, secondary, etc. The ordering objects have the following properties:
|
{- "topicName": "aTopicName",
- "withRetriesLeft": true
}
{- "count": 1
}
Fetches and locks a specific number of external tasks for execution by a worker. Query can be restricted to specific task topics and for each task topic an individual lock time can be provided.
workerId required | string Mandatory. The id of the worker on which behalf tasks are fetched. The returned tasks are locked for that worker and can only be completed when providing the same worker id. |
maxTasks required | integer or null <int32> Mandatory. The maximum number of tasks to return. |
usePriority | boolean or null A |
asyncResponseTimeout | integer or null <int64> The Long Polling timeout in milliseconds. Note: The value cannot be set larger than 1.800.000 milliseconds (corresponds to 30 minutes). |
Array of objects or null (FetchExternalTaskTopicDto) A JSON array of topic objects for which external tasks should be fetched. The returned tasks may be arbitrarily distributed among these topics. Each topic object has the following properties: | |
Array of objects or null Apply sorting of the result |
Request with variable filtering
{- "workerId": "aWorkerId",
- "maxTasks": 2,
- "usePriority": true,
- "topics": [
- {
- "topicName": "createOrder",
- "lockDuration": 10000,
- "variables": [
- "orderId"
]
}
]
}
Request with variable filtering
[- {
- "activityId": "anActivityId",
- "activityInstanceId": "anActivityInstanceId",
- "errorMessage": "anErrorMessage",
- "errorDetails": "anErrorDetails",
- "executionId": "anExecutionId",
- "id": "anExternalTaskId",
- "lockExpirationTime": "2015-10-06T16:34:42.000+0200",
- "createTime": "2015-10-06T16:34:42.000+0200",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "processInstanceId": "aProcessInstanceId",
- "tenantId": null,
- "retries": 3,
- "workerId": "aWorkerId",
- "priority": 4,
- "topicName": "createOrder",
- "variables": {
- "orderId": {
- "type": "String",
- "value": "1234",
- "valueInfo": { }
}
}
}, - {
- "activityId": "anActivityId",
- "activityInstanceId": "anActivityInstanceId",
- "errorMessage": "anErrorMessage",
- "errorDetails": "anotherErrorDetails",
- "executionId": "anExecutionId",
- "id": "anExternalTaskId",
- "lockExpirationTime": "2015-10-06T16:34:42.000+0200",
- "createTime": "2015-10-06T16:34:42.000+0200",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "processInstanceId": "aProcessInstanceId",
- "tenantId": null,
- "retries": 3,
- "workerId": "aWorkerId",
- "priority": 0,
- "topicName": "createOrder",
- "variables": {
- "orderId": {
- "type": "String",
- "value": "3456",
- "valueInfo": { }
}
}
}
]
Sets the number of retries left to execute external tasks by id synchronously. If retries are set to 0, an incident is created.
retries | integer or null <int32> The number of retries to set for the external task. Must be >= 0. If this is 0, an incident is created and the task cannot be fetched anymore unless the retries are increased again. Can not be null. |
externalTaskIds | Array of strings or null The ids of the external tasks to set the number of retries for. |
processInstanceIds | Array of strings or null The ids of process instances containing the tasks to set the number of retries for. |
object (ExternalTaskQueryDto) A JSON object with the following properties: | |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances |
{- "retries": 123,
- "externalTaskIds": [
- "anExternalTask",
- "anotherExternalTask"
]
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Sets the number of retries left to execute external tasks by id asynchronously. If retries are set to 0, an incident is created.
retries | integer or null <int32> The number of retries to set for the external task. Must be >= 0. If this is 0, an incident is created and the task cannot be fetched anymore unless the retries are increased again. Can not be null. |
externalTaskIds | Array of strings or null The ids of the external tasks to set the number of retries for. |
processInstanceIds | Array of strings or null The ids of process instances containing the tasks to set the number of retries for. |
object (ExternalTaskQueryDto) A JSON object with the following properties: | |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances |
{- "retries": 123,
- "externalTaskIds": [
- "anExternalTask",
- "anotherExternalTask"
]
}
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "jobsCreated": 10,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "tenantId": "aTenantId",
- "suspended": false,
- "createUserId": "demo"
}
Queries for distinct topic names of external tasks that fulfill given parameters. Query can be restricted to only tasks with retries left, tasks that are locked, or tasks that are unlocked. The parameters withLockedTasks and withUnlockedTasks are exclusive. Setting them both to true will return an empty list. Providing no parameters will return a list of all distinct topic names with external tasks.
withLockedTasks | boolean Only include external tasks that are currently locked (i.e., they have a lock time and it has not expired).
Value may only be |
withUnlockedTasks | boolean Only include external tasks that are currently not locked (i.e., they have no lock or it has expired).
Value may only be |
withRetriesLeft | boolean Only include external tasks that have a positive (> 0) number of retries (or |
[- "topic-a",
- "topic-b",
- "topic-c"
]
Retrieves an external task by id, corresponding to the ExternalTask
interface in the engine.
id required | string The id of the external task to be retrieved. |
{- "activityId": "anActivityId",
- "activityInstanceId": "anActivityInstanceId",
- "errorMessage": "anErrorMessage",
- "executionId": "anExecutionId",
- "id": "anExternalTaskId",
- "lockExpirationTime": "2015-10-06T16:34:42.000+0200",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "processInstanceId": "aProcessInstanceId",
- "tenantId": null,
- "retries": 3,
- "suspended": false,
- "workerId": "aWorkerId",
- "priority": 0,
- "topicName": "aTopic",
- "businessKey": "aBusinessKey"
}
Reports a business error in the context of a running external task by id. The error code must be specified to identify the BPMN error handler.
id required | string The id of the external task in which context a BPMN error is reported. |
workerId | string or null The id of the worker that reports the failure. Must match the id of the worker who has most recently locked the task. |
errorCode | string or null An error code that indicates the predefined error. It is used to identify the BPMN error handler. |
errorMessage | string or null An error message that describes the error. |
object or null A JSON object containing variable key-value pairs. |
{- "workerId": "aWorker",
- "errorCode": "bpmn-error",
- "errorMessage": "anErrorMessage",
- "variables": {
- "aVariable": {
- "value": "aStringValue",
- "type": "String"
}, - "anotherVariable": {
- "value": true,
- "type": "Boolean"
}
}
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Completes an external task by id and updates process variables.
id required | string The id of the task to complete. |
object or null A JSON object containing variable key-value pairs. Each key is a variable name and each value a JSON variable value object with the following properties: | |
object or null A JSON object containing local variable key-value pairs. Local variables are set only in the scope of external task. Each key is a variable name and each value a JSON variable value object with the following properties: | |
workerId | string Mandatory. The ID of the worker who is performing the operation on the external task. If the task is already locked, must match the id of the worker who has most recently locked the task. |
{- "workerId": "aWorker",
- "variables": {
- "aVariable": {
- "value": "aStringValue"
}, - "anotherVariable": {
- "value": 42
}, - "aThirdVariable": {
- "value": true
}
}, - "localVariables": {
- "aLocalVariable": {
- "value": "aStringValue"
}
}
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the error details in the context of a running external task by id.
id required | string The id of the external task for which the error details should be retrieved. |
org.apache.ibatis.jdbc.RuntimeSqlException: org.apache.ibatis.jdbc.RuntimeSqlException: test cause at org.camunda.bpm.engine.test.api.externaltask.ExternalTaskServiceTest.testHandleFailureWithErrorDetails(ExternalTaskServiceTest.java:1424) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Extends the timeout of the lock by a given amount of time.
id required | string The id of the external task. |
newDuration | integer or null <int64> An amount of time (in milliseconds). This is the new lock duration starting from the current moment. |
workerId | string Mandatory. The ID of the worker who is performing the operation on the external task. If the task is already locked, must match the id of the worker who has most recently locked the task. |
{- "workerId": "anId",
- "newDuration": 100000
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Reports a failure to execute an external task by id. A number of retries and a timeout until the task can be retried can be specified. If retries are set to 0, an incident for this task is created.
id required | string The id of the external task to report a failure for. |
errorMessage | string or null An message indicating the reason of the failure. |
errorDetails | string or null A detailed error description. |
retries | integer or null <int32> A number of how often the task should be retried. Must be >= 0. If this is 0, an incident is created and
the task cannot be fetched anymore unless the retries are increased again. The incident's message is set
to the |
retryTimeout | integer or null <int64> A timeout in milliseconds before the external task becomes available again for fetching. Must be >= 0. |
object or null A JSON object containing variable key-value pairs. Each key is a variable name and each value a JSON variable value object with the following properties: | |
object or null A JSON object containing local variable key-value pairs. Local variables are set only in the scope of external task. Each key is a variable name and each value a JSON variable value object with the following properties: | |
workerId | string Mandatory. The ID of the worker who is performing the operation on the external task. If the task is already locked, must match the id of the worker who has most recently locked the task. |
{- "workerId": "aWorker",
- "errorMessage": "Does not compute",
- "retries": 3,
- "retryTimeout": 60000
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Lock an external task by a given id for a specified worker and amount of time.
id required | string The id of the external task. |
lockDuration | integer <int64> The duration to lock the external task for in milliseconds.
Note: Attempting to lock an already locked external task with the same |
workerId | string Mandatory. The ID of the worker who is performing the operation on the external task. If the task is already locked, must match the id of the worker who has most recently locked the task. |
{- "workerId": "anId",
- "lockDuration": 100000
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Sets the priority of an existing external task by id. The default value of a priority is 0.
id required | string The id of the external task to set the priority for. |
priority | integer or null <int64> The priority of the resource. |
{- "priority": 5
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Sets the number of retries left to execute an external task by id. If retries are set to 0, an incident is created.
id required | string The id of the external task to set the number of retries for. |
retries | integer or null <int32> The number of retries to set for the resource. Must be >= 0. If this is 0, an incident is created and the task, or job, cannot be fetched, or acquired anymore unless the retries are increased again. Can not be null. |
{- "retries": 123
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Queries for a list of filters using a list of parameters. The size of the result set can be retrieved by using the Get Filter Count method.
filterId | string Filter by the id of the filter. |
resourceType | string Filter by the resource type of the filter, e.g., |
name | string Filter by the name of the filter. |
nameLike | string Filter by the name that the parameter is a substring of. |
owner | string Filter by the user id of the owner of the filter. |
itemCount | boolean If set to |
sortBy | string Enum: "filterId" "resourceType" "name" "owner" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /filter?resourceType=Task
[- {
- "id": "aFilter",
- "resourceType": "Task",
- "name": "My Filter",
- "owner": "jonny1",
- "query": {
- "assignee": "jonny1"
}, - "properties": {
- "color": "#58FA58",
- "description": "Filters assigned to me"
}
}, - {
- "id": "anotherFilter",
- "resourceType": "Task",
- "name": "Accountants Filter",
- "owner": "demo",
- "query": {
- "candidateGroup": "accountant"
}, - "properties": {
- "description": "Filters assigned to me",
- "priority": 10
}
}
]
The OPTIONS request allows you to check for the set of available operations
that the currently authenticated user can perform on the /filter
resource.
Whether the user can perform an operation or not may depend on various
factors, including the users authorizations to interact with this
resource and the internal configuration of the process engine.
OPTIONS /filter
{- "links": [
]
}
Retrieves the number of filters that fulfill a provided query. Corresponds to the size of the result set when using the Get Filters method.
filterId | string Filter by the id of the filter. |
resourceType | string Filter by the resource type of the filter, e.g., |
name | string Filter by the name of the filter. |
nameLike | string Filter by the name that the parameter is a substring of. |
owner | string Filter by the user id of the owner of the filter. |
GET /filter/count?resourceType=Task&owner=aUserId
{- "count": 3
}
Creates a new filter.
resourceType | string or null The resource type of the filter. |
name | string or null The name of the filter. |
owner | string or null The user id of the owner of the filter. |
query | object The query of the filter as a JSON object. |
properties | object The properties of a filter as a JSON object. |
POST /filter/create
{- "resourceType": "Task",
- "name": "Accounting Tasks",
- "owner": "jonny1",
- "query": {
- "candidateGroup": "accounting"
}, - "properties": {
- "color": "#3e4d2f",
- "description": "Tasks assigned to group accounting",
- "priority": 5
}
}
POST /filter/create
{- "id": "aFilterId",
- "resourceType": "Task",
- "name": "Accounting Tasks",
- "owner": "jonny1",
- "query": {
- "candidateGroup": "accounting"
}, - "properties": {
- "color": "#3e4d2f",
- "description": "Tasks assigned to group accounting",
- "priority": 5
}
}
Retrieves a single filter by id, according to the Filter
interface in the engine.
id required | string The id of the filter to be retrieved. |
itemCount | boolean If set to |
GET /filter/aFilterId
{- "id": "9917d731-3cde-11e4-b704-f0def1e59da8",
- "name": "Accounting Tasks",
- "owner": null,
- "properties": {
- "color": "#3e4d2f",
- "description": "Tasks assigned to group accounting",
- "priority": 5
}, - "query": {
- "candidateGroup": "accounting"
}, - "resourceType": "Task"
}
The OPTIONS request allows you to check for the set of available operations
that the currently authenticated user can perform on the /filter
resource.
Whether the user can perform an operation or not may depend on various
factors, including the users authorizations to interact with this
resource and the internal configuration of the process engine.
id required | string The id of the filter to be checked. |
OPTIONS /filter/aFilterId
{- "links": [
- {
- "method": "GET",
- "rel": "singleResult"
}, - {
- "method": "POST",
- "rel": "singleResult"
}, - {
- "method": "GET",
- "rel": "count"
}, - {
- "method": "POST",
- "rel": "count"
},
]
}
Updates an existing filter.
id required | string The id of the filter to be updated. |
resourceType | string or null The resource type of the filter. |
name | string or null The name of the filter. |
owner | string or null The user id of the owner of the filter. |
query | object The query of the filter as a JSON object. |
properties | object The properties of a filter as a JSON object. |
PUT /filter/aFilterID
{- "resourceType": "Task",
- "name": "My Tasks",
- "owner": "jonny1",
- "query": {
- "assignee": "jonny1"
}, - "properties": {
- "color": "#99CCFF",
- "description": "Tasks assigned to me",
- "priority": -10
}
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Executes the saved query of the filter by id and returns the count. This method is slightly more powerful then the Get Execute Filter Count method because it allows to extend the saved query of the filter.
id required | string The id of the filter to execute. |
A JSON object which corresponds to the type of the saved query of the filter, i.e., if the resource type of the filter is Task the body should form a valid task query corresponding to the Task resource.
POST filter/aTaskFilterId/singleResult
. Note: The examples show a task filter. So the request body corresponds to a task query. For other resource types the request body will differ.
{- "assignee": "jonny1",
- "taskDefinitionKey": "aTaskKey"
}
POST filter/aTaskFilterId/singleResult
{- "count": 1
}
Executes the saved query of the filter by id and returns the result list.
id required | string The id of the filter to execute. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /filter/aTaskFilterId/list/?firstResult=0&maxResults=2
. Note: The examples show the result of a task filter. So the response corresponds to a task, but for other filters the response format will differ.
[- {
- "assignee": "jonny1",
- "caseDefinitionId": null,
- "caseExecutionId": null,
- "caseInstanceId": null,
- "created": "2014-09-15T15:45:48.000+0200",
- "delegationState": null,
- "description": null,
- "due": null,
- "executionId": "aExecutionId",
- "followUp": null,
- "formKey": null,
- "id": "aTaskId",
- "lastUpdated": "2014-09-15T15:45:48.000+0200",
- "name": "Task 2",
- "owner": null,
- "parentTaskId": null,
- "priority": 50,
- "processDefinitionId": "aProcessId",
- "processInstanceId": "aProcessInstanceId",
- "suspended": false,
- "taskDefinitionKey": "aTaskKey"
}, - {
- "assignee": "demo",
- "caseDefinitionId": null,
- "caseExecutionId": null,
- "caseInstanceId": null,
- "created": "2014-09-15T10:42:18.000+0200",
- "delegationState": null,
- "description": null,
- "due": null,
- "executionId": "anotherExecutionId",
- "followUp": null,
- "formKey": null,
- "id": "anotherTaskId",
- "lastUpdated": "2014-09-15T15:45:48.000+0200",
- "name": "Task 2",
- "owner": null,
- "parentTaskId": null,
- "priority": 50,
- "processDefinitionId": "anotherProcessId",
- "processInstanceId": "anotherProcessInstanceId",
- "suspended": false,
- "taskDefinitionKey": "anotherTaskKey"
}
]
Executes the saved query of the filter by id and returns the result list. This method is slightly more powerful then the Get Execute FilterList method because it allows to extend the saved query of the filter.
id required | string The id of the filter to execute. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
A JSON object which corresponds to the type of the saved query of the filter, i.e., if the resource type of the filter is Task the body should form a valid task query corresponding to the Task resource.
POST /filter/aTaskFilterId/list/?firstResult=0&maxResults=2
. Note: The examples show a task filter. So the request body corresponds to a task query. For other resource types the request body will differ.
{- "assignee": "jonny1",
- "taskDefinitionKey": "aTaskKey"
}
POST /filter/aTaskFilterId/list/?firstResult=0&maxResults=2
. Note: The examples show the result of a task filter. So the response corresponds to a task, but for other filters the response format will differ.
[- {
- "assignee": "jonny1",
- "caseDefinitionId": null,
- "caseExecutionId": null,
- "caseInstanceId": null,
- "created": "2014-09-15T15:45:48.000+0200",
- "delegationState": null,
- "description": null,
- "due": null,
- "executionId": "aExecutionId",
- "followUp": null,
- "formKey": null,
- "lastUpdated": "2014-09-15T15:45:48.000+0200",
- "id": "aTaskId",
- "name": "Task 2",
- "owner": null,
- "parentTaskId": null,
- "priority": 50,
- "processDefinitionId": "aProcessId",
- "processInstanceId": "aProcessInstanceId",
- "suspended": false,
- "taskDefinitionKey": "aTaskKey"
}
]
Executes the saved query of the filter by id and returns the single result.
id required | string The id of the filter to execute. |
GET /filter/aTaskFilterId/singleResult
. Note: The examples show the result of a task filter. So the response corresponds to a task, but for other filters the response format will differ.
{- "assignee": "jonny1",
- "caseDefinitionId": null,
- "caseExecutionId": null,
- "caseInstanceId": null,
- "created": "2014-09-15T15:45:48.000+0200",
- "delegationState": null,
- "description": null,
- "due": null,
- "executionId": "aExecutionId",
- "followUp": null,
- "formKey": null,
- "id": "aTaskId",
- "lastUpdated": "2014-09-15T15:45:48.000+0200",
- "name": "Task 2",
- "owner": null,
- "parentTaskId": null,
- "priority": 50,
- "processDefinitionId": "aProcessId",
- "processInstanceId": "aProcessInstanceId",
- "suspended": false,
- "taskDefinitionKey": "aTaskKey"
}
Executes the saved query of the filter by id and returns the single result. This method is slightly more powerful then the Get Execute Filter Single Result method because it allows to extend the saved query of the filter.
id required | string The id of the filter to execute. |
A JSON object which corresponds to the type of the saved query of the filter, i.e., if the resource type of the filter is Task the body should form a valid task query corresponding to the Task resource.
POST filter/aTaskFilterId/singleResult
. Note: The examples show a task filter. So the request body corresponds to a task query. For other resource types the request body will differ.
{- "assignee": "jonny1",
- "taskDefinitionKey": "aTaskKey"
}
POST filter/aTaskFilterId/singleResult
. Note: The examples show the result of a task filter. So the response corresponds to a task, but for other filters the response format will differ.
{- "assignee": "jonny1",
- "caseDefinitionId": null,
- "caseExecutionId": null,
- "caseInstanceId": null,
- "created": "2014-09-15T15:45:48.000+0200",
- "delegationState": null,
- "description": null,
- "due": null,
- "executionId": "aExecutionId",
- "followUp": null,
- "formKey": null,
- "id": "aTaskId",
- "lastUpdated": "2014-09-15T15:45:48.000+0200",
- "name": "Task 2",
- "owner": null,
- "parentTaskId": null,
- "priority": 50,
- "processDefinitionId": "aProcessId",
- "processInstanceId": "aProcessInstanceId",
- "suspended": false,
- "taskDefinitionKey": "aTaskKey"
}
Queries for a list of groups using a list of parameters. The size of the result set can be retrieved by using the Get Group Count method.
sortBy | string Enum: "id" "name" "type" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
id | string Filter by the id of the group. |
idIn | string Filter by a comma seperated list of group ids. |
name | string Filter by the name of the group. |
nameLike | string Filter by the name that the parameter is a substring of. |
type | string Filter by the type of the group. |
member | string Only retrieve groups where the given user id is a member of. |
memberOfTenant | string Only retrieve groups which are members of the given tenant. |
GET /group?name=Sales
[- {
- "id": "sales",
- "name": "Sales",
- "type": "Organizational Unit"
}
]
The /group
resource supports two custom OPTIONS requests, this one for the resource as such and one for
individual group instances. The OPTIONS request allows checking for the set of available operations that
the currently authenticated user can perform on the /group
resource. If the user can perform an operation
or not may depend on various things, including the users authorizations to interact with this resource and
the internal configuration of the process engine.
OPTIONS /group
{- "links": [
]
}
Queries for a list of groups using a list of parameters. The size of the result set can be retrieved by using the Get Group Count (POST) method.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
id | string or null Filter by the id of the group. |
idIn | Array of strings or null Filter by a JSON string array of group ids. |
name | string or null Filter by the name of the group. |
nameLike | string or null Filter by the name that the parameter is a substring of. |
type | string or null Filter by the type of the group. |
member | string or null Only retrieve groups where the given user id is a member of. |
memberOfTenant | string or null Only retrieve groups which are members of the given tenant. |
Array of objects or null Apply sorting of the result |
{- "name": "Sales"
}
POST /group
[- {
- "id": "sales",
- "name": "Sales",
- "type": "Organizational Unit"
}
]
Queries for groups using a list of parameters and retrieves the count.
id | string Filter by the id of the group. |
idIn | string Filter by a comma seperated list of group ids. |
name | string Filter by the name of the group. |
nameLike | string Filter by the name that the parameter is a substring of. |
type | string Filter by the type of the group. |
member | string Only retrieve groups where the given user id is a member of. |
memberOfTenant | string Only retrieve groups which are members of the given tenant. |
GET /group/count?name=Sales
{- "count": 1
}
Queries for groups using a list of parameters and retrieves the count.
id | string or null Filter by the id of the group. |
idIn | Array of strings or null Filter by a JSON string array of group ids. |
name | string or null Filter by the name of the group. |
nameLike | string or null Filter by the name that the parameter is a substring of. |
type | string or null Filter by the type of the group. |
member | string or null Only retrieve groups where the given user id is a member of. |
memberOfTenant | string or null Only retrieve groups which are members of the given tenant. |
Array of objects or null Apply sorting of the result |
{- "name": "Sales"
}
POST /group/count
{- "count": 1
}
Creates a new group.
id | string or null The id of the group. |
name | string or null The name of the group. |
type | string or null The type of the group. |
{- "id": "sales",
- "name": "Sales",
- "type": "Organizational Unit"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
The /group
resource supports two custom OPTIONS requests, one for the resource as such and this one for individual group instances.
The OPTIONS request allows checking for the set of available operations that the currently authenticated user can perform on the
/group/{id}
resource instance. If the user can perform an operation or not may depend on various things, including the users authorizations
to interact with this resource and the internal configuration of the process engine.
id required | string The id of the group. |
OPTIONS /group/aGroupId
{- "links": [
]
}
Updates a given group by id.
id required | string The id of the group. |
id | string or null The id of the group. |
name | string or null The name of the group. |
type | string or null The type of the group. |
{- "id": "sales",
- "name": "Sales",
- "type": "Organizational Unit"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
The OPTIONS request allows checking for the set of available operations that the currently authenticated user can perform on the resource. If the user can perform an operation or not may depend on various things, including the users authorizations to interact with this resource and the internal configuration of the process engine.
id required | string The id of the group. |
OPTIONS /group/sales/members
{- "links": [
- {
- "method": "DELETE",
- "rel": "delete"
},
]
}
Removes a member from a group.
id required | string The id of the group. |
userId required | string The id of user to remove from the group. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Queries for historic activity instances that fulfill the given parameters. The size of the result set can be retrieved by using the Get Historic Activity Instance Count method.
sortBy | string Enum: "activityInstanceId" "instanceId" "executionId" "activityId" "activityName" "activityType" "startTime" "endTime" "duration" "definitionId" "occurrence" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
activityInstanceId | string Filter by activity instance id. |
processInstanceId | string Filter by process instance id. |
processDefinitionId | string Filter by process definition id. |
executionId | string Filter by the id of the execution that executed the activity instance. |
activityId | string Filter by the activity id (according to BPMN 2.0 XML). |
activityName | string Filter by the activity name (according to BPMN 2.0 XML). |
activityType | string Filter by activity type. |
taskAssignee | string Only include activity instances that are user tasks and assigned to a given user. |
finished | boolean Only include finished activity instances.
Value may only be |
unfinished | boolean Only include unfinished activity instances.
Value may only be |
canceled | boolean Only include canceled activity instances.
Value may only be |
completeScope | boolean Only include activity instances which completed a scope.
Value may only be |
startedBefore | string <date-time> Restrict to instances that were started before the given date. By default,
the date must have the format |
startedAfter | string <date-time> Restrict to instances that were started after the given date. By default,
the date must have the format |
finishedBefore | string <date-time> Restrict to instances that were finished before the given date. By default,
the date must have the format |
finishedAfter | string <date-time> Restrict to instances that were finished after the given date. By default,
the date must have the format |
tenantIdIn | string Filter by a comma-separated list of ids. An activity instance must have one of the given tenant ids. |
withoutTenantId | boolean Only include historic activity instances that belong to no tenant. Value may only be |
Response for GET /history/activity-instance?activityType=userTask&taskAssignee=peter
[- {
- "activityId": "anActivity",
- "activityName": "anActivityName",
- "activityType": "userTask",
- "assignee": "peter",
- "calledProcessInstanceId": "aHistoricCalledProcessInstanceId",
- "calledCaseInstanceId": null,
- "canceled": true,
- "completeScope": false,
- "durationInMillis": 2000,
- "endTime": "2013-04-23T18:42:43.000+0200",
- "executionId": "anExecutionId",
- "id": "aHistoricActivityInstanceId",
- "parentActivityInstanceId": "aHistoricParentActivityInstanceId",
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "startTime": "2013-04-23T11:20:43.000+0200",
- "taskId": "aTaskId",
- "tenantId": null,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
]
Queries for historic activity instances that fulfill the given parameters. The size of the result set can be retrieved by using the Get Historic Activity Instance Count method.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
activityInstanceId | string or null Filter by activity instance id. |
processInstanceId | string or null Filter by process instance id. |
processDefinitionId | string or null Filter by process definition id. |
executionId | string or null Filter by the id of the execution that executed the activity instance. |
activityId | string or null Filter by the activity id (according to BPMN 2.0 XML). |
activityName | string or null Filter by the activity name (according to BPMN 2.0 XML). |
activityType | string or null Filter by activity type. |
taskAssignee | string or null Only include activity instances that are user tasks and assigned to a given user. |
finished | boolean or null Only include finished activity instances.
Value may only be |
unfinished | boolean or null Only include unfinished activity instances.
Value may only be |
canceled | boolean or null Only include canceled activity instances.
Value may only be |
completeScope | boolean or null Only include activity instances which completed a scope.
Value may only be |
startedBefore | string or null <date-time> Restrict to instances that were started before the given date. By default,
the date must have the format |
startedAfter | string or null <date-time> Restrict to instances that were started after the given date. By default,
the date must have the format |
finishedBefore | string or null <date-time> Restrict to instances that were finished before the given date. By default,
the date must have the format |
finishedAfter | string or null <date-time> Restrict to instances that were finished after the given date. By default,
the date must have the format |
tenantIdIn | Array of strings or null Must be a JSON array of Strings. An activity instance must have one of the given tenant ids. |
withoutTenantId | boolean or null Only include historic activity instances that belong to no tenant. Value may only be |
Array of objects or null Apply sorting of the result |
{- "activityType": "userTask",
- "taskAssignee": "peter",
- "sorting": [
- {
- "sortBy": "activityId",
- "sortOrder": "asc"
}, - {
- "sortBy": "executionId",
- "sortOrder": "desc"
}
]
}
[- {
- "activityId": "anActivity",
- "activityName": "anActivityName",
- "activityType": "userTask",
- "assignee": "peter",
- "calledProcessInstanceId": "aHistoricCalledProcessInstanceId",
- "calledCaseInstanceId": null,
- "canceled": true,
- "completeScope": false,
- "durationInMillis": 2000,
- "endTime": "2013-04-23T18:42:43.000+0200",
- "executionId": "anExecutionId",
- "id": "aHistoricActivityInstanceId",
- "parentActivityInstanceId": "aHistoricParentActivityInstanceId",
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "startTime": "2013-04-23T11:20:43.000+0200",
- "taskId": "aTaskId",
- "tenantId": null,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
]
Queries for the number of historic activity instances that fulfill the given parameters. Takes the same parameters as the Get Historic Activity Instance method.
activityInstanceId | string Filter by activity instance id. |
processInstanceId | string Filter by process instance id. |
processDefinitionId | string Filter by process definition id. |
executionId | string Filter by the id of the execution that executed the activity instance. |
activityId | string Filter by the activity id (according to BPMN 2.0 XML). |
activityName | string Filter by the activity name (according to BPMN 2.0 XML). |
activityType | string Filter by activity type. |
taskAssignee | string Only include activity instances that are user tasks and assigned to a given user. |
finished | boolean Only include finished activity instances.
Value may only be |
unfinished | boolean Only include unfinished activity instances.
Value may only be |
canceled | boolean Only include canceled activity instances.
Value may only be |
completeScope | boolean Only include activity instances which completed a scope.
Value may only be |
startedBefore | string <date-time> Restrict to instances that were started before the given date. By default,
the date must have the format |
startedAfter | string <date-time> Restrict to instances that were started after the given date. By default,
the date must have the format |
finishedBefore | string <date-time> Restrict to instances that were finished before the given date. By default,
the date must have the format |
finishedAfter | string <date-time> Restrict to instances that were finished after the given date. By default,
the date must have the format |
tenantIdIn | string Filter by a comma-separated list of ids. An activity instance must have one of the given tenant ids. |
withoutTenantId | boolean Only include historic activity instances that belong to no tenant. Value may only be |
Response for GET /history/activity-instance/count?activityType=userTask
{- "count": 1
}
Queries for the number of historic activity instances that fulfill the given parameters.
activityInstanceId | string or null Filter by activity instance id. |
processInstanceId | string or null Filter by process instance id. |
processDefinitionId | string or null Filter by process definition id. |
executionId | string or null Filter by the id of the execution that executed the activity instance. |
activityId | string or null Filter by the activity id (according to BPMN 2.0 XML). |
activityName | string or null Filter by the activity name (according to BPMN 2.0 XML). |
activityType | string or null Filter by activity type. |
taskAssignee | string or null Only include activity instances that are user tasks and assigned to a given user. |
finished | boolean or null Only include finished activity instances.
Value may only be |
unfinished | boolean or null Only include unfinished activity instances.
Value may only be |
canceled | boolean or null Only include canceled activity instances.
Value may only be |
completeScope | boolean or null Only include activity instances which completed a scope.
Value may only be |
startedBefore | string or null <date-time> Restrict to instances that were started before the given date. By default,
the date must have the format |
startedAfter | string or null <date-time> Restrict to instances that were started after the given date. By default,
the date must have the format |
finishedBefore | string or null <date-time> Restrict to instances that were finished before the given date. By default,
the date must have the format |
finishedAfter | string or null <date-time> Restrict to instances that were finished after the given date. By default,
the date must have the format |
tenantIdIn | Array of strings or null Must be a JSON array of Strings. An activity instance must have one of the given tenant ids. |
withoutTenantId | boolean or null Only include historic activity instances that belong to no tenant. Value may only be |
Array of objects or null Apply sorting of the result |
{- "activityType": "userTask"
}
{- "count": 1
}
Retrieves a historic activity instance by id, according to the HistoricActivityInstance
interface in the engine.
id required | string The id of the historic activity instance to be retrieved. |
{- "id": "aActivityInstId",
- "activityId": "anActivity",
- "activityName": "anActivityName",
- "activityType": "userTask",
- "assignee": "peter",
- "calledProcessInstanceId": "aHistoricCalledProcessInstanceId",
- "calledCaseInstanceId": null,
- "canceled": true,
- "completeScope": false,
- "durationInMillis": 2000,
- "endTime": "2013-04-23T18:42:43.000+0200",
- "executionId": "anExecutionId",
- "parentActivityInstanceId": "aHistoricParentActivityInstanceId",
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "startTime": "2013-04-23T11:20:43.000+0200",
- "taskId": "aTaskId",
- "tenantId": null,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
Queries for historic batches that fulfill given parameters. Parameters may be the properties of batches, such as the id or type. The size of the result set can be retrieved by using the Get Historic Batch Count method.
batchId | string Filter by batch id. |
type | string Filter by batch type. See the User Guide for more information about batch types. |
completed | boolean Filter completed or not completed batches. If the value is
|
tenantIdIn | string Filter by a comma-separated list of tenant ids. A batch matches if it has one of the given tenant ids. |
withoutTenantId | boolean Only include batches which belong to no tenant. Value can effectively only be |
sortBy | string Enum: "batchId" "startTime" "endTime" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /history/batch?type=aBatchType&completed=true&sortBy=batchId&sortOrder=asc
[- {
- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "tenantId": "aTenantId",
- "createUserId": "aUserId",
- "startTime": "2016-04-12T15:29:33.000+0200",
- "endTime": "2016-04-12T16:23:34.000+0200",
- "removalTime": "2016-04-15T16:23:34.000+0200"
}
]
Retrieves a report about a historic batch operations relevant to history cleanup (see History cleanup ) so that you can tune the history time to live. These reports include the count of the finished batches, cleanable batches and type of the batch. The size of the result set can be retrieved by using the Get Cleanable Batch Report Count method.
Please note: The history time to live for batch operations does not support Multi-Tenancy. The report will return an information for all batch operations (for all tenants) if you have permissions to see the history.
sortBy | string Value: "finished" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /history/batch/cleanable-batch-report
An array containing finished batches information relevant to history cleanup.
[- {
- "batchType": "instance-modification",
- "historyTimeToLive": 5,
- "finishedBatchCount": 100,
- "cleanableBatchCount": 53
}, - {
- "batchType": "instance-deletion",
- "historyTimeToLive": 5,
- "finishedBatchCount": 1000,
- "cleanableBatchCount": 13
}
]
Queries for the number of report results about a historic batch operations relevant to history cleanup (see History cleanup ). Takes the same parameters as the Get Cleanable Batch Report method.
GET /history/batch/cleanable-batch-report/count
{- "count": 10
}
Requests the number of historic batches that fulfill the query criteria. Takes the same filtering parameters as the Get Historic Batches method.
batchId | string Filter by batch id. |
type | string Filter by batch type. See the User Guide for more information about batch types. |
completed | boolean Filter completed or not completed batches. If the value is
|
tenantIdIn | string Filter by a comma-separated list of tenant ids. A batch matches if it has one of the given tenant ids. |
withoutTenantId | boolean Only include batches which belong to no tenant. Value can effectively only be |
GET /history/batch/count?type=aBatchType
{- "count": 1
}
Sets the removal time to multiple historic batches asynchronously (batch).
At least historicBatchIds or historicBatchQuery has to be provided. If both are provided, all instances matching query criterion and instances from the list will be updated with a removal time.
historicBatchQuery | object or null Query for the historic batches to set the removal time for. |
historicBatchIds | Array of strings or null The ids of the historic batches to set the removal time for. |
absoluteRemovalTime | string or null <date-time> The date for which the instances shall be removed. Value may not be Note: Cannot be set in conjunction with |
clearedRemovalTime | boolean or null Sets the removal time to Note: Cannot be set in conjunction with |
calculatedRemovalTime | boolean or null The removal time is calculated based on the engine's configuration settings. Value may only be Note: Cannot be set in conjunction with |
{- "absoluteRemovalTime": "2019-05-05T11:56:24.725+0200",
- "historicBatchQuery": {
- "completed": true
}, - "historicBatchIds": [
- "b4d2ad98-7240-11e9-98b7-be5e0f7575b7",
- "b4d2ad94-7240-11e9-98b7-be5e0f7575b7"
]
}
POST /history/batch/set-removal-time
{- "id": "120b568d-724a-11e9-98b7-be5e0f7575b7",
- "type": "batch-set-removal-time",
- "totalJobs": 12,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "120b5690-724a-11e9-98b7-be5e0f7575b7",
- "monitorJobDefinitionId": "120b568f-724a-11e9-98b7-be5e0f7575b7",
- "batchJobDefinitionId": "120b568e-724a-11e9-98b7-be5e0f7575b7",
- "tenantId": "accounting"
}
Retrieves a historic batch by id, according to the HistoricBatch
interface in the
engine.
id required | string The id of the historic batch to be retrieved. |
GET /history/batch/aBatchId
{- "id": "aBatchId",
- "type": "aBatchType",
- "size": 10,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "tenantId": "aTenantId",
- "createUserId": "aUserId",
- "startTime": "2016-04-12T15:29:33.000+0200",
- "endTime": "2016-04-12T16:23:34.000+0200",
- "removalTime": "2016-04-15T16:23:34.000+0200"
}
Retrieves a report about a decision definition and finished decision instances relevant to history cleanup (see History cleanup), so that you can tune the history time to live. These reports include the count of the finished historic decision instances, cleanable decision instances and basic decision definition data - id, key, name and version. The size of the result set can be retrieved by using the Get Cleanable Decision Instance Report Count method.
decisionDefinitionIdIn | string Filter by decision definition ids. Must be a comma-separated list of decision definition ids. |
decisionDefinitionKeyIn | string Filter by decision definition keys. Must be a comma-separated list of decision definition keys. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A decision definition must have one of the given tenant ids. |
withoutTenantId | boolean Only include decision definitions which belong to no tenant. Value may only be |
compact | boolean Only include decision instances which have more than zero finished instances. Value may only be |
sortBy | string Value: "finished" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /history/decision-definition/cleanable-decision-instance-report
[- {
- "decisionDefinitionId": "invoice:1:7bf79f13-ef95-11e6-b6e6-34f39ab71d4e",
- "decisionDefinitionKey": "invoice",
- "decisionDefinitionName": "Invoice Receipt",
- "decisionDefinitionVersion": 1,
- "historyTimeToLive": 5,
- "finishedDecisionInstanceCount": 100,
- "cleanableDecisionInstanceCount": 53,
- "tenantId": "aTenantId"
}, - {
- "decisionDefinitionId": "invoice:2:7bf79f13-ef95-11e6-b6e6-34f39ab71d4e",
- "decisionDefinitionKey": "invoice",
- "decisionDefinitionName": "Invoice Receipt v2.0",
- "decisionDefinitionVersion": 2,
- "historyTimeToLive": 5,
- "finishedDecisionInstanceCount": 1000,
- "cleanableDecisionInstanceCount": 13,
- "tenantId": "aTenantId"
}
]
Queries for the number of report results about a decision definition and finished decision instances relevant to history cleanup (see History cleanup). Takes the same parameters as the Get Cleanable Decision Instance Report method.
decisionDefinitionIdIn | string Filter by decision definition ids. Must be a comma-separated list of decision definition ids. |
decisionDefinitionKeyIn | string Filter by decision definition keys. Must be a comma-separated list of decision definition keys. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A decision definition must have one of the given tenant ids. |
withoutTenantId | boolean Only include decision definitions which belong to no tenant. Value may only be |
compact | boolean Only include decision instances which have more than zero finished instances. Value may only be |
GET /history/decision-definition/cleanable-decision-instance-report/count
{- "count": 1
}
Queries for historic decision instances that fulfill the given parameters. The size of the result set can be retrieved by using the Get Historic Decision Instance Count method.
decisionInstanceId | string Filter by decision instance id. |
decisionInstanceIdIn | string Filter by decision instance ids. Must be a comma-separated list of decision instance ids. |
decisionDefinitionId | string Filter by the decision definition the instances belongs to. |
decisionDefinitionIdIn | string Filter by the decision definitions the instances belongs to. Must be a comma-separated list of decision definition ids. |
decisionDefinitionKey | string Filter by the key of the decision definition the instances belongs to. |
decisionDefinitionKeyIn | string Filter by the keys of the decision definition the instances belongs to. Must be a comma- separated list of decision definition keys. |
decisionDefinitionName | string Filter by the name of the decision definition the instances belongs to. |
decisionDefinitionNameLike | string Filter by the name of the decision definition the instances belongs to, that the parameter is a substring of. |
processDefinitionId | string Filter by the process definition the instances belongs to. |
processDefinitionKey | string Filter by the key of the process definition the instances belongs to. |
processInstanceId | string Filter by the process instance the instances belongs to. |
caseDefinitionId | string Filter by the case definition the instances belongs to. |
caseDefinitionKey | string Filter by the key of the case definition the instances belongs to. |
caseInstanceId | string Filter by the case instance the instances belongs to. |
activityIdIn | string Filter by the activity ids the instances belongs to. Must be a comma-separated list of acitvity ids. |
activityInstanceIdIn | string Filter by the activity instance ids the instances belongs to. Must be a comma-separated list of acitvity instance ids. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A historic decision instance must have one of the given tenant ids. |
withoutTenantId | boolean Only include historic decision instances that belong to no tenant. Value may only be
|
evaluatedBefore | string <date-time> Restrict to instances that were evaluated before the given date.
By default, the date must have the format |
evaluatedAfter | string <date-time> Restrict to instances that were evaluated after the given date.
By default, the date must have the format |
userId | string Restrict to instances that were evaluated by the given user. |
rootDecisionInstanceId | string Restrict to instances that have a given root decision instance id. This also includes the decision instance with the given id. |
rootDecisionInstancesOnly | boolean Restrict to instances those are the root decision instance of an evaluation.
Value may only be |
decisionRequirementsDefinitionId | string Filter by the decision requirements definition the instances belongs to. |
decisionRequirementsDefinitionKey | string Filter by the key of the decision requirements definition the instances belongs to. |
includeInputs | boolean Include input values in the result.
Value may only be |
includeOutputs | boolean Include output values in the result.
Value may only be |
disableBinaryFetching | boolean Disables fetching of byte array input and output values.
Value may only be |
disableCustomObjectDeserialization | boolean Disables deserialization of input and output values that are custom objects.
Value may only be |
sortBy | string Enum: "evaluationTime" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /history/decision-instance?includeInputs=true&includeOutputs=true
[- {
- "activityId": "assignApprover",
- "activityInstanceId": "assignApprover:67e9de1e-579d-11e5-9848-f0def1e59da8",
- "collectResultValue": null,
- "decisionDefinitionId": "invoice-assign-approver:1:4c864d79-579d-11e5-9848-f0def1e59da8",
- "decisionDefinitionKey": "invoice-assign-approver",
- "decisionDefinitionName": "Assign Approver",
- "evaluationTime": "2015-09-10T11:22:06.000+0200",
- "removalTime": null,
- "id": "67ea2c3f-579d-11e5-9848-f0def1e59da8",
- "inputs": [
- {
- "clauseId": "clause1",
- "clauseName": "Invoice Amount",
- "decisionInstanceId": "67ea2c3f-579d-11e5-9848-f0def1e59da8",
- "errorMessage": null,
- "id": "67ea2c41-579d-11e5-9848-f0def1e59da8",
- "type": "Double",
- "createTime": "2015-09-10T11:22:06.000+0200",
- "removalTime": null,
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "value": 123,
- "valueInfo": { }
}, - {
- "clauseId": "clause2",
- "clauseName": "Invoice Category",
- "decisionInstanceId": "67ea2c3f-579d-11e5-9848-f0def1e59da8",
- "errorMessage": null,
- "id": "67ea2c40-579d-11e5-9848-f0def1e59da8",
- "type": "String",
- "createTime": "2015-09-10T11:22:06.000+0200",
- "removalTime": null,
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "value": "Misc",
- "valueInfo": { }
}
], - "outputs": [
- {
- "clauseId": "clause3",
- "clauseName": "Approver Group",
- "decisionInstanceId": "67ea2c3f-579d-11e5-9848-f0def1e59da8",
- "errorMessage": null,
- "id": "67ea2c42-579d-11e5-9848-f0def1e59da8",
- "ruleId": "DecisionRule_1of5a87",
- "ruleOrder": 1,
- "type": "String",
- "createTime": "2015-09-10T11:22:06.000+0200",
- "removalTime": null,
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "value": "accounting",
- "valueInfo": { },
- "variableName": "result"
}
], - "processDefinitionId": "invoice:1:4c6e3197-579d-11e5-9848-f0def1e59da8",
- "processDefinitionKey": "invoice",
- "processInstanceId": "67e98fec-579d-11e5-9848-f0def1e59da8",
- "rootProcessInstanceId": "f8259e5d-ab9d-11e8-8449-e4a7a094a9d6",
- "caseDefinitionId": null,
- "caseDefinitionKey": null,
- "caseInstanceId": null,
- "tenantId": null,
- "userId": null,
- "rootDecisionInstanceId": null,
- "decisionRequirementsDefinitionId": null,
- "decisionRequirementsDefinitionKey": null
}
]
Queries for the number of historic decision instances that fulfill the given parameters. Takes the same parameters as the Get Historic Decision Instances method.
decisionInstanceId | string Filter by decision instance id. |
decisionInstanceIdIn | string Filter by decision instance ids. Must be a comma-separated list of decision instance ids. |
decisionDefinitionId | string Filter by the decision definition the instances belongs to. |
decisionDefinitionIdIn | string Filter by the decision definitions the instances belongs to. Must be a comma-separated list of decision definition ids. |
decisionDefinitionKey | string Filter by the key of the decision definition the instances belongs to. |
decisionDefinitionKeyIn | string Filter by the keys of the decision definition the instances belongs to. Must be a comma- separated list of decision definition keys. |
decisionDefinitionName | string Filter by the name of the decision definition the instances belongs to. |
decisionDefinitionNameLike | string Filter by the name of the decision definition the instances belongs to, that the parameter is a substring of. |
processDefinitionId | string Filter by the process definition the instances belongs to. |
processDefinitionKey | string Filter by the key of the process definition the instances belongs to. |
processInstanceId | string Filter by the process instance the instances belongs to. |
caseDefinitionId | string Filter by the case definition the instances belongs to. |
caseDefinitionKey | string Filter by the key of the case definition the instances belongs to. |
caseInstanceId | string Filter by the case instance the instances belongs to. |
activityIdIn | string Filter by the activity ids the instances belongs to. Must be a comma-separated list of acitvity ids. |
activityInstanceIdIn | string Filter by the activity instance ids the instances belongs to. Must be a comma-separated list of acitvity instance ids. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A historic decision instance must have one of the given tenant ids. |
withoutTenantId | boolean Only include historic decision instances that belong to no tenant. Value may only be
|
evaluatedBefore | string <date-time> Restrict to instances that were evaluated before the given date.
By default, the date must have the format |
evaluatedAfter | string <date-time> Restrict to instances that were evaluated after the given date.
By default, the date must have the format |
userId | string Restrict to instances that were evaluated by the given user. |
rootDecisionInstanceId | string Restrict to instances that have a given root decision instance id. This also includes the decision instance with the given id. |
rootDecisionInstancesOnly | boolean Restrict to instances those are the root decision instance of an evaluation.
Value may only be |
decisionRequirementsDefinitionId | string Filter by the decision requirements definition the instances belongs to. |
decisionRequirementsDefinitionKey | string Filter by the key of the decision requirements definition the instances belongs to. |
{- "count": 4
}
Delete multiple historic decision instances asynchronously (batch).
At least historicDecisionInstanceIds
or historicDecisionInstanceQuery
has to be provided. If both are provided then all instances matching query
criterion and instances from the list will be deleted.
historicDecisionInstanceIds | Array of strings or null A list of historic decision instance ids to delete. |
object (HistoricDecisionInstanceQueryDto) A historic decision instance query which defines a list of historic decision instances | |
deleteReason | string or null A string with delete reason. |
POST /history/decision-instance/delete
{- "historicDecisionInstanceIds": [
- "aDecision",
- "secondDecision"
], - "historicDecisionInstanceQuery": {
- "decisionDefinitionKey": "a-definition-key"
}, - "deleteReason": "a delete reason"
}
POST /history/decision-instance/delete
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "batchJobsPerSeed": 100,
- "jobsCreated": 10,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "suspened": false,
- "tenantId": null,
- "createUserId": "aUser"
}
Sets the removal time to multiple historic decision instances asynchronously (batch).
At least historicDecisionInstanceIds
or
historicDecisionInstanceQuery
has to be provided. If both are
provided, all instances matching query criterion and instances from the list
will be updated with a removal time.
hierarchical | boolean or null Sets the removal time to all historic decision instances in the hierarchy.
Value may only be |
object (HistoricDecisionInstanceQueryDto) A historic decision instance query which defines a list of historic decision instances | |
historicDecisionInstanceIds | Array of strings or null The ids of the historic decision instances to set the removal time for. |
absoluteRemovalTime | string or null <date-time> The date for which the instances shall be removed. Value may not be Note: Cannot be set in conjunction with |
clearedRemovalTime | boolean or null Sets the removal time to Note: Cannot be set in conjunction with |
calculatedRemovalTime | boolean or null The removal time is calculated based on the engine's configuration settings. Value may only be Note: Cannot be set in conjunction with |
POST /history/decision-instance/set-removal-time
{- "absoluteRemovalTime": "2019-05-05T11:56:24.725+0200",
- "hierarchical": true,
- "historicDecisionInstanceQuery": {
- "evaluatedBefore": "2019-09-05T17:02:10.123+0200"
}, - "historicDecisionInstanceIds": [
- "b4d2ad98-7240-11e9-98b7-be5e0f7575b7",
- "b4d2ad94-7240-11e9-98b7-be5e0f7575b7"
]
}
POST /history/decision-instance/set-removal-time
{- "id": "120b568d-724a-11e9-98b7-be5e0f7575b7",
- "type": "decision-set-removal-time",
- "totalJobs": 12,
- "batchJobsPerSeed": 100,
- "jobsCreated": 10,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "120b5690-724a-11e9-98b7-be5e0f7575b7",
- "monitorJobDefinitionId": "120b568f-724a-11e9-98b7-be5e0f7575b7",
- "batchJobDefinitionId": "120b568e-724a-11e9-98b7-be5e0f7575b7",
- "suspended": false,
- "tenantId": "accounting",
- "createUserId": "demo-user"
}
Retrieves a historic decision instance by id, according to the
HistoricDecisionInstance
interface in the engine.
id required | string The id of the historic decision instance to be retrieved. |
includeInputs | boolean Include input values in the result.
Value may only be |
includeOutputs | boolean Include output values in the result.
Value may only be |
disableBinaryFetching | boolean Disables fetching of byte array input and output values.
Value may only be |
disableCustomObjectDeserialization | boolean Disables deserialization of input and output values that are custom objects.
Value may only be |
GET /history/decision-instance/aDecisionInstId?includeInput=true&includeOutputs=true
{- "activityId": "assignApprover",
- "activityInstanceId": "assignApprover:67e9de1e-579d-11e5-9848-f0def1e59da8",
- "collectResultValue": null,
- "decisionDefinitionId": "invoice-assign-approver:1:4c864d79-579d-11e5-9848-f0def1e59da8",
- "decisionDefinitionKey": "invoice-assign-approver",
- "decisionDefinitionName": "Assign Approver",
- "evaluationTime": "2015-09-10T11:22:06.000+0200",
- "removalTime": null,
- "id": "67ea2c3f-579d-11e5-9848-f0def1e59da8",
- "inputs": [
- {
- "clauseId": "clause1",
- "clauseName": "Invoice Amount",
- "decisionInstanceId": "67ea2c3f-579d-11e5-9848-f0def1e59da8",
- "errorMessage": null,
- "id": "67ea2c41-579d-11e5-9848-f0def1e59da8",
- "type": "Double",
- "createTime": "2015-09-10T11:22:06.000+0200",
- "removalTime": null,
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "value": 123,
- "valueInfo": { }
}, - {
- "clauseId": "clause2",
- "clauseName": "Invoice Category",
- "decisionInstanceId": "67ea2c3f-579d-11e5-9848-f0def1e59da8",
- "errorMessage": null,
- "id": "67ea2c40-579d-11e5-9848-f0def1e59da8",
- "type": "String",
- "createTime": "2015-09-10T11:22:06.000+0200",
- "removalTime": null,
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "value": "Misc",
- "valueInfo": { }
}
], - "outputs": [
- {
- "clauseId": "clause3",
- "clauseName": "Approver Group",
- "decisionInstanceId": "67ea2c3f-579d-11e5-9848-f0def1e59da8",
- "errorMessage": null,
- "id": "67ea2c42-579d-11e5-9848-f0def1e59da8",
- "ruleId": "DecisionRule_1of5a87",
- "ruleOrder": 1,
- "type": "String",
- "createTime": "2015-09-10T11:22:06.000+0200",
- "removalTime": null,
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "value": "accounting",
- "valueInfo": { },
- "variableName": "result"
}
], - "processDefinitionId": "invoice:1:4c6e3197-579d-11e5-9848-f0def1e59da8",
- "processDefinitionKey": "invoice",
- "processInstanceId": "67e98fec-579d-11e5-9848-f0def1e59da8",
- "rootProcessInstanceId": "f8259e5d-ab9d-11e8-8449-e4a7a094a9d6",
- "caseDefinitionId": null,
- "caseDefinitionKey": null,
- "caseInstanceId": null,
- "tenantId": null,
- "userId": null,
- "rootDecisionInstanceId": null,
- "decisionRequirementsDefinitionId": null,
- "decisionRequirementsDefinitionKey": null
}
Retrieves evaluation statistics of a given decision requirements definition.
id required | string The id of the decision requirements definition. |
decisionInstanceId | string Restrict query results to be based only on specific evaluation instance of a given decision requirements definition. |
GET /history/decision-requirements-definition/invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c/statistics
[- {
- "decisionDefinitionKey": "dish-decision",
- "evaluations": 1
}
]
Queries for historic details that fulfill the given parameters. The size of the result set can be retrieved by using the Get Historic Detail Count method.
processInstanceId | string Filter by process instance id. |
processInstanceIdIn | string Only include historic details which belong to one of the passed comma-separated process instance ids. |
executionId | string Filter by execution id. |
taskId | string Filter by task id. |
activityInstanceId | string Filter by activity instance id. |
caseInstanceId | string Filter by case instance id. |
caseExecutionId | string Filter by case execution id. |
variableInstanceId | string Filter by variable instance id. |
variableTypeIn | string Only include historic details where the variable updates belong to one of the passed comma-separated
list of variable types. A list of all supported variable types can be found
here.
Note: All non-primitive variables are associated with the type |
variableNameLike | string Filter by variable name like. Example usage: |
tenantIdIn | string Filter by a comma-separated list of tenant ids. |
withoutTenantId | boolean Only include historic details that belong to no tenant. Value may only be
|
userOperationId | string Filter by a user operation id. |
formFields | boolean Only include |
variableUpdates | boolean Only include |
excludeTaskDetails | boolean Excludes all task-related |
initial | boolean Restrict to historic variable updates that contain only initial variable values.
Value may only be |
occurredBefore | string <date-time> Restrict to historic details that occured before the given date (including the date).
Default format
|
occurredAfter | string <date-time> Restrict to historic details that occured after the given date (including the date).
Default format
|
sortBy | string Enum: "processInstanceId" "variableName" "variableType" "variableRevision" "formPropertyId" "time" "occurrence" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
deserializeValues | boolean Determines whether serializable variable values (typically variables that
store custom Java objects) should be deserialized on server side (default
If set to If set to Note: While |
GET /history/detail?processInstanceId=3cd597b7-001a-11e7-8c6b-34f39ab71d4e
[- {
- "type": "variableUpdate",
- "id": "3cd79390-001a-11e7-8c6b-34f39ab71d4e",
- "processDefinitionKey": "invoice",
- "processDefinitionId": "invoice:1:3c59899b-001a-11e7-8c6b-34f39ab71d4e",
- "processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
- "activityInstanceId": "StartEvent_1:3cd7456e-001a-11e7-8c6b-34f39ab71d4e",
- "executionId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
- "caseDefinitionKey": null,
- "caseDefinitionId": null,
- "caseInstanceId": null,
- "caseExecutionId": null,
- "taskId": null,
- "tenantId": null,
- "userOperationId": "3cd76c7f-001a-11e7-8c6b-34f39ab71d4e",
- "time": "2017-03-03T15:03:54.000+0200",
- "variableName": "amount",
- "variableInstanceId": "3cd65b08-001a-11e7-8c6b-34f39ab71d4e",
- "variableType": "Double",
- "value": 30,
- "valueInfo": { },
- "revision": 0,
- "errorMessage": null,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "initial": true
}, - {
- "type": "variableUpdate",
- "id": "3cd79392-001a-11e7-8c6b-34f39ab71d4e",
- "processDefinitionKey": "invoice",
- "processDefinitionId": "invoice:1:3c59899b-001a-11e7-8c6b-34f39ab71d4e",
- "processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
- "activityInstanceId": "StartEvent_1:3cd7456e-001a-11e7-8c6b-34f39ab71d4e",
- "executionId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
- "caseDefinitionKey": null,
- "caseDefinitionId": null,
- "caseInstanceId": null,
- "caseExecutionId": null,
- "taskId": null,
- "tenantId": null,
- "userOperationId": "3cd76c7f-001a-11e7-8c6b-34f39ab71d4e",
- "time": "2017-03-03T15:03:54.000+0200",
- "variableName": "invoiceDocument",
- "variableInstanceId": "3cd65b0a-001a-11e7-8c6b-34f39ab71d4e",
- "variableType": "File",
- "value": null,
- "valueInfo": {
- "mimeType": "application/pdf",
- "filename": "invoice.pdf"
}, - "revision": 0,
- "errorMessage": null,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "initial": true
}
]
Queries for historic details that fulfill the given parameters. This method is slightly more powerful than the Get Historic Details method because it allows sorting by multiple parameters. The size of the result set can be retrieved by using the Get Historic Detail Count method.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
deserializeValues | boolean Determines whether serializable variable values (typically variables that
store custom Java objects) should be deserialized on server side (default
If set to If set to Note: While |
processInstanceId | string or null Filter by process instance id. |
processInstanceIdIn | Array of strings or null Only include historic details which belong to one of the passed process instance ids. |
executionId | string or null Filter by execution id. |
taskId | string or null Filter by task id. |
activityInstanceId | string or null Filter by activity instance id. |
caseInstanceId | string or null Filter by case instance id. |
caseExecutionId | string or null Filter by case execution id. |
variableInstanceId | string or null Filter by variable instance id. |
variableTypeIn | Array of strings or null Only include historic details where the variable updates belong to one of the passed
list of variable types. A list of all supported variable types can be found
here.
Note: All non-primitive variables are associated with the type |
variableNameLike | string or null Filter by variable name like. Example usage: |
tenantIdIn | Array of strings or null Filter by a list of tenant ids. |
withoutTenantId | boolean or null Only include historic details that belong to no tenant. Value may only be
|
userOperationId | string or null Filter by a user operation id. |
formFields | boolean or null Only include |
variableUpdates | boolean or null Only include |
excludeTaskDetails | boolean or null Excludes all task-related |
initial | boolean or null Restrict to historic variable updates that contain only initial variable values.
Value may only be |
occurredBefore | string or null <date-time> Restrict to historic details that occured before the given date (including the date).
Default format
|
occurredAfter | string or null <date-time> Restrict to historic details that occured after the given date (including the date).
Default format
|
Array of objects or null A JSON array of criteria to sort the result by. Each element of the array is
a JSON object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Does not have an effect for the |
POST /history/detail?firstResult=1&maxResults=10
{- "processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
- "occurredAfter": "2018-01-29T10:15:45.000+0100",
- "sorting": [
- {
- "sortBy": "processInstanceId",
- "sortOrder": "asc"
}
]
}
POST /history/detail?firstResult=1&maxResults=10
[- {
- "type": "variableUpdate",
- "id": "3cd79390-001a-11e7-8c6b-34f39ab71d4e",
- "processDefinitionKey": "invoice",
- "processDefinitionId": "invoice:1:3c59899b-001a-11e7-8c6b-34f39ab71d4e",
- "processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
- "activityInstanceId": "StartEvent_1:3cd7456e-001a-11e7-8c6b-34f39ab71d4e",
- "executionId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
- "caseDefinitionKey": null,
- "caseDefinitionId": null,
- "caseInstanceId": null,
- "caseExecutionId": null,
- "taskId": null,
- "tenantId": null,
- "userOperationId": "3cd76c7f-001a-11e7-8c6b-34f39ab71d4e",
- "time": "2017-03-03T15:03:54.000+0200",
- "variableName": "amount",
- "variableInstanceId": "3cd65b08-001a-11e7-8c6b-34f39ab71d4e",
- "variableType": "Double",
- "value": 30,
- "valueInfo": { },
- "revision": 0,
- "errorMessage": null,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "initial": true
}, - {
- "type": "variableUpdate",
- "id": "3cd79392-001a-11e7-8c6b-34f39ab71d4e",
- "processDefinitionKey": "invoice",
- "processDefinitionId": "invoice:1:3c59899b-001a-11e7-8c6b-34f39ab71d4e",
- "processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
- "activityInstanceId": "StartEvent_1:3cd7456e-001a-11e7-8c6b-34f39ab71d4e",
- "executionId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
- "caseDefinitionKey": null,
- "caseDefinitionId": null,
- "caseInstanceId": null,
- "caseExecutionId": null,
- "taskId": null,
- "tenantId": null,
- "userOperationId": "3cd76c7f-001a-11e7-8c6b-34f39ab71d4e",
- "time": "2017-03-03T15:03:54.000+0200",
- "variableName": "invoiceDocument",
- "variableInstanceId": "3cd65b0a-001a-11e7-8c6b-34f39ab71d4e",
- "variableType": "File",
- "value": null,
- "valueInfo": {
- "mimeType": "application/pdf",
- "filename": "invoice.pdf"
}, - "revision": 0,
- "errorMessage": null,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "initial": true
}
]
Queries for the number of historic details that fulfill the given parameters. Takes the same parameters as the Get Historic Details method.
processInstanceId | string Filter by process instance id. |
processInstanceIdIn | string Only include historic details which belong to one of the passed comma-separated process instance ids. |
executionId | string Filter by execution id. |
taskId | string Filter by task id. |
activityInstanceId | string Filter by activity instance id. |
caseInstanceId | string Filter by case instance id. |
caseExecutionId | string Filter by case execution id. |
variableInstanceId | string Filter by variable instance id. |
variableTypeIn | string Only include historic details where the variable updates belong to one of the passed comma-separated
list of variable types. A list of all supported variable types can be found
here.
Note: All non-primitive variables are associated with the type |
variableNameLike | string Filter by variable name like. Example usage: |
tenantIdIn | string Filter by a comma-separated list of tenant ids. |
withoutTenantId | boolean Only include historic details that belong to no tenant. Value may only be
|
userOperationId | string Filter by a user operation id. |
formFields | boolean Only include |
variableUpdates | boolean Only include |
excludeTaskDetails | boolean Excludes all task-related |
initial | boolean Restrict to historic variable updates that contain only initial variable values.
Value may only be |
occurredBefore | string <date-time> Restrict to historic details that occured before the given date (including the date).
Default format
|
occurredAfter | string <date-time> Restrict to historic details that occured after the given date (including the date).
Default format
|
GET /history/detail/count?variableName=my_variable
{- "count": 3
}
Retrieves a historic detail by id.
id required | string The id of the detail. |
deserializeValue | boolean Determines whether serializable variable values (typically
variables that store custom Java objects) should be deserialized
on server side (default If set to If set to Note: While |
GET /history/detail/3cd79390-001a-11e7-8c6b-34f39ab71d4e
{- "type": "variableUpdate",
- "id": "3cd79390-001a-11e7-8c6b-34f39ab71d4e",
- "processDefinitionKey": "invoice",
- "processDefinitionId": "invoice:1:3c59899b-001a-11e7-8c6b-34f39ab71d4e",
- "processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
- "activityInstanceId": "StartEvent_1:3cd7456e-001a-11e7-8c6b-34f39ab71d4e",
- "executionId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
- "caseDefinitionKey": null,
- "caseDefinitionId": null,
- "caseInstanceId": null,
- "caseExecutionId": null,
- "taskId": null,
- "tenantId": null,
- "userOperationId": "3cd76c7f-001a-11e7-8c6b-34f39ab71d4e",
- "time": "2017-03-03T15:03:54.000+0200",
- "variableName": "amount",
- "variableInstanceId": "3cd65b08-001a-11e7-8c6b-34f39ab71d4e",
- "variableType": "Double",
- "value": 30,
- "valueInfo": { },
- "revision": 0,
- "errorMessage": null,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "initial": true
}
Retrieves the content of a historic variable update by id. Applicable for byte array and file variables.
id required | string The id of the historic variable update. |
binary variable: Status 200. Content-Type: application/octet-stream
Queries for historic external task logs that fulfill the given parameters. The size of the result set can be retrieved by using the Get External Task Log Count method.
logId | string Filter by historic external task log id. |
externalTaskId | string Filter by external task id. |
topicName | string Filter by an external task topic. |
workerId | string Filter by the id of the worker that the task was most recently locked by. |
errorMessage | string Filter by external task exception message. |
activityIdIn | string Only include historic external task logs which belong to one of the passed activity ids. |
activityInstanceIdIn | string Only include historic external task logs which belong to one of the passed activity instance ids. |
executionIdIn | string Only include historic external task logs which belong to one of the passed execution ids. |
processInstanceId | string Filter by process instance id. |
processDefinitionId | string Filter by process definition id. |
processDefinitionKey | string Filter by process definition key. |
tenantIdIn | string Only include historic external task log entries which belong to one of the passed and comma-separated tenant ids. |
withoutTenantId | boolean Only include historic external task log entries that belong to no tenant. Value may only
be |
priorityLowerThanOrEquals | integer <int64> Only include logs for which the associated external task had a priority lower than or
equal to the given value. Value must be a valid |
priorityHigherThanOrEquals | integer <int64> Only include logs for which the associated external task had a priority higher than or
equal to the given value. Value must be a valid |
creationLog | boolean Only include creation logs. Value may only be |
failureLog | boolean Only include failure logs. Value may only be |
successLog | boolean Only include success logs. Value may only be |
deletionLog | boolean Only include deletion logs. Value may only be |
sortBy | string Enum: "timestamp" "externalTaskId" "topicName" "workerId" "retries" "priority" "activityId" "activityInstanceId" "executionId" "processInstanceId" "processDefinitionId" "processDefinitionKey" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /history/external-task-log?externalTaskId=anExternalTaskId
[- {
- "id": "someId",
- "timestamp": "2017-01-15T15:22:20.000+0200",
- "externalTaskId": "anExternalTaskId",
- "topicName": "aTopicName",
- "workerId": "aWorkerId",
- "retries": 3,
- "priority": 5,
- "errorMessage": "An error occured!",
- "activityId": "externalServiceTask",
- "activityInstanceId": "externalServiceTask:15",
- "executionId": "anExecutionId",
- "processInstanceId": "aProcessInstanceId",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "tenantId": null,
- "creationLog": false,
- "failureLog": true,
- "successLog": false,
- "deletionLog": false,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
]
Queries for historic external task logs that fulfill the given parameters.
This method is slightly more powerful than the
Get External Task Logs
method because it allows filtering by historic external task logs
values of the different types String
, Number
or Boolean
.
logId | string or null Filter by historic external task log id. |
externalTaskId | string or null Filter by external task id. |
topicName | string or null Filter by an external task topic. |
workerId | string or null Filter by the id of the worker that the task was most recently locked by. |
errorMessage | string or null Filter by external task exception message. |
activityIdIn | Array of strings or null Only include historic external task logs which belong to one of the passed activity ids. |
activityInstanceIdIn | Array of strings or null Only include historic external task logs which belong to one of the passed activity instance ids. |
executionIdIn | Array of strings or null Only include historic external task logs which belong to one of the passed execution ids. |
processInstanceId | string or null Filter by process instance id. |
processDefinitionId | string or null Filter by process definition id. |
processDefinitionKey | string or null Filter by process definition key. |
tenantIdIn | Array of strings or null Only include historic external task log entries which belong to one of the passed and comma-separated tenant ids. |
withoutTenantId | boolean or null Only include historic external task log entries that belong to no tenant. Value may only
be |
priorityLowerThanOrEquals | integer or null <int64> Only include logs for which the associated external task had a priority lower than or
equal to the given value. Value must be a valid |
priorityHigherThanOrEquals | integer or null <int64> Only include logs for which the associated external task had a priority higher than or
equal to the given value. Value must be a valid |
creationLog | boolean or null Only include creation logs. Value may only be |
failureLog | boolean or null Only include failure logs. Value may only be |
successLog | boolean or null Only include success logs. Value may only be |
deletionLog | boolean or null Only include deletion logs. Value may only be |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Sorting has no effect for |
{- "externalTaskId": "anExternalTaskId"
}
POST /history/external-task-log
[- {
- "id": "someId",
- "timestamp": "2017-01-15T15:22:20.000+0200",
- "externalTaskId": "anExternalTaskId",
- "topicName": "aTopicName",
- "workerId": "aWorkerId",
- "retries": 3,
- "priority": 5,
- "errorMessage": "An error occured!",
- "activityId": "externalServiceTask",
- "activityInstanceId": "externalServiceTask:15",
- "executionId": "anExecutionId",
- "processInstanceId": "aProcessInstanceId",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "tenantId": null,
- "creationLog": false,
- "failureLog": true,
- "successLog": false,
- "deletionLog": false,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
]
Queries for the number of historic external task logs that fulfill the given parameters. Takes the same parameters as the Get External Task Logs method.
logId | string Filter by historic external task log id. |
externalTaskId | string Filter by external task id. |
topicName | string Filter by an external task topic. |
workerId | string Filter by the id of the worker that the task was most recently locked by. |
errorMessage | string Filter by external task exception message. |
activityIdIn | string Only include historic external task logs which belong to one of the passed activity ids. |
activityInstanceIdIn | string Only include historic external task logs which belong to one of the passed activity instance ids. |
executionIdIn | string Only include historic external task logs which belong to one of the passed execution ids. |
processInstanceId | string Filter by process instance id. |
processDefinitionId | string Filter by process definition id. |
processDefinitionKey | string Filter by process definition key. |
tenantIdIn | string Only include historic external task log entries which belong to one of the passed and comma-separated tenant ids. |
withoutTenantId | boolean Only include historic external task log entries that belong to no tenant. Value may only
be |
priorityLowerThanOrEquals | integer <int64> Only include logs for which the associated external task had a priority lower than or
equal to the given value. Value must be a valid |
priorityHigherThanOrEquals | integer <int64> Only include logs for which the associated external task had a priority higher than or
equal to the given value. Value must be a valid |
creationLog | boolean Only include creation logs. Value may only be |
failureLog | boolean Only include failure logs. Value may only be |
successLog | boolean Only include success logs. Value may only be |
deletionLog | boolean Only include deletion logs. Value may only be |
GET /history/external-task-log/count?externalTaskId=anExternalTaskId
{- "count": 1
}
Queries for the number of historic external task logs that fulfill the given parameters. This method takes the same message body as the Get External Task Logs (POST) method and therefore it is slightly more powerful than the Get External Task Log Count method.
logId | string or null Filter by historic external task log id. |
externalTaskId | string or null Filter by external task id. |
topicName | string or null Filter by an external task topic. |
workerId | string or null Filter by the id of the worker that the task was most recently locked by. |
errorMessage | string or null Filter by external task exception message. |
activityIdIn | Array of strings or null Only include historic external task logs which belong to one of the passed activity ids. |
activityInstanceIdIn | Array of strings or null Only include historic external task logs which belong to one of the passed activity instance ids. |
executionIdIn | Array of strings or null Only include historic external task logs which belong to one of the passed execution ids. |
processInstanceId | string or null Filter by process instance id. |
processDefinitionId | string or null Filter by process definition id. |
processDefinitionKey | string or null Filter by process definition key. |
tenantIdIn | Array of strings or null Only include historic external task log entries which belong to one of the passed and comma-separated tenant ids. |
withoutTenantId | boolean or null Only include historic external task log entries that belong to no tenant. Value may only
be |
priorityLowerThanOrEquals | integer or null <int64> Only include logs for which the associated external task had a priority lower than or
equal to the given value. Value must be a valid |
priorityHigherThanOrEquals | integer or null <int64> Only include logs for which the associated external task had a priority higher than or
equal to the given value. Value must be a valid |
creationLog | boolean or null Only include creation logs. Value may only be |
failureLog | boolean or null Only include failure logs. Value may only be |
successLog | boolean or null Only include success logs. Value may only be |
deletionLog | boolean or null Only include deletion logs. Value may only be |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Sorting has no effect for |
{- "externalTaskId": "anExternalTaskId"
}
POST /history/external-task-log/count
{- "count": 1
}
Retrieves a historic external task log by id.
id required | string The id of the log entry. |
GET /history/external-task-log/someId
{- "id": "someId",
- "timestamp": "2017-01-15T15:22:20.000+0200",
- "externalTaskId": "anExternalTaskId",
- "topicName": "aTopicName",
- "workerId": "aWorkerId",
- "retries": 3,
- "priority": 5,
- "errorMessage": "An error occured!",
- "activityId": "externalServiceTask",
- "activityInstanceId": "externalServiceTask:15",
- "executionId": "anExecutionId",
- "processInstanceId": "aProcessInstanceId",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "tenantId": null,
- "creationLog": false,
- "failureLog": true,
- "successLog": false,
- "deletionLog": false,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
Retrieves the corresponding error details of the passed historic external task log by id.
id required | string The id of the historic external task log to get the error details for. |
GET history/external-task-log/someId/error-details
java.lang.RuntimeException: A exception message! at org.camunda.bpm.pa.service.FailingDelegate.execute(FailingDelegate.java:10) at org.camunda.bpm.engine.impl.delegate.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:34) at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37) ...
Queries for historic identity link logs that fulfill given parameters. The size of the result set can be retrieved by using the Get Identity-Link-Log Count method.
type | string Restricts to identity links that have the given type (candidate/assignee/owner). |
userId | string Restricts to identity links that have the given user id. |
groupId | string Restricts to identity links that have the given group id. |
dateBefore | string <date-time> Restricts to identity links that have the time before the given time. |
dateAfter | string <date-time> Restricts to identity links that have the time after the given time. |
taskId | string Restricts to identity links that have the given task id. |
processDefinitionId | string Restricts to identity links that have the given process definition id. |
processDefinitionKey | string Restricts to identity links that have the given process definition key. |
operationType | string Restricts to identity links that have the given operationType (add/delete). |
assignerId | string Restricts to identity links that have the given assigner id. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. |
withoutTenantId | boolean Only include historic identity links that belong to no tenant. Value may only be
|
sortBy | string Enum: "time" "type" "userId" "groupId" "taskId" "processDefinitionId" "processDefinitionKey" "operationType" "assignerId" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /history/identity-link-log?taskId=aTaskId
[- {
- "id": "1",
- "time": "2014-03-01T08:00:00.000+0200",
- "type": "candidate",
- "userId": "aUserId",
- "groupId": "aGroupId",
- "taskId": "aTaskId",
- "processDefinitionId": "12",
- "operationType": "add",
- "assignerId": "aAssignerId",
- "processDefinitionKey": "oneTaskProcess",
- "tenantId": "tenant1",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}, - {
- "id": "2",
- "time": "2014-03-05T10:00:00.000+0200",
- "type": "candidate",
- "userId": "aUserId",
- "groupId": "aGroupId",
- "taskId": "aTaskId",
- "processDefinitionId": "12",
- "operationType": "delete",
- "assignerId": "aAssignerId",
- "processDefinitionKey": "oneTaskProcess",
- "tenantId": "tenant1",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
]
Queries for the number of historic identity link logs that fulfill the given parameters. Takes the same parameters as the Get Identity-Link-Logs method.
type | string Restricts to identity links that have the given type (candidate/assignee/owner). |
userId | string Restricts to identity links that have the given user id. |
groupId | string Restricts to identity links that have the given group id. |
dateBefore | string <date-time> Restricts to identity links that have the time before the given time. |
dateAfter | string <date-time> Restricts to identity links that have the time after the given time. |
taskId | string Restricts to identity links that have the given task id. |
processDefinitionId | string Restricts to identity links that have the given process definition id. |
processDefinitionKey | string Restricts to identity links that have the given process definition key. |
operationType | string Restricts to identity links that have the given operationType (add/delete). |
assignerId | string Restricts to identity links that have the given assigner id. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. |
withoutTenantId | boolean Only include historic identity links that belong to no tenant. Value may only be
|
GET /history/identity-link-log/count?taskId=aTaskId
{- "count": 2
}
Queries for historic incidents that fulfill given parameters. The size of the result set can be retrieved by using the Get Incident Count method.
incidentId | string Restricts to incidents that have the given id. |
incidentType | string Restricts to incidents that belong to the given incident type. See the User Guide for a list of incident types. |
incidentMessage | string Restricts to incidents that have the given incident message. |
incidentMessageLike | string Restricts to incidents that incidents message is a substring of the given value. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%). |
processDefinitionId | string Restricts to incidents that belong to a process definition with the given id. |
processDefinitionKey | string Restricts to incidents that have the given processDefinitionKey. |
processDefinitionKeyIn | string Restricts to incidents that have one of the given process definition keys. |
processInstanceId | string Restricts to incidents that belong to a process instance with the given id. |
executionId | string Restricts to incidents that belong to an execution with the given id. |
createTimeBefore | string <date-time> Restricts to incidents that have a createTime date before the given date. By default, the date must have the format
|
createTimeAfter | string <date-time> Restricts to incidents that have a createTime date after the given date. By default, the date must have the format
|
endTimeBefore | string <date-time> Restricts to incidents that have an endTimeBefore date before the given date. By default, the date must have the format
|
endTimeAfter | string <date-time> Restricts to incidents that have an endTimeAfter date after the given date. By default, the date must have the format
|
activityId | string Restricts to incidents that belong to an activity with the given id. |
failedActivityId | string Restricts to incidents that were created due to the failure of an activity with the given id. |
causeIncidentId | string Restricts to incidents that have the given incident id as cause incident. |
rootCauseIncidentId | string Restricts to incidents that have the given incident id as root cause incident. |
configuration | string Restricts to incidents that have the given parameter set as configuration. |
historyConfiguration | string Restricts to incidents that have the given parameter set as history configuration. |
open | boolean Restricts to incidents that are open. |
resolved | boolean Restricts to incidents that are resolved. |
deleted | boolean Restricts to incidents that are deleted. |
tenantIdIn | string Restricts to incidents that have one of the given comma-separated tenant ids. |
withoutTenantId | boolean Only include historic incidents that belong to no tenant. Value may only be
|
jobDefinitionIdIn | string Restricts to incidents that have one of the given comma-separated job definition ids. |
sortBy | string Enum: "incidentId" "incidentMessage" "createTime" "endTime" "incidentType" "executionId" "activityId" "processInstanceId" "processDefinitionId" "processDefinitionKey" "causeIncidentId" "rootCauseIncidentId" "configuration" "historyConfiguration" "tenantId" "incidentState" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /history/incident?processInstanceId=aProcInstId
[- {
- "id": "anIncidentId",
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "executionId": "anExecutionId",
- "createTime": "2014-03-01T08:00:00.000+0200",
- "endTime": null,
- "incidentType": "failedJob",
- "activityId": "serviceTask",
- "failedActivityId": "serviceTask",
- "causeIncidentId": "aCauseIncidentId",
- "rootCauseIncidentId": "aRootCauseIncidentId",
- "configuration": "aConfiguration",
- "incidentMessage": "anIncidentMessage",
- "tenantId": null,
- "jobDefinitionId": "aJobDefinitionId",
- "open": true,
- "deleted": false,
- "resolved": false,
- "removalTime": null,
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "annotation": "an annotation"
}, - {
- "id": "anIncidentId",
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "executionId": "anotherExecutionId",
- "createTime": "2014-03-01T08:00:00.000+0200",
- "endTime": "2014-03-10T12:00:00.000+0200",
- "incidentType": "customIncidentType",
- "activityId": "userTask",
- "failedActivityId": "userTask",
- "causeIncidentId": "anotherCauseIncidentId",
- "rootCauseIncidentId": "anotherRootCauseIncidentId",
- "configuration": "anotherConfiguration",
- "incidentMessage": "anotherIncidentMessage",
- "tenantId": null,
- "jobDefinitionId": null,
- "open": false,
- "deleted": false,
- "resolved": true,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "annotation": "another annotation"
}
]
Queries for the number of historic incidents that fulfill the given parameters. Takes the same parameters as the Get Incidents method.
incidentId | string Restricts to incidents that have the given id. |
incidentType | string Restricts to incidents that belong to the given incident type. See the User Guide for a list of incident types. |
incidentMessage | string Restricts to incidents that have the given incident message. |
incidentMessageLike | string Restricts to incidents that incidents message is a substring of the given value. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%). |
processDefinitionId | string Restricts to incidents that belong to a process definition with the given id. |
processDefinitionKey | string Restricts to incidents that have the given processDefinitionKey. |
processDefinitionKeyIn | string Restricts to incidents that have one of the given process definition keys. |
processInstanceId | string Restricts to incidents that belong to a process instance with the given id. |
executionId | string Restricts to incidents that belong to an execution with the given id. |
createTimeBefore | string <date-time> Restricts to incidents that have a createTime date before the given date. By default, the date must have the format
|
createTimeAfter | string <date-time> Restricts to incidents that have a createTime date after the given date. By default, the date must have the format
|
endTimeBefore | string <date-time> Restricts to incidents that have an endTimeBefore date before the given date. By default, the date must have the format
|
endTimeAfter | string <date-time> Restricts to incidents that have an endTimeAfter date after the given date. By default, the date must have the format
|
activityId | string Restricts to incidents that belong to an activity with the given id. |
failedActivityId | string Restricts to incidents that were created due to the failure of an activity with the given id. |
causeIncidentId | string Restricts to incidents that have the given incident id as cause incident. |
rootCauseIncidentId | string Restricts to incidents that have the given incident id as root cause incident. |
configuration | string Restricts to incidents that have the given parameter set as configuration. |
historyConfiguration | string Restricts to incidents that have the given parameter set as history configuration. |
open | boolean Restricts to incidents that are open. |
resolved | boolean Restricts to incidents that are resolved. |
deleted | boolean Restricts to incidents that are deleted. |
tenantIdIn | string Restricts to incidents that have one of the given comma-separated tenant ids. |
withoutTenantId | boolean Only include historic incidents that belong to no tenant. Value may only be
|
jobDefinitionIdIn | string Restricts to incidents that have one of the given comma-separated job definition ids. |
GET /history/incident/count?processInstanceId=aProcInstId
{- "count": 2
}
Queries for historic job logs that fulfill the given parameters. The size of the result set can be retrieved by using the Get Job Log Count method.
logId | string Filter by historic job log id. |
jobId | string Filter by job id. |
jobExceptionMessage | string Filter by job exception message. |
jobDefinitionId | string Filter by job definition id. |
jobDefinitionType | string Filter by job definition type. See the User Guide for more information about job definition types. |
jobDefinitionConfiguration | string Filter by job definition configuration. |
activityIdIn | string Only include historic job logs which belong to one of the passed activity ids. |
failedActivityIdIn | string Only include historic job logs which belong to failures of one of the passed activity ids. |
executionIdIn | string Only include historic job logs which belong to one of the passed execution ids. |
processInstanceId | string Filter by process instance id. |
processDefinitionId | string Filter by process definition id. |
processDefinitionKey | string Filter by process definition key. |
deploymentId | string Filter by deployment id. |
tenantIdIn | string Only include historic job log entries which belong to one of the passed and comma- separated tenant ids. |
withoutTenantId | boolean Only include historic job log entries that belong to no tenant. Value may only be
|
hostname | string Filter by hostname. |
jobPriorityLowerThanOrEquals | integer <int64> Only include logs for which the associated job had a priority lower than or equal to the
given value. Value must be a valid |
jobPriorityHigherThanOrEquals | integer <int64> Only include logs for which the associated job had a priority higher than or equal to the
given value. Value must be a valid |
creationLog | boolean Only include creation logs. Value may only be |
failureLog | boolean Only include failure logs. Value may only be |
successLog | boolean Only include success logs. Value may only be |
deletionLog | boolean Only include deletion logs. Value may only be |
sortBy | string Enum: "timestamp" "jobId" "jobDefinitionId" "jobDueDate" "jobRetries" "jobPriority" "activityId" "executionId" "processInstanceId" "processDefinitionId" "processDefinitionKey" "deploymentId" "hostname" "occurrence" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /history/job-log?jobId=aJobId
[- {
- "id": "someId",
- "timestamp": "2015-01-15T15:22:20.000+0200",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "jobId": "aJobId",
- "jobDefinitionId": "aJobDefinitionId",
- "activityId": "serviceTask",
- "jobType": "message",
- "jobHandlerType": "async-continuation",
- "jobDueDate": null,
- "jobRetries": 3,
- "jobPriority": 15,
- "jobExceptionMessage": null,
- "failedActivityId": null,
- "executionId": "anExecutionId",
- "processInstanceId": "aProcessInstanceId",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "deploymentId": "aDeploymentId",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "tenantId": null,
- "hostname": "aHostname",
- "batchId": "aBatchId",
- "creationLog": true,
- "failureLog": false,
- "successLog": false,
- "deletionLog": false
}
]
Queries for historic job logs that fulfill the given parameters.
This method is slightly more powerful than the
Get Job Logs
method because it allows filtering by historic job logs values of the
different types String
, Number
or Boolean
.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
logId | string or null Filter by historic job log id. |
jobId | string or null Filter by job id. |
jobExceptionMessage | string or null Filter by job exception message. |
jobDefinitionId | string or null Filter by job definition id. |
jobDefinitionType | string or null Filter by job definition type. See the User Guide for more information about job definition types. |
jobDefinitionConfiguration | string or null Filter by job definition configuration. |
activityIdIn | Array of strings or null Only include historic job logs which belong to one of the passed activity ids. |
failedActivityIdIn | Array of strings or null Only include historic job logs which belong to failures of one of the passed activity ids. |
executionIdIn | Array of strings or null Only include historic job logs which belong to one of the passed execution ids. |
processInstanceId | string or null Filter by process instance id. |
processDefinitionId | string or null Filter by process definition id. |
processDefinitionKey | string or null Filter by process definition key. |
deploymentId | string or null Filter by deployment id. |
tenantIdIn | Array of strings or null Only include historic job log entries which belong to one of the passed and comma- separated tenant ids. |
withoutTenantId | boolean or null Only include historic job log entries that belong to no tenant. Value may only be
|
hostname | string or null Filter by hostname. |
jobPriorityLowerThanOrEquals | integer or null <int64> Only include logs for which the associated job had a priority lower than or equal to the
given value. Value must be a valid |
jobPriorityHigherThanOrEquals | integer or null <int64> Only include logs for which the associated job had a priority higher than or equal to the
given value. Value must be a valid |
creationLog | boolean or null Only include creation logs. Value may only be |
failureLog | boolean or null Only include failure logs. Value may only be |
successLog | boolean or null Only include success logs. Value may only be |
deletionLog | boolean or null Only include deletion logs. Value may only be |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Sorting has no effect for |
{- "jobId": "aJobId"
}
POST /history/job-log
[- {
- "id": "someId",
- "timestamp": "2015-01-15T15:22:20.000+0200",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "jobId": "aJobId",
- "jobDefinitionId": "aJobDefinitionId",
- "activityId": "serviceTask",
- "jobType": "message",
- "jobHandlerType": "async-continuation",
- "jobDueDate": null,
- "jobRetries": 3,
- "jobPriority": 15,
- "jobExceptionMessage": null,
- "failedActivityId": null,
- "executionId": "anExecutionId",
- "processInstanceId": "aProcessInstanceId",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "deploymentId": "aDeploymentId",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "tenantId": null,
- "hostname": "aHostname",
- "batchId": "aBatchId",
- "creationLog": true,
- "failureLog": false,
- "successLog": false,
- "deletionLog": false
}
]
Queries for the number of historic job logs that fulfill the given parameters. Takes the same parameters as the Get Job Logs method.
logId | string Filter by historic job log id. |
jobId | string Filter by job id. |
jobExceptionMessage | string Filter by job exception message. |
jobDefinitionId | string Filter by job definition id. |
jobDefinitionType | string Filter by job definition type. See the User Guide for more information about job definition types. |
jobDefinitionConfiguration | string Filter by job definition configuration. |
activityIdIn | string Only include historic job logs which belong to one of the passed activity ids. |
failedActivityIdIn | string Only include historic job logs which belong to failures of one of the passed activity ids. |
executionIdIn | string Only include historic job logs which belong to one of the passed execution ids. |
processInstanceId | string Filter by process instance id. |
processDefinitionId | string Filter by process definition id. |
processDefinitionKey | string Filter by process definition key. |
deploymentId | string Filter by deployment id. |
tenantIdIn | string Only include historic job log entries which belong to one of the passed and comma- separated tenant ids. |
withoutTenantId | boolean Only include historic job log entries that belong to no tenant. Value may only be
|
hostname | string Filter by hostname. |
jobPriorityLowerThanOrEquals | integer <int64> Only include logs for which the associated job had a priority lower than or equal to the
given value. Value must be a valid |
jobPriorityHigherThanOrEquals | integer <int64> Only include logs for which the associated job had a priority higher than or equal to the
given value. Value must be a valid |
creationLog | boolean Only include creation logs. Value may only be |
failureLog | boolean Only include failure logs. Value may only be |
successLog | boolean Only include success logs. Value may only be |
deletionLog | boolean Only include deletion logs. Value may only be |
GET /history/job-log/count?jobId=aJobId
{- "count": 1
}
Queries for the number of historic job logs that fulfill the given parameters. This method takes the same message body as the Get Job Logs (POST) method and therefore it is slightly more powerful than the Get Job Log Count method.
logId | string or null Filter by historic job log id. |
jobId | string or null Filter by job id. |
jobExceptionMessage | string or null Filter by job exception message. |
jobDefinitionId | string or null Filter by job definition id. |
jobDefinitionType | string or null Filter by job definition type. See the User Guide for more information about job definition types. |
jobDefinitionConfiguration | string or null Filter by job definition configuration. |
activityIdIn | Array of strings or null Only include historic job logs which belong to one of the passed activity ids. |
failedActivityIdIn | Array of strings or null Only include historic job logs which belong to failures of one of the passed activity ids. |
executionIdIn | Array of strings or null Only include historic job logs which belong to one of the passed execution ids. |
processInstanceId | string or null Filter by process instance id. |
processDefinitionId | string or null Filter by process definition id. |
processDefinitionKey | string or null Filter by process definition key. |
deploymentId | string or null Filter by deployment id. |
tenantIdIn | Array of strings or null Only include historic job log entries which belong to one of the passed and comma- separated tenant ids. |
withoutTenantId | boolean or null Only include historic job log entries that belong to no tenant. Value may only be
|
hostname | string or null Filter by hostname. |
jobPriorityLowerThanOrEquals | integer or null <int64> Only include logs for which the associated job had a priority lower than or equal to the
given value. Value must be a valid |
jobPriorityHigherThanOrEquals | integer or null <int64> Only include logs for which the associated job had a priority higher than or equal to the
given value. Value must be a valid |
creationLog | boolean or null Only include creation logs. Value may only be |
failureLog | boolean or null Only include failure logs. Value may only be |
successLog | boolean or null Only include success logs. Value may only be |
deletionLog | boolean or null Only include deletion logs. Value may only be |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Sorting has no effect for |
{- "jobId": "aJobId"
}
POST /history/job-log/count
{- "count": 1
}
Retrieves a historic job log by id.
id required | string The id of the log entry. |
GET /history/job-log/someId
{- "id": "someId",
- "timestamp": "2015-01-15T15:22:20.000+0200",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "jobId": "aJobId",
- "jobDefinitionId": "aJobDefinitionId",
- "activityId": "serviceTask",
- "jobType": "message",
- "jobHandlerType": "async-continuation",
- "jobDueDate": null,
- "jobRetries": 3,
- "jobPriority": 15,
- "jobExceptionMessage": null,
- "failedActivityId": null,
- "executionId": "anExecutionId",
- "processInstanceId": "aProcessInstanceId",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "deploymentId": "aDeploymentId",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "tenantId": null,
- "hostname": "aHostname",
- "batchId": "aBatchId",
- "creationLog": true,
- "failureLog": false,
- "successLog": false,
- "deletionLog": false
}
Retrieves the corresponding exception stacktrace to the passed historic job log by id.
id required | string The id of the historic job log to get the exception stacktrace for. |
GET history/job-log/someId/stacktrace
The result is the corresponding stacktrace as plain text.
java.lang.RuntimeException: A exception message! at org.camunda.bpm.pa.service.FailingDelegate.execute(FailingDelegate.java:10) at org.camunda.bpm.engine.impl.delegate.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:34) at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37) ...
Retrieves a report about a process definition and finished process instances relevant to history cleanup (see History cleanup) so that you can tune the history time to live. These reports include the count of the finished historic process instances, cleanable process instances and basic process definition data - id, key, name and version. The size of the result set can be retrieved by using the Get Cleanable Process Instance Report Count method.
processDefinitionIdIn | string Filter by process definition ids. Must be a comma-separated list of process definition ids. |
processDefinitionKeyIn | string Filter by process definition keys. Must be a comma-separated list of process definition keys. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A process definition must have one of the given tenant ids. |
withoutTenantId | boolean Only include process definitions which belong to no tenant. Value may only be |
compact | boolean Only include process instances which have more than zero finished instances. Value may
only be |
sortBy | string Value: "finished" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /history/process-definition/cleanable-process-instance-report
[- {
- "processDefinitionId": "invoice:1:7bf79f13-ef95-11e6-b6e6-34f39ab71d4e",
- "processDefinitionKey": "invoice",
- "processDefinitionName": "Invoice Receipt",
- "processDefinitionVersion": 1,
- "historyTimeToLive": 5,
- "finishedProcessInstanceCount": 100,
- "cleanableProcessInstanceCount": 53,
- "tenantId": "aTenantId"
}, - {
- "processDefinitionId": "invoice:2:7bf79f13-ef95-11e6-b6e6-34f39ab71d4e",
- "processDefinitionKey": "invoice",
- "processDefinitionName": "Invoice Receipt v2.0",
- "processDefinitionVersion": 2,
- "historyTimeToLive": 5,
- "finishedProcessInstanceCount": 1000,
- "cleanableProcessInstanceCount": 13,
- "tenantId": "aTenantId"
}
]
Queries for the number of report results about a process definition and finished process instances relevant to history cleanup (see History cleanup). Takes the same parameters as the Get Cleanable Process Instance Report method.
processDefinitionIdIn | string Filter by process definition ids. Must be a comma-separated list of process definition ids. |
processDefinitionKeyIn | string Filter by process definition keys. Must be a comma-separated list of process definition keys. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A process definition must have one of the given tenant ids. |
withoutTenantId | boolean Only include process definitions which belong to no tenant. Value may only be |
compact | boolean Only include process instances which have more than zero finished instances. Value may
only be |
GET /history/process-definition/cleanable-process-instance-report/count
{- "count": 1
}
Retrieves historic statistics of a given process definition, grouped by activities. These statistics include the number of running activity instances and, optionally, the number of canceled activity instances, finished activity instances and activity instances which completed a scope (i.e., in BPMN 2.0 manner: a scope is completed by an activity instance when the activity instance consumed a token but did not emit a new token). Note: This only includes historic data.
id required | string The id of the process definition. |
canceled | boolean Whether to include the number of canceled activity instances in the result or not. Valid
values are |
finished | boolean Whether to include the number of finished activity instances in the result or not. Valid
values are |
completeScope | boolean Whether to include the number of activity instances which completed a scope in the result
or not. Valid values are |
incidents | boolean Whether to include the number of incidents. Valid values are |
startedBefore | string <date-time> Restrict to process instances that were started before the given date. By default,
the date must have the format |
startedAfter | string <date-time> Restrict to process instances that were started after the given date. By default,
the date must have the format |
finishedBefore | string <date-time> Restrict to process instances that were finished before the given date. By default,
the date must have the format |
finishedAfter | string <date-time> Restrict to process instances that were finished after the given date. By default,
the date must have the format |
processInstanceIdIn | string Restrict to process instances with the given IDs. The IDs must be provided as a comma- separated list. |
sortBy | string Value: "activityId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
GET history/process-definition/aProcessDefinitionId/statistics?canceled=true
[- {
- "id": "anActivity",
- "instances": 123,
- "canceled": 50,
- "finished": 0,
- "completeScope": 0,
- "openIncidents": 0,
- "resolvedIncidents": 0,
- "deletedIncidents": 0
}, - {
- "id": "anotherActivity",
- "instances": 200,
- "canceled": 150,
- "finished": 0,
- "completeScope": 0,
- "openIncidents": 0,
- "resolvedIncidents": 0,
- "deletedIncidents": 0
}
]
Queries for historic process instances that fulfill the given parameters. The size of the result set can be retrieved by using the Get Process Instance Count method.
sortBy | string Enum: "instanceId" "definitionId" "definitionKey" "definitionName" "definitionVersion" "businessKey" "startTime" "endTime" "duration" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
processInstanceId | string Filter by process instance id. |
processInstanceIds | string Filter by process instance ids. Filter by a comma-separated list of |
processDefinitionId | string Filter by the process definition the instances run on. |
processDefinitionKey | string Filter by the key of the process definition the instances run on. |
processDefinitionKeyIn | string Filter by a list of process definition keys. A process instance must have one of the given process definition keys. Filter by a comma-separated list of |
processDefinitionName | string Filter by the name of the process definition the instances run on. |
processDefinitionNameLike | string Filter by process definition names that the parameter is a substring of. |
processDefinitionKeyNotIn | string Exclude instances that belong to a set of process definitions. Filter by a comma-separated list of |
processInstanceBusinessKey | string Filter by process instance business key. |
processInstanceBusinessKeyIn | string Filter by a list of business keys. A process instance must have one of the given business keys. Filter by a comma-separated list of |
processInstanceBusinessKeyLike | string Filter by process instance business key that the parameter is a substring of. |
rootProcessInstances | boolean Restrict the query to all process instances that are top level process instances. |
finished | boolean Only include finished process instances. This flag includes all process instances
that are completed or terminated. Value may only be |
unfinished | boolean Only include unfinished process instances. Value may only be |
withIncidents | boolean Only include process instances which have an incident. Value may only be |
withRootIncidents | boolean Only include process instances which have a root incident. Value may only be |
incidentIdIn | string Restrict to instances that have an incident with one of the given ids. Filter by a comma-separated list of |
incidentType | string Filter by the incident type. See the User Guide for a list of incident types. |
incidentStatus | string Enum: "open" "resolved" Only include process instances which have an incident in status either open or resolved. To get all process instances, use the query parameter withIncidents. |
incidentMessage | string Filter by the incident message. Exact match. |
incidentMessageLike | string Filter by the incident message that the parameter is a substring of. |
startedBefore | string <date-time> Restrict to instances that were started before the given date.
By default, the date must have the format |
startedAfter | string <date-time> Restrict to instances that were started after the given date.
By default, the date must have the format |
finishedBefore | string <date-time> Restrict to instances that were finished before the given date.
By default, the date must have the format |
finishedAfter | string <date-time> Restrict to instances that were finished after the given date.
By default, the date must have the format |
executedActivityAfter | string <date-time> Restrict to instances that executed an activity after the given date (inclusive).
By default, the date must have the format |
executedActivityBefore | string <date-time> Restrict to instances that executed an activity before the given date (inclusive).
By default, the date must have the format |
executedJobAfter | string <date-time> Restrict to instances that executed an job after the given date (inclusive).
By default, the date must have the format |
executedJobBefore | string <date-time> Restrict to instances that executed an job before the given date (inclusive).
By default, the date must have the format |
startedBy | string Only include process instances that were started by the given user. |
superProcessInstanceId | string Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance id. |
subProcessInstanceId | string Restrict query to one process instance that has a sub process instance with the given id. |
superCaseInstanceId | string Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
subCaseInstanceId | string Restrict query to one process instance that has a sub case instance with the given id. |
caseInstanceId | string Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
tenantIdIn | string Filter by a list of tenant ids. A process instance must have one of the given tenant ids. Filter by a comma-separated list of |
withoutTenantId | boolean Only include historic process instances which belong to no tenant. Value may only be |
activityIdIn | string Restrict to instances with an active activity with one of the given ids. In contrast to the |
executedActivityIdIn | string Restrict to instances that executed an activity with one of given ids. Filter by a comma-separated list of |
activeActivityIdIn | string Restrict to instances that have an active activity with one of given ids. Filter by a comma-separated list of |
active | boolean Restrict to instances that are active. |
suspended | boolean Restrict to instances that are suspended. |
completed | boolean Restrict to instances that are completed. |
externallyTerminated | boolean Restrict to instances that are externallyTerminated. |
internallyTerminated | boolean Restrict to instances that are internallyTerminated. |
variables | string Only include process instances that have/had variables with certain values.
Variable filtering expressions are comma-separated and are structured as follows:
A valid parameter value has the form Note: Values are always treated as String objects on server side. Valid operator values are: Key and value may not contain underscore or comma characters. |
variableNamesIgnoreCase | boolean Match all variable names provided in variables case-insensitively. If set to |
variableValuesIgnoreCase | boolean Match all variable values provided in variables case-insensitively. If set to |
Response for GET /history/process-instance?finishedAfter=2013-01-01T00:00:00.000%2b0200&finishedBefore=2013-04-01T23:59:59.000%2b0200&executedActivityAfter=2013-03-23T13:42:44.000%2b0200
[- {
- "id": "7c80cc8f-ef95-11e6-b6e6-34f39ab71d4e",
- "businessKey": null,
- "processDefinitionId": "invoice:1:7bf79f13-ef95-11e6-b6e6-34f39ab71d4e",
- "processDefinitionKey": "invoice",
- "processDefinitionName": "Invoice Receipt",
- "processDefinitionVersion": 1,
- "startTime": "2017-02-10T14:33:19.000+0200",
- "endTime": null,
- "removalTime": null,
- "durationInMillis": null,
- "startUserId": null,
- "startActivityId": "StartEvent_1",
- "deleteReason": null,
- "rootProcessInstanceId": "f8259e5d-ab9d-11e8-8449-e4a7a094a9d6",
- "superProcessInstanceId": null,
- "superCaseInstanceId": null,
- "caseInstanceId": null,
- "tenantId": null,
- "state": "ACTIVE",
- "restartedProcessInstanceId": "2bef365d-3406-11ef-bd73-0a0027000003"
}
]
Queries for historic process instances that fulfill the given parameters.
This method is slightly more powerful than the
Get Process Instance
because it allows filtering by multiple process variables of types String
, Number
or Boolean
.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
processInstanceId | string or null Filter by process instance id. |
processInstanceIds | Array of strings or null Filter by process instance ids. Must be a JSON array of |
processDefinitionId | string or null Filter by the process definition the instances run on. |
processDefinitionKey | string or null Filter by the key of the process definition the instances run on. |
processDefinitionKeyIn | Array of strings or null Filter by a list of process definition keys. A process instance must have one of the given process definition keys. Must be a JSON array of |
processDefinitionName | string or null Filter by the name of the process definition the instances run on. |
processDefinitionNameLike | string or null Filter by process definition names that the parameter is a substring of. |
processDefinitionKeyNotIn | Array of strings or null Exclude instances that belong to a set of process definitions. Must be a JSON array of |
processInstanceBusinessKey | string or null Filter by process instance business key. |
processInstanceBusinessKeyIn | Array of strings or null Filter by a list of business keys. A process instance must have one of the given business keys. Must be a JSON array of |
processInstanceBusinessKeyLike | string or null Filter by process instance business key that the parameter is a substring of. |
rootProcessInstances | boolean or null Restrict the query to all process instances that are top level process instances. |
finished | boolean or null Only include finished process instances. This flag includes all process instances
that are completed or terminated. Value may only be |
unfinished | boolean or null Only include unfinished process instances. Value may only be |
withIncidents | boolean or null Only include process instances which have an incident. Value may only be |
withRootIncidents | boolean or null Only include process instances which have a root incident. Value may only be |
incidentIdIn | Array of strings or null Restrict to instances that have an incident with one of the given ids. Must be a JSON array of |
incidentType | string or null Filter by the incident type. See the User Guide for a list of incident types. |
incidentStatus | string or null Enum: "open" "resolved" Only include process instances which have an incident in status either open or resolved. To get all process instances, use the query parameter withIncidents. |
incidentMessage | string or null Filter by the incident message. Exact match. |
incidentMessageLike | string or null Filter by the incident message that the parameter is a substring of. |
startedBefore | string or null <date-time> Restrict to instances that were started before the given date.
By default, the date must have the format |
startedAfter | string or null <date-time> Restrict to instances that were started after the given date.
By default, the date must have the format |
finishedBefore | string or null <date-time> Restrict to instances that were finished before the given date.
By default, the date must have the format |
finishedAfter | string or null <date-time> Restrict to instances that were finished after the given date.
By default, the date must have the format |
executedActivityAfter | string or null <date-time> Restrict to instances that executed an activity after the given date (inclusive).
By default, the date must have the format |
executedActivityBefore | string or null <date-time> Restrict to instances that executed an activity before the given date (inclusive).
By default, the date must have the format |
executedJobAfter | string or null <date-time> Restrict to instances that executed an job after the given date (inclusive).
By default, the date must have the format |
executedJobBefore | string or null <date-time> Restrict to instances that executed an job before the given date (inclusive).
By default, the date must have the format |
startedBy | string or null Only include process instances that were started by the given user. |
superProcessInstanceId | string or null Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance id. |
subProcessInstanceId | string or null Restrict query to one process instance that has a sub process instance with the given id. |
superCaseInstanceId | string or null Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
subCaseInstanceId | string or null Restrict query to one process instance that has a sub case instance with the given id. |
caseInstanceId | string or null Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
tenantIdIn | Array of strings or null Filter by a list of tenant ids. A process instance must have one of the given tenant ids. Must be a JSON array of |
withoutTenantId | boolean or null Only include historic process instances which belong to no tenant. Value may only be |
activityIdIn | Array of strings or null Restrict to instances with an active activity with one of the given ids. In contrast to the |
executedActivityIdIn | Array of strings or null Restrict to instances that executed an activity with one of given ids. Must be a JSON array of |
activeActivityIdIn | Array of strings or null Restrict to instances that have an active activity with one of given ids. Must be a JSON array of |
active | boolean or null Restrict to instances that are active. |
suspended | boolean or null Restrict to instances that are suspended. |
completed | boolean or null Restrict to instances that are completed. |
externallyTerminated | boolean or null Restrict to instances that are externallyTerminated. |
internallyTerminated | boolean or null Restrict to instances that are internallyTerminated. |
Array of objects or null (VariableQueryParameterDto) A JSON array to only include process instances that have/had variables with certain values.
The array consists of objects with the three properties Value may be Valid operator values are: | |
variableNamesIgnoreCase | boolean or null Match all variable names provided in variables case-insensitively. If set to |
variableValuesIgnoreCase | boolean or null Match all variable values provided in variables case-insensitively. If set to |
orQueries | Array of objects or null (HistoricProcessInstanceQueryDto) A JSON array of nested historic process instance queries with OR semantics. A process instance matches a nested query if it fulfills at least one of the query's predicates. With multiple nested queries, a process instance must fulfill at least one predicate of each query (Conjunctive Normal Form). All process instance query properties can be used except for: See the User Guide for more information about OR queries. |
Array of objects or null Apply sorting of the result |
{- "finishedAfter": "2013-01-01T00:00:00.000+0200",
- "finishedBefore": "2013-04-01T23:59:59.000+0200",
- "executedActivityAfter": "2013-03-23T13:42:44.000+0200",
- "variables": [
- {
- "name": "myVariable",
- "operator": "eq",
- "value": "camunda"
}, - {
- "name": "mySecondVariable",
- "operator": "neq",
- "value": 124
}
], - "sorting": [
- {
- "sortBy": "businessKey",
- "sortOrder": "asc"
}, - {
- "sortBy": "startTime",
- "sortOrder": "desc"
}
]
}
Response for POST /history/process-instance
[- {
- "id": "7c80cc8f-ef95-11e6-b6e6-34f39ab71d4e",
- "businessKey": null,
- "processDefinitionId": "invoice:1:7bf79f13-ef95-11e6-b6e6-34f39ab71d4e",
- "processDefinitionKey": "invoice",
- "processDefinitionName": "Invoice Receipt",
- "processDefinitionVersion": 1,
- "startTime": "2017-02-10T14:33:19.000+0200",
- "endTime": null,
- "removalTime": null,
- "durationInMillis": null,
- "startUserId": null,
- "startActivityId": "StartEvent_1",
- "deleteReason": null,
- "rootProcessInstanceId": "f8259e5d-ab9d-11e8-8449-e4a7a094a9d6",
- "superProcessInstanceId": null,
- "superCaseInstanceId": null,
- "caseInstanceId": null,
- "tenantId": null,
- "state": "ACTIVE",
- "restartedProcessInstanceId": "2bef365d-3406-11ef-bd73-0a0027000003"
}
]
Queries for the number of historic process instances that fulfill the given parameters. Takes the same parameters as the Get Process Instances method.
processInstanceId | string Filter by process instance id. |
processInstanceIds | string Filter by process instance ids. Filter by a comma-separated list of |
processDefinitionId | string Filter by the process definition the instances run on. |
processDefinitionKey | string Filter by the key of the process definition the instances run on. |
processDefinitionKeyIn | string Filter by a list of process definition keys. A process instance must have one of the given process definition keys. Filter by a comma-separated list of |
processDefinitionName | string Filter by the name of the process definition the instances run on. |
processDefinitionNameLike | string Filter by process definition names that the parameter is a substring of. |
processDefinitionKeyNotIn | string Exclude instances that belong to a set of process definitions. Filter by a comma-separated list of |
processInstanceBusinessKey | string Filter by process instance business key. |
processInstanceBusinessKeyIn | string Filter by a list of business keys. A process instance must have one of the given business keys. Filter by a comma-separated list of |
processInstanceBusinessKeyLike | string Filter by process instance business key that the parameter is a substring of. |
rootProcessInstances | boolean Restrict the query to all process instances that are top level process instances. |
finished | boolean Only include finished process instances. This flag includes all process instances
that are completed or terminated. Value may only be |
unfinished | boolean Only include unfinished process instances. Value may only be |
withIncidents | boolean Only include process instances which have an incident. Value may only be |
withRootIncidents | boolean Only include process instances which have a root incident. Value may only be |
incidentIdIn | string Restrict to instances that have an incident with one of the given ids. Filter by a comma-separated list of |
incidentType | string Filter by the incident type. See the User Guide for a list of incident types. |
incidentStatus | string Enum: "open" "resolved" Only include process instances which have an incident in status either open or resolved. To get all process instances, use the query parameter withIncidents. |
incidentMessage | string Filter by the incident message. Exact match. |
incidentMessageLike | string Filter by the incident message that the parameter is a substring of. |
startedBefore | string <date-time> Restrict to instances that were started before the given date.
By default, the date must have the format |
startedAfter | string <date-time> Restrict to instances that were started after the given date.
By default, the date must have the format |
finishedBefore | string <date-time> Restrict to instances that were finished before the given date.
By default, the date must have the format |
finishedAfter | string <date-time> Restrict to instances that were finished after the given date.
By default, the date must have the format |
executedActivityAfter | string <date-time> Restrict to instances that executed an activity after the given date (inclusive).
By default, the date must have the format |
executedActivityBefore | string <date-time> Restrict to instances that executed an activity before the given date (inclusive).
By default, the date must have the format |
executedJobAfter | string <date-time> Restrict to instances that executed an job after the given date (inclusive).
By default, the date must have the format |
executedJobBefore | string <date-time> Restrict to instances that executed an job before the given date (inclusive).
By default, the date must have the format |
startedBy | string Only include process instances that were started by the given user. |
superProcessInstanceId | string Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance id. |
subProcessInstanceId | string Restrict query to one process instance that has a sub process instance with the given id. |
superCaseInstanceId | string Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
subCaseInstanceId | string Restrict query to one process instance that has a sub case instance with the given id. |
caseInstanceId | string Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
tenantIdIn | string Filter by a list of tenant ids. A process instance must have one of the given tenant ids. Filter by a comma-separated list of |
withoutTenantId | boolean Only include historic process instances which belong to no tenant. Value may only be |
activityIdIn | string Restrict to instances with an active activity with one of the given ids. In contrast to the |
executedActivityIdIn | string Restrict to instances that executed an activity with one of given ids. Filter by a comma-separated list of |
activeActivityIdIn | string Restrict to instances that have an active activity with one of given ids. Filter by a comma-separated list of |
active | boolean Restrict to instances that are active. |
suspended | boolean Restrict to instances that are suspended. |
completed | boolean Restrict to instances that are completed. |
externallyTerminated | boolean Restrict to instances that are externallyTerminated. |
internallyTerminated | boolean Restrict to instances that are internallyTerminated. |
variables | string Only include process instances that have/had variables with certain values.
Variable filtering expressions are comma-separated and are structured as follows:
A valid parameter value has the form Note: Values are always treated as String objects on server side. Valid operator values are: Key and value may not contain underscore or comma characters. |
variableNamesIgnoreCase | boolean Match all variable names provided in variables case-insensitively. If set to |
variableValuesIgnoreCase | boolean Match all variable values provided in variables case-insensitively. If set to |
Response for GET /history/process-instance/count?variables=myVariable_eq_camunda
{- "count": 1
}
Queries for the number of historic process instances that fulfill the given parameters. This method takes the same message body as the Get Process Instances (POST) method and therefore it is slightly more powerful than the Get Process Instance Count method.
processInstanceId | string or null Filter by process instance id. |
processInstanceIds | Array of strings or null Filter by process instance ids. Must be a JSON array of |
processDefinitionId | string or null Filter by the process definition the instances run on. |
processDefinitionKey | string or null Filter by the key of the process definition the instances run on. |
processDefinitionKeyIn | Array of strings or null Filter by a list of process definition keys. A process instance must have one of the given process definition keys. Must be a JSON array of |
processDefinitionName | string or null Filter by the name of the process definition the instances run on. |
processDefinitionNameLike | string or null Filter by process definition names that the parameter is a substring of. |
processDefinitionKeyNotIn | Array of strings or null Exclude instances that belong to a set of process definitions. Must be a JSON array of |
processInstanceBusinessKey | string or null Filter by process instance business key. |
processInstanceBusinessKeyIn | Array of strings or null Filter by a list of business keys. A process instance must have one of the given business keys. Must be a JSON array of |
processInstanceBusinessKeyLike | string or null Filter by process instance business key that the parameter is a substring of. |
rootProcessInstances | boolean or null Restrict the query to all process instances that are top level process instances. |
finished | boolean or null Only include finished process instances. This flag includes all process instances
that are completed or terminated. Value may only be |
unfinished | boolean or null Only include unfinished process instances. Value may only be |
withIncidents | boolean or null Only include process instances which have an incident. Value may only be |
withRootIncidents | boolean or null Only include process instances which have a root incident. Value may only be |
incidentIdIn | Array of strings or null Restrict to instances that have an incident with one of the given ids. Must be a JSON array of |
incidentType | string or null Filter by the incident type. See the User Guide for a list of incident types. |
incidentStatus | string or null Enum: "open" "resolved" Only include process instances which have an incident in status either open or resolved. To get all process instances, use the query parameter withIncidents. |
incidentMessage | string or null Filter by the incident message. Exact match. |
incidentMessageLike | string or null Filter by the incident message that the parameter is a substring of. |
startedBefore | string or null <date-time> Restrict to instances that were started before the given date.
By default, the date must have the format |
startedAfter | string or null <date-time> Restrict to instances that were started after the given date.
By default, the date must have the format |
finishedBefore | string or null <date-time> Restrict to instances that were finished before the given date.
By default, the date must have the format |
finishedAfter | string or null <date-time> Restrict to instances that were finished after the given date.
By default, the date must have the format |
executedActivityAfter | string or null <date-time> Restrict to instances that executed an activity after the given date (inclusive).
By default, the date must have the format |
executedActivityBefore | string or null <date-time> Restrict to instances that executed an activity before the given date (inclusive).
By default, the date must have the format |
executedJobAfter | string or null <date-time> Restrict to instances that executed an job after the given date (inclusive).
By default, the date must have the format |
executedJobBefore | string or null <date-time> Restrict to instances that executed an job before the given date (inclusive).
By default, the date must have the format |
startedBy | string or null Only include process instances that were started by the given user. |
superProcessInstanceId | string or null Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance id. |
subProcessInstanceId | string or null Restrict query to one process instance that has a sub process instance with the given id. |
superCaseInstanceId | string or null Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
subCaseInstanceId | string or null Restrict query to one process instance that has a sub case instance with the given id. |
caseInstanceId | string or null Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
tenantIdIn | Array of strings or null Filter by a list of tenant ids. A process instance must have one of the given tenant ids. Must be a JSON array of |
withoutTenantId | boolean or null Only include historic process instances which belong to no tenant. Value may only be |
activityIdIn | Array of strings or null Restrict to instances with an active activity with one of the given ids. In contrast to the |
executedActivityIdIn | Array of strings or null Restrict to instances that executed an activity with one of given ids. Must be a JSON array of |
activeActivityIdIn | Array of strings or null Restrict to instances that have an active activity with one of given ids. Must be a JSON array of |
active | boolean or null Restrict to instances that are active. |
suspended | boolean or null Restrict to instances that are suspended. |
completed | boolean or null Restrict to instances that are completed. |
externallyTerminated | boolean or null Restrict to instances that are externallyTerminated. |
internallyTerminated | boolean or null Restrict to instances that are internallyTerminated. |
Array of objects or null (VariableQueryParameterDto) A JSON array to only include process instances that have/had variables with certain values.
The array consists of objects with the three properties Value may be Valid operator values are: | |
variableNamesIgnoreCase | boolean or null Match all variable names provided in variables case-insensitively. If set to |
variableValuesIgnoreCase | boolean or null Match all variable values provided in variables case-insensitively. If set to |
orQueries | Array of objects or null (HistoricProcessInstanceQueryDto) A JSON array of nested historic process instance queries with OR semantics. A process instance matches a nested query if it fulfills at least one of the query's predicates. With multiple nested queries, a process instance must fulfill at least one predicate of each query (Conjunctive Normal Form). All process instance query properties can be used except for: See the User Guide for more information about OR queries. |
Array of objects or null Apply sorting of the result |
{- "finishedAfter": "2013-01-01T00:00:00.000+0200",
- "finishedBefore": "2013-04-01T23:59:59.000+0200",
- "executedActivityAfter": "2013-03-23T13:42:44.000+0200",
- "variables": [
- {
- "name": "myVariable",
- "operator": "eq",
- "value": "camunda"
}, - {
- "name": "mySecondVariable",
- "operator": "neq",
- "value": 124
}
]
}
{- "count": 1
}
Delete multiple historic process instances asynchronously (batch).
At least historicProcessInstanceIds
or historicProcessInstanceQuery
has to be provided.
If both are provided then all instances matching query criterion and instances from the list will be deleted.
historicProcessInstanceIds | Array of strings or null A list historic process instance ids to delete. |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
deleteReason | string or null A string with delete reason. |
failIfNotExists | boolean or null If set to |
{- "deleteReason": "aReason",
- "historicProcessInstanceIds": [
- "aProcess",
- "secondProcess"
], - "historicProcessInstanceQuery": {
- "startedAfter": "2016-10-11T11:44:13.000+0200",
- "finishedBefore": "2016-10-13T11:44:17.000+0200"
}
}
Response for POST /history/process-instance/delete
{- "id": "120b568d-724a-11e9-98b7-be5e0f7575b7",
- "type": "process-set-removal-time",
- "totalJobs": 12,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "120b5690-724a-11e9-98b7-be5e0f7575b7",
- "monitorJobDefinitionId": "120b568f-724a-11e9-98b7-be5e0f7575b7",
- "batchJobDefinitionId": "120b568e-724a-11e9-98b7-be5e0f7575b7",
- "tenantId": "accounting",
- "suspended": false,
- "createUserId": null
}
Retrieves a report about the duration of completed process instances, grouped by a period. These reports include the maximum, minimum and average duration of all completed process instances which were started in a given period.
Note: This only includes historic data.
reportType required | string Mandatory. Specifies the type of the report to retrieve.
To retrieve a report about the duration of process instances, the value must be set to |
periodUnit required | string Enum: "month" "quarter" Mandatory. Specifies the granularity of the report. Valid values are |
processDefinitionIdIn | string Filter by process definition ids. Must be a comma-separated list of process definition ids. |
processDefinitionKeyIn | string Filter by process definition keys. Must be a comma-separated list of process definition keys. |
startedBefore | string <date-time> Restrict to instances that were started before the given date.
By default, the date must have the format |
startedAfter | string <date-time> Restrict to instances that were started after the given date.
By default, the date must have the format |
[- {
- "period": 1,
- "periodUnit": "QUARTER",
- "maximum": 500000,
- "minimum": 250000,
- "average": 375000
}, - {
- "period": 2,
- "periodUnit": "QUARTER",
- "maximum": 600000,
- "minimum": 300000,
- "average": 450000
}, - {
- "period": 3,
- "periodUnit": "QUARTER",
- "maximum": 1000000,
- "minimum": 500000,
- "average": 750000
}, - {
- "period": 4,
- "periodUnit": "QUARTER",
- "maximum": 200000,
- "minimum": 100000,
- "average": 150000
}
]
Sets the removal time to multiple historic process instances asynchronously (batch).
At least historicProcessInstanceIds
or historicProcessInstanceQuery
has to be provided.
If both are provided, all instances matching query criterion and instances from the list will be updated with a removal time.
historicProcessInstanceIds | Array of strings or null The id of the process instance. |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
hierarchical | boolean or null Sets the removal time to all historic process instances in the hierarchy.
Value may only be |
updateInChunks | boolean or null Handles removal time updates in chunks, taking into account the defined size in
|
updateChunkSize | integer or null <int32> Defines the size of the chunks in which removal time updates are processed.
The value must be a positive integer between |
absoluteRemovalTime | string or null <date-time> The date for which the instances shall be removed. Value may not be Note: Cannot be set in conjunction with |
clearedRemovalTime | boolean or null Sets the removal time to Note: Cannot be set in conjunction with |
calculatedRemovalTime | boolean or null The removal time is calculated based on the engine's configuration settings. Value may only be Note: Cannot be set in conjunction with |
{- "absoluteRemovalTime": "2019-05-05T11:56:24.725+0200",
- "hierarchical": true,
- "historicProcessInstanceQuery": {
- "unfinished": true
}, - "historicProcessInstanceIds": [
- "b4d2ad98-7240-11e9-98b7-be5e0f7575b7",
- "b4d2ad94-7240-11e9-98b7-be5e0f7575b7"
]
}
Response for POST /history/process-instance/set-removal-time
{- "id": "120b568d-724a-11e9-98b7-be5e0f7575b7",
- "type": "process-set-removal-time",
- "totalJobs": 12,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "120b5690-724a-11e9-98b7-be5e0f7575b7",
- "monitorJobDefinitionId": "120b568f-724a-11e9-98b7-be5e0f7575b7",
- "batchJobDefinitionId": "120b568e-724a-11e9-98b7-be5e0f7575b7",
- "tenantId": "accounting",
- "suspended": false,
- "createUserId": null
}
Deletes a process instance from the history by id.
id required | string The id of the historic process instance to be deleted. |
failIfNotExists | boolean If set to |
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a historic process instance by id, according to the HistoricProcessInstance
interface in the engine.
id required | string The id of the historic process instance to be retrieved. |
{- "id": "7c80cc8f-ef95-11e6-b6e6-34f39ab71d4e",
- "businessKey": null,
- "processDefinitionId": "invoice:1:7bf79f13-ef95-11e6-b6e6-34f39ab71d4e",
- "processDefinitionKey": "invoice",
- "processDefinitionName": "Invoice Receipt",
- "processDefinitionVersion": 1,
- "startTime": "2017-02-10T14:33:19.000+0200",
- "endTime": null,
- "removalTime": null,
- "durationInMillis": null,
- "startUserId": null,
- "startActivityId": "StartEvent_1",
- "deleteReason": null,
- "rootProcessInstanceId": "f8259e5d-ab9d-11e8-8449-e4a7a094a9d6",
- "superProcessInstanceId": null,
- "superCaseInstanceId": null,
- "caseInstanceId": null,
- "tenantId": null,
- "state": "ACTIVE",
- "restartedProcessInstanceId": "2bef365d-3406-11ef-bd73-0a0027000003"
}
Deletes all variables of a process instance from the history by id.
id required | string The id of the process instance for which all historic variables are to be deleted. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Queries for historic tasks that fulfill the given parameters. The size of the result set can be retrieved by using the Get Task Count method.
taskId | string Filter by task id. |
taskParentTaskId | string Filter by parent task id. |
processInstanceId | string Filter by process instance id. |
rootProcessInstanceId | string Filter by root process instance id. |
processInstanceBusinessKey | string Filter by process instance business key. |
processInstanceBusinessKeyIn | string Filter by process instances with one of the give business keys. The keys need to be in a comma-separated list. |
processInstanceBusinessKeyLike | string Filter by process instance business key that has the parameter value as a substring. |
executionId | string Filter by the id of the execution that executed the task. |
processDefinitionId | string Filter by process definition id. |
processDefinitionKey | string Restrict to tasks that belong to a process definition with the given key. |
processDefinitionName | string Restrict to tasks that belong to a process definition with the given name. |
caseInstanceId | string Filter by case instance id. |
caseExecutionId | string Filter by the id of the case execution that executed the task. |
caseDefinitionId | string Filter by case definition id. |
caseDefinitionKey | string Restrict to tasks that belong to a case definition with the given key. |
caseDefinitionName | string Restrict to tasks that belong to a case definition with the given name. |
activityInstanceIdIn | string Only include tasks which belong to one of the passed comma-separated activity instance ids. |
taskName | string Restrict to tasks that have the given name. |
taskNameLike | string Restrict to tasks that have a name with the given parameter value as substring. |
taskDescription | string Restrict to tasks that have the given description. |
taskDescriptionLike | string Restrict to tasks that have a description that has the parameter value as a substring. |
taskDefinitionKey | string Restrict to tasks that have the given key. |
taskDefinitionKeyIn | string Restrict to tasks that have one of the passed comma-separated task definition keys. |
taskDeleteReason | string Restrict to tasks that have the given delete reason. |
taskDeleteReasonLike | string Restrict to tasks that have a delete reason that has the parameter value as a substring. |
taskAssignee | string Restrict to tasks that the given user is assigned to. |
taskAssigneeLike | string Restrict to tasks that are assigned to users with the parameter value as a substring. |
taskOwner | string Restrict to tasks that the given user owns. |
taskOwnerLike | string Restrict to tasks that are owned by users with the parameter value as a substring. |
taskPriority | integer <int32> Restrict to tasks that have the given priority. |
assigned | boolean If set to |
unassigned | boolean If set to |
finished | boolean Only include finished tasks. Value may only be |
unfinished | boolean Only include unfinished tasks. Value may only be |
processFinished | boolean Only include tasks of finished processes. Value may only be |
processUnfinished | boolean Only include tasks of unfinished processes. Value may only be |
taskDueDate | string <date-time> Restrict to tasks that are due on the given date. By default,
the date must have the format |
taskDueDateBefore | string <date-time> Restrict to tasks that are due before the given date. By default,
the date must have the format |
taskDueDateAfter | string <date-time> Restrict to tasks that are due after the given date. By default,
the date must have the format |
withoutTaskDueDate | boolean Only include tasks which have no due date. Value may only be |
taskFollowUpDate | string <date-time> Restrict to tasks that have a followUp date on the given date. By default,
the date must have the format |
taskFollowUpDateBefore | string <date-time> Restrict to tasks that have a followUp date before the given date. By default,
the date must have the format |
taskFollowUpDateAfter | string <date-time> Restrict to tasks that have a followUp date after the given date. By default,
the date must have the format |
startedBefore | string <date-time> Restrict to tasks that were started before the given date. By default,
the date must have the format |
startedAfter | string <date-time> Restrict to tasks that were started after the given date. By default,
the date must have the format |
finishedBefore | string <date-time> Restrict to tasks that were finished before the given date. By default,
the date must have the format |
finishedAfter | string <date-time> Restrict to tasks that were finished after the given date. By default,
the date must have the format |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A task instance must have one of the given tenant ids. |
withoutTenantId | boolean Only include historic task instances that belong to no tenant. Value may only be
|
taskVariables | string Only include tasks that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are:
|
processVariables | string Only include tasks that belong to process instances that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are:
|
variableNamesIgnoreCase | boolean Match the variable name provided in |
variableValuesIgnoreCase | boolean Match the variable value provided in |
taskInvolvedUser | string Restrict to tasks with a historic identity link to the given user. |
taskInvolvedGroup | string Restrict to tasks with a historic identity link to the given group. |
taskHadCandidateUser | string Restrict to tasks with a historic identity link to the given candidate user. |
taskHadCandidateGroup | string Restrict to tasks with a historic identity link to the given candidate group. |
withCandidateGroups | boolean Only include tasks which have a candidate group. Value may only be |
withoutCandidateGroups | boolean Only include tasks which have no candidate group. Value may only be |
sortBy | string Enum: "taskId" "activityInstanceId" "processDefinitionId" "processInstanceId" "executionId" "duration" "endTime" "startTime" "taskName" "taskDescription" "assignee" "owner" "dueDate" "followUpDate" "deleteReason" "taskDefinitionKey" "priority" "caseDefinitionId" "caseInstanceId" "caseExecutionId" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /history/task?taskAssignee=anAssignee&priority=42
[- {
- "id": "anId",
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "executionId": "anExecution",
- "caseDefinitionId": "aCaseDefId",
- "caseInstanceId": "aCaseInstId",
- "caseExecutionId": "aCaseExecution",
- "activityInstanceId": "anActInstId",
- "name": "aName",
- "description": "aDescription",
- "deleteReason": "aDeleteReason",
- "owner": "anOwner",
- "assignee": "anAssignee",
- "startTime": "2013-01-23T13:42:42.000+0200",
- "endTime": "2013-01-23T13:45:42.000+0200",
- "duration": 2000,
- "taskDefinitionKey": "aTaskDefinitionKey",
- "priority": 42,
- "due": "2013-01-23T13:49:42.000+0200",
- "parentTaskId": "aParentId",
- "followUp:": "2013-01-23T13:44:42.000+0200",
- "tenantId": null,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "taskState": "aTaskState"
}
]
Queries for historic tasks that fulfill the given parameters. This method is slightly more powerful
than the Get Tasks (Historic) method because
it allows filtering by multiple process or task variables of types String
, Number
or Boolean
.
The size of the result set can be retrieved by using the
Get Task Count (POST)
method.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
taskId | string or null Filter by task id. |
taskParentTaskId | string or null Filter by parent task id. |
processInstanceId | string or null Filter by process instance id. |
rootProcessInstanceId | string or null Filter by root process instance id. |
processInstanceBusinessKey | string or null Filter by process instance business key. |
processInstanceBusinessKeyIn | Array of strings or null Filter by process instances with one of the give business keys. The keys need to be in a comma-separated list. |
processInstanceBusinessKeyLike | string or null Filter by process instance business key that has the parameter value as a substring. |
executionId | string or null Filter by the id of the execution that executed the task. |
processDefinitionId | string or null Filter by process definition id. |
processDefinitionKey | string or null Restrict to tasks that belong to a process definition with the given key. |
processDefinitionName | string or null Restrict to tasks that belong to a process definition with the given name. |
caseInstanceId | string or null Filter by case instance id. |
caseExecutionId | string or null Filter by the id of the case execution that executed the task. |
caseDefinitionId | string or null Filter by case definition id. |
caseDefinitionKey | string or null Restrict to tasks that belong to a case definition with the given key. |
caseDefinitionName | string or null Restrict to tasks that belong to a case definition with the given name. |
activityInstanceIdIn | Array of strings or null Only include tasks which belong to one of the passed activity instance ids. |
taskName | string or null Restrict to tasks that have the given name. |
taskNameLike | string or null Restrict to tasks that have a name with the given parameter value as substring. |
taskDescription | string or null Restrict to tasks that have the given description. |
taskDescriptionLike | string or null Restrict to tasks that have a description that has the parameter value as a substring. |
taskDefinitionKey | string or null Restrict to tasks that have the given key. |
taskDefinitionKeyIn | Array of strings or null Restrict to tasks that have one of the passed task definition keys. |
taskDeleteReason | string or null Restrict to tasks that have the given delete reason. |
taskDeleteReasonLike | string or null Restrict to tasks that have a delete reason that has the parameter value as a substring. |
taskAssignee | string or null Restrict to tasks that the given user is assigned to. |
taskAssigneeLike | string or null Restrict to tasks that are assigned to users with the parameter value as a substring. |
taskOwner | string or null Restrict to tasks that the given user owns. |
taskOwnerLike | string or null Restrict to tasks that are owned by users with the parameter value as a substring. |
taskPriority | integer or null <int32> Restrict to tasks that have the given priority. |
assigned | boolean or null If set to |
unassigned | boolean or null If set to |
finished | boolean or null Only include finished tasks. Value may only be |
unfinished | boolean or null Only include unfinished tasks. Value may only be |
processFinished | boolean or null Only include tasks of finished processes. Value may only be |
processUnfinished | boolean or null Only include tasks of unfinished processes. Value may only be |
taskDueDate | string or null <date-time> Restrict to tasks that are due on the given date. By default,
the date must have the format |
taskDueDateBefore | string or null <date-time> Restrict to tasks that are due before the given date. By default,
the date must have the format |
taskDueDateAfter | string or null <date-time> Restrict to tasks that are due after the given date. By default,
the date must have the format |
withoutTaskDueDate | boolean or null Only include tasks which have no due date. Value may only be |
taskFollowUpDate | string or null <date-time> Restrict to tasks that have a followUp date on the given date. By default,
the date must have the format |
taskFollowUpDateBefore | string or null <date-time> Restrict to tasks that have a followUp date before the given date. By default,
the date must have the format |
taskFollowUpDateAfter | string or null <date-time> Restrict to tasks that have a followUp date after the given date. By default,
the date must have the format |
startedBefore | string or null <date-time> Restrict to tasks that were started before the given date. By default,
the date must have the format |
startedAfter | string or null <date-time> Restrict to tasks that were started after the given date. By default,
the date must have the format |
finishedBefore | string or null <date-time> Restrict to tasks that were finished before the given date. By default,
the date must have the format |
finishedAfter | string or null <date-time> Restrict to tasks that were finished after the given date. By default,
the date must have the format |
tenantIdIn | Array of strings or null Filter by a list of tenant ids. A task instance must have one of the given tenant ids. |
withoutTenantId | boolean or null Only include historic task instances that belong to no tenant. Value may only be
|
Array of objects or null (VariableQueryParameterDto) Only include tasks that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are:
| |
Array of objects or null (VariableQueryParameterDto) Only include tasks that belong to process instances that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are:
| |
variableNamesIgnoreCase | boolean or null Match the variable name provided in |
variableValuesIgnoreCase | boolean or null Match the variable value provided in |
taskInvolvedUser | string or null Restrict to tasks with a historic identity link to the given user. |
taskInvolvedGroup | string or null Restrict to tasks with a historic identity link to the given group. |
taskHadCandidateUser | string or null Restrict to tasks with a historic identity link to the given candidate user. |
taskHadCandidateGroup | string or null Restrict to tasks with a historic identity link to the given candidate group. |
withCandidateGroups | boolean or null Only include tasks which have a candidate group. Value may only be |
withoutCandidateGroups | boolean or null Only include tasks which have no candidate group. Value may only be |
orQueries | Array of objects or null (HistoricTaskInstanceQueryDto) A JSON array of nested historic task instance queries with OR semantics. A task instance matches a nested query if it fulfills at least one of the query's predicates. With multiple nested queries, a task instance must fulfill at least one predicate of each query (Conjunctive Normal Form). All task instance query properties can be used except for: See the User Guide for more information about OR queries. |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Sorting has no effect for |
{- "taskVariables": [
- {
- "name": "varName",
- "value": "varValue",
- "operator": "eq"
}, - {
- "name": "anotherVarName",
- "value": 30,
- "operator": "neq"
}
], - "priority": 10,
- "sorting": [
- {
- "sortBy": "priority",
- "sortOrder": "asc"
}, - {
- "sortBy": "duration",
- "sortOrder": "desc"
}
]
}
POST /history/task
[- {
- "id": "anId",
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "executionId": "anExecution",
- "caseDefinitionId": "aCaseDefId",
- "caseInstanceId": "aCaseInstId",
- "caseExecutionId": "aCaseExecution",
- "activityInstanceId": "anActInstId",
- "name": "aName",
- "description": "aDescription",
- "deleteReason": "aDeleteReason",
- "owner": "anOwner",
- "assignee": "anAssignee",
- "startTime": "2013-01-23T13:42:42.000+0200",
- "endTime": "2013-01-23T13:45:42.000+0200",
- "duration": 2000,
- "taskDefinitionKey": "aTaskDefinitionKey",
- "priority": 10,
- "due": "2013-01-23T13:49:42.000+0200",
- "parentTaskId": "aParentId",
- "followUp:": "2013-01-23T13:44:42.000+0200",
- "tenantId": null,
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "taskState": "aTaskState"
}
]
Queries for the number of historic tasks that fulfill the given parameters. Takes the same parameters as the Get Tasks (Historic) method.
taskId | string Filter by task id. |
taskParentTaskId | string Filter by parent task id. |
processInstanceId | string Filter by process instance id. |
rootProcessInstanceId | string Filter by root process instance id. |
processInstanceBusinessKey | string Filter by process instance business key. |
processInstanceBusinessKeyIn | string Filter by process instances with one of the give business keys. The keys need to be in a comma-separated list. |
processInstanceBusinessKeyLike | string Filter by process instance business key that has the parameter value as a substring. |
executionId | string Filter by the id of the execution that executed the task. |
processDefinitionId | string Filter by process definition id. |
processDefinitionKey | string Restrict to tasks that belong to a process definition with the given key. |
processDefinitionName | string Restrict to tasks that belong to a process definition with the given name. |
caseInstanceId | string Filter by case instance id. |
caseExecutionId | string Filter by the id of the case execution that executed the task. |
caseDefinitionId | string Filter by case definition id. |
caseDefinitionKey | string Restrict to tasks that belong to a case definition with the given key. |
caseDefinitionName | string Restrict to tasks that belong to a case definition with the given name. |
activityInstanceIdIn | string Only include tasks which belong to one of the passed comma-separated activity instance ids. |
taskName | string Restrict to tasks that have the given name. |
taskNameLike | string Restrict to tasks that have a name with the given parameter value as substring. |
taskDescription | string Restrict to tasks that have the given description. |
taskDescriptionLike | string Restrict to tasks that have a description that has the parameter value as a substring. |
taskDefinitionKey | string Restrict to tasks that have the given key. |
taskDefinitionKeyIn | string Restrict to tasks that have one of the passed comma-separated task definition keys. |
taskDeleteReason | string Restrict to tasks that have the given delete reason. |
taskDeleteReasonLike | string Restrict to tasks that have a delete reason that has the parameter value as a substring. |
taskAssignee | string Restrict to tasks that the given user is assigned to. |
taskAssigneeLike | string Restrict to tasks that are assigned to users with the parameter value as a substring. |
taskOwner | string Restrict to tasks that the given user owns. |
taskOwnerLike | string Restrict to tasks that are owned by users with the parameter value as a substring. |
taskPriority | integer <int32> Restrict to tasks that have the given priority. |
assigned | boolean If set to |
unassigned | boolean If set to |
finished | boolean Only include finished tasks. Value may only be |
unfinished | boolean Only include unfinished tasks. Value may only be |
processFinished | boolean Only include tasks of finished processes. Value may only be |
processUnfinished | boolean Only include tasks of unfinished processes. Value may only be |
taskDueDate | string <date-time> Restrict to tasks that are due on the given date. By default,
the date must have the format |
taskDueDateBefore | string <date-time> Restrict to tasks that are due before the given date. By default,
the date must have the format |
taskDueDateAfter | string <date-time> Restrict to tasks that are due after the given date. By default,
the date must have the format |
withoutTaskDueDate | boolean Only include tasks which have no due date. Value may only be |
taskFollowUpDate | string <date-time> Restrict to tasks that have a followUp date on the given date. By default,
the date must have the format |
taskFollowUpDateBefore | string <date-time> Restrict to tasks that have a followUp date before the given date. By default,
the date must have the format |
taskFollowUpDateAfter | string <date-time> Restrict to tasks that have a followUp date after the given date. By default,
the date must have the format |
startedBefore | string <date-time> Restrict to tasks that were started before the given date. By default,
the date must have the format |
startedAfter | string <date-time> Restrict to tasks that were started after the given date. By default,
the date must have the format |
finishedBefore | string <date-time> Restrict to tasks that were finished before the given date. By default,
the date must have the format |
finishedAfter | string <date-time> Restrict to tasks that were finished after the given date. By default,
the date must have the format |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A task instance must have one of the given tenant ids. |
withoutTenantId | boolean Only include historic task instances that belong to no tenant. Value may only be
|
taskVariables | string Only include tasks that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are:
|
processVariables | string Only include tasks that belong to process instances that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are:
|
variableNamesIgnoreCase | boolean Match the variable name provided in |
variableValuesIgnoreCase | boolean Match the variable value provided in |
taskInvolvedUser | string Restrict to tasks with a historic identity link to the given user. |
taskInvolvedGroup | string Restrict to tasks with a historic identity link to the given group. |
taskHadCandidateUser | string Restrict to tasks with a historic identity link to the given candidate user. |
taskHadCandidateGroup | string Restrict to tasks with a historic identity link to the given candidate group. |
withCandidateGroups | boolean Only include tasks which have a candidate group. Value may only be |
withoutCandidateGroups | boolean Only include tasks which have no candidate group. Value may only be |
GET /history/task/count?taskAssginee=anAssignee&taskPriority=50
{- "count": 1
}
Queries for the number of historic tasks that fulfill the given parameters. Takes the same parameters as the Get Tasks (Historic) method. Corresponds to the size of the result set of the Get Tasks (Historic) (POST) method and takes the same parameters.
taskId | string or null Filter by task id. |
taskParentTaskId | string or null Filter by parent task id. |
processInstanceId | string or null Filter by process instance id. |
rootProcessInstanceId | string or null Filter by root process instance id. |
processInstanceBusinessKey | string or null Filter by process instance business key. |
processInstanceBusinessKeyIn | Array of strings or null Filter by process instances with one of the give business keys. The keys need to be in a comma-separated list. |
processInstanceBusinessKeyLike | string or null Filter by process instance business key that has the parameter value as a substring. |
executionId | string or null Filter by the id of the execution that executed the task. |
processDefinitionId | string or null Filter by process definition id. |
processDefinitionKey | string or null Restrict to tasks that belong to a process definition with the given key. |
processDefinitionName | string or null Restrict to tasks that belong to a process definition with the given name. |
caseInstanceId | string or null Filter by case instance id. |
caseExecutionId | string or null Filter by the id of the case execution that executed the task. |
caseDefinitionId | string or null Filter by case definition id. |
caseDefinitionKey | string or null Restrict to tasks that belong to a case definition with the given key. |
caseDefinitionName | string or null Restrict to tasks that belong to a case definition with the given name. |
activityInstanceIdIn | Array of strings or null Only include tasks which belong to one of the passed activity instance ids. |
taskName | string or null Restrict to tasks that have the given name. |
taskNameLike | string or null Restrict to tasks that have a name with the given parameter value as substring. |
taskDescription | string or null Restrict to tasks that have the given description. |
taskDescriptionLike | string or null Restrict to tasks that have a description that has the parameter value as a substring. |
taskDefinitionKey | string or null Restrict to tasks that have the given key. |
taskDefinitionKeyIn | Array of strings or null Restrict to tasks that have one of the passed task definition keys. |
taskDeleteReason | string or null Restrict to tasks that have the given delete reason. |
taskDeleteReasonLike | string or null Restrict to tasks that have a delete reason that has the parameter value as a substring. |
taskAssignee | string or null Restrict to tasks that the given user is assigned to. |
taskAssigneeLike | string or null Restrict to tasks that are assigned to users with the parameter value as a substring. |
taskOwner | string or null Restrict to tasks that the given user owns. |
taskOwnerLike | string or null Restrict to tasks that are owned by users with the parameter value as a substring. |
taskPriority | integer or null <int32> Restrict to tasks that have the given priority. |
assigned | boolean or null If set to |
unassigned | boolean or null If set to |
finished | boolean or null Only include finished tasks. Value may only be |
unfinished | boolean or null Only include unfinished tasks. Value may only be |
processFinished | boolean or null Only include tasks of finished processes. Value may only be |
processUnfinished | boolean or null Only include tasks of unfinished processes. Value may only be |
taskDueDate | string or null <date-time> Restrict to tasks that are due on the given date. By default,
the date must have the format |
taskDueDateBefore | string or null <date-time> Restrict to tasks that are due before the given date. By default,
the date must have the format |
taskDueDateAfter | string or null <date-time> Restrict to tasks that are due after the given date. By default,
the date must have the format |
withoutTaskDueDate | boolean or null Only include tasks which have no due date. Value may only be |
taskFollowUpDate | string or null <date-time> Restrict to tasks that have a followUp date on the given date. By default,
the date must have the format |
taskFollowUpDateBefore | string or null <date-time> Restrict to tasks that have a followUp date before the given date. By default,
the date must have the format |
taskFollowUpDateAfter | string or null <date-time> Restrict to tasks that have a followUp date after the given date. By default,
the date must have the format |
startedBefore | string or null <date-time> Restrict to tasks that were started before the given date. By default,
the date must have the format |
startedAfter | string or null <date-time> Restrict to tasks that were started after the given date. By default,
the date must have the format |
finishedBefore | string or null <date-time> Restrict to tasks that were finished before the given date. By default,
the date must have the format |
finishedAfter | string or null <date-time> Restrict to tasks that were finished after the given date. By default,
the date must have the format |
tenantIdIn | Array of strings or null Filter by a list of tenant ids. A task instance must have one of the given tenant ids. |
withoutTenantId | boolean or null Only include historic task instances that belong to no tenant. Value may only be
|
Array of objects or null (VariableQueryParameterDto) Only include tasks that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are:
| |
Array of objects or null (VariableQueryParameterDto) Only include tasks that belong to process instances that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Valid operator values are:
| |
variableNamesIgnoreCase | boolean or null Match the variable name provided in |
variableValuesIgnoreCase | boolean or null Match the variable value provided in |
taskInvolvedUser | string or null Restrict to tasks with a historic identity link to the given user. |
taskInvolvedGroup | string or null Restrict to tasks with a historic identity link to the given group. |
taskHadCandidateUser | string or null Restrict to tasks with a historic identity link to the given candidate user. |
taskHadCandidateGroup | string or null Restrict to tasks with a historic identity link to the given candidate group. |
withCandidateGroups | boolean or null Only include tasks which have a candidate group. Value may only be |
withoutCandidateGroups | boolean or null Only include tasks which have no candidate group. Value may only be |
orQueries | Array of objects or null (HistoricTaskInstanceQueryDto) A JSON array of nested historic task instance queries with OR semantics. A task instance matches a nested query if it fulfills at least one of the query's predicates. With multiple nested queries, a task instance must fulfill at least one predicate of each query (Conjunctive Normal Form). All task instance query properties can be used except for: See the User Guide for more information about OR queries. |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Sorting has no effect for |
{- "taskVariables": [
- {
- "name": "varName",
- "value": "varValue",
- "operator": "eq"
}, - {
- "name": "anotherVarName",
- "value": 30,
- "operator": "neq"
}
], - "priority": 10
}
POST /history/task/count
{- "count": 1
}
Retrieves a report of completed tasks. When the report type is set to count
, the
report contains a list of completed task counts where an entry contains the task name, the
definition key of the task, the process definition id, the process definition key, the process
definition name and the count of how many tasks were completed for the specified key in a given
period. When the report type is set to duration
, the report contains a minimum, maximum and
average duration value of all completed task instances in a given period.
reportType | string Enum: "duration" "count" Mandatory. Specifies the kind of the report to execute. To retrieve a report
about the duration of process instances the value must be set to |
periodUnit | string Enum: "MONTH" "QUARTER" When the report type is set to |
completedBefore | string <date-time> Restrict to tasks that were completed before the given date. By default,
the date must have the format |
completedAfter | string <date-time> Restrict to tasks that were completed after the given date. By default,
the date must have the format |
groupBy | string When the report type is set to |
GET /history/task/report?reportType=count&groupBy=processDefinition
[- {
- "taskName": null,
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aProcessDefinitionKey",
- "processDefinitionName": "A Process Definition Name",
- "count": 42
}, - {
- "taskName": null,
- "processDefinitionId": "anotherProcessDefinitionId",
- "processDefinitionKey": "anotherProcessDefinitionKey",
- "processDefinitionName": "Another Process Definition Name",
- "count": 9000
}
]
Queries for user operation log entries that fulfill the given parameters. The size of the result set can be retrieved by using the Get User Operation Log Count method.
Note that the properties of operation log entries are interpreted as
restrictions on the entities they apply to. That means, if a single
process instance is updated, the field processInstanceId
is
populated. If a single operation updates all process instances of the
same process definition, the field processInstanceId
is null
(a
null
restriction is viewed as a wildcard, i.e., matches a process
instance with any id) and the field processDefinitionId
is
populated. This way, which entities were changed by a user operation
can easily be reconstructed.
deploymentId | string Filter by deployment id. |
processDefinitionId | string Filter by process definition id. |
processDefinitionKey | string Filter by process definition key. |
processInstanceId | string Filter by process instance id. |
executionId | string Filter by execution id. |
caseDefinitionId | string Filter by case definition id. |
caseInstanceId | string Filter by case instance id. |
caseExecutionId | string Filter by case execution id. |
taskId | string Only include operations on this task. |
externalTaskId | string Only include operations on this external task. |
batchId | string Only include operations on this batch. |
jobId | string Filter by job id. |
jobDefinitionId | string Filter by job definition id. |
userId | string Only include operations of this user. |
operationId | string Filter by the id of the operation. This allows fetching of multiple entries which are part of a composite operation. |
operationType | string Filter by the type of the operation like |
entityType | string Filter by the type of the entity that was affected by this operation, possible values are
|
entityTypeIn | string Filter by a comma-separated list of types of the entities that was affected by this operation,
possible values are |
category | string Filter by the category that this operation is associated with, possible values are
|
categoryIn | string Filter by a comma-separated list of categories that this operation is associated with, possible values are
|
property | string Only include operations that changed this property, e.g., |
afterTimestamp | string <date-time> Restrict to entries that were created after the given timestamp. By default, the
timestamp must have the format |
beforeTimestamp | string <date-time> Restrict to entries that were created before the given timestamp. By default, the
timestamp must have the format |
sortBy | string Value: "timestamp" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /history/user-operation?operationType=Claim&userId=demo&sortBy=timestamp&sortOrder=asc
[- {
- "id": "anUserOperationLogEntryId",
- "deploymentId": "aDeploymentId",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": null,
- "processInstanceId": "aProcessInstanceId",
- "executionId": "anExecutionId",
- "taskId": "aTaskId",
- "jobId": "aJobId",
- "jobDefinitionId": "aJobDefinitionId",
- "userId": "demo",
- "timestamp": "2014-02-25T14:58:37.000+0200",
- "operationId": "anOperationId",
- "operationType": "Claim",
- "entityType": "Task",
- "property": "assignee",
- "orgValue": null,
- "newValue": "demo",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "category": "TaskWorker",
- "annotation": "anAnnotation"
}
]
Queries for the number of user operation log entries that fulfill the given parameters. Takes the same parameters as the Get User Operation Log (Historic) method.
deploymentId | string Filter by deployment id. |
processDefinitionId | string Filter by process definition id. |
processDefinitionKey | string Filter by process definition key. |
processInstanceId | string Filter by process instance id. |
executionId | string Filter by execution id. |
caseDefinitionId | string Filter by case definition id. |
caseInstanceId | string Filter by case instance id. |
caseExecutionId | string Filter by case execution id. |
taskId | string Only include operations on this task. |
externalTaskId | string Only include operations on this external task. |
batchId | string Only include operations on this batch. |
jobId | string Filter by job id. |
jobDefinitionId | string Filter by job definition id. |
userId | string Only include operations of this user. |
operationId | string Filter by the id of the operation. This allows fetching of multiple entries which are part of a composite operation. |
operationType | string Filter by the type of the operation like |
entityType | string Filter by the type of the entity that was affected by this operation, possible values are
|
entityTypeIn | string Filter by a comma-separated list of types of the entities that was affected by this operation,
possible values are |
category | string Filter by the category that this operation is associated with, possible values are
|
categoryIn | string Filter by a comma-separated list of categories that this operation is associated with, possible values are
|
property | string Only include operations that changed this property, e.g., |
afterTimestamp | string <date-time> Restrict to entries that were created after the given timestamp. By default, the
timestamp must have the format |
beforeTimestamp | string <date-time> Restrict to entries that were created before the given timestamp. By default, the
timestamp must have the format |
GET /history/user-operation?operationType=Claim&userId=demo
{- "count": 1
}
Clear the annotation which was previously set for auditing reasons.
operationId required | string The operation id of the operation log to be updated. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Set an annotation for auditing reasons.
operationId required | string The operation id of the operation log to be updated. |
annotation | string or null The annotation value to put. |
{- "annotation": "Instances restarted due to wrong turn"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Queries for historic variable instances that fulfill the given parameters. The size of the result set can be retrieved by using the Get Variable Instance Count method.
variableName | string Filter by variable name. |
variableNameLike | string Restrict to variables with a name like the parameter. |
variableValue | object Filter by variable value. Is treated as a |
variableNamesIgnoreCase | boolean Match the variable name provided in |
variableValuesIgnoreCase | boolean Match the variable value provided in |
variableTypeIn | string Only include historic variable instances which belong to one of the passed and comma- separated variable types. A list of all supported variable types can be found here. Note: All non-primitive variables are associated with the type 'serializable'. |
includeDeleted | boolean Include variables that has already been deleted during the execution. |
processInstanceId | string Filter by the process instance the variable belongs to. |
processInstanceIdIn | string Only include historic variable instances which belong to one of the passed and comma-separated process instance ids. |
processDefinitionId | string Filter by the process definition the variable belongs to. |
processDefinitionKey | string Filter by a key of the process definition the variable belongs to. |
executionIdIn | string Only include historic variable instances which belong to one of the passed and and comma-separated execution ids. |
caseInstanceId | string Filter by the case instance the variable belongs to. |
caseExecutionIdIn | string Only include historic variable instances which belong to one of the passed and and comma-separated case execution ids. |
caseActivityIdIn | string Only include historic variable instances which belong to one of the passed and and comma-separated case activity ids. |
taskIdIn | string Only include historic variable instances which belong to one of the passed and and comma-separated task ids. |
activityInstanceIdIn | string Only include historic variable instances which belong to one of the passed and and comma-separated activity instance ids. |
tenantIdIn | string Only include historic variable instances which belong to one of the passed and comma- separated tenant ids. |
withoutTenantId | boolean Only include historic variable instances that belong to no tenant. Value may only be
|
variableNameIn | string Only include historic variable instances which belong to one of the passed and comma-separated variable names. |
sortBy | string Enum: "instanceId" "variableName" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
deserializeValues | boolean Determines whether serializable variable values (typically variables that
store custom Java objects) should be deserialized on server side (default
If set to If set to Note: While |
GET /history/variable-instance?variableName=my_variable
[- {
- "id": "someId",
- "name": "my_variable",
- "type": "String",
- "value": "my_value",
- "valueInfo": { },
- "processDefinitionKey": "aVariableInstanceProcDefKey",
- "processDefinitionId": "aVariableInstanceProcDefId",
- "processInstanceId": "aVariableInstanceProcInstId",
- "executionId": "aVariableInstanceExecutionId",
- "activityInstanceId": "aVariableInstanceActivityInstId",
- "caseDefinitionKey": null,
- "caseDefinitionId": null,
- "caseInstanceId": null,
- "caseExecutionId": null,
- "taskId": null,
- "tenantId": null,
- "errorMessage": null,
- "state": "CREATED",
- "createTime": "2017-02-10T14:33:19.000+0200",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
]
Queries for historic variable instances that fulfill the given parameters.
This method is slightly more powerful than the
Get Variable Instances
method because it allows filtering by variable values of the different
types String
, Number
or Boolean
.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
deserializeValues | boolean Determines whether serializable variable values (typically variables that
store custom Java objects) should be deserialized on server side (default
If set to If set to Note: While |
variableName | string or null Filter by variable name. |
variableNameLike | string or null Restrict to variables with a name like the parameter. |
variableValue | object Filter by variable value. May be |
variableNamesIgnoreCase | boolean or null Match the variable name provided in |
variableValuesIgnoreCase | boolean or null Match the variable value provided in |
variableTypeIn | Array of strings or null Only include historic variable instances which belong to one of the passed and comma- separated variable types. A list of all supported variable types can be found here. Note: All non-primitive variables are associated with the type 'serializable'. |
includeDeleted | boolean or null Include variables that has already been deleted during the execution. |
processInstanceId | string or null Filter by the process instance the variable belongs to. |
processInstanceIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed process instance ids. |
processDefinitionId | string or null Filter by the process definition the variable belongs to. |
processDefinitionKey | string or null Filter by a key of the process definition the variable belongs to. |
executionIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and execution ids. |
caseInstanceId | string or null Filter by the case instance the variable belongs to. |
caseExecutionIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and case execution ids. |
caseActivityIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and case activity ids. |
taskIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and task ids. |
activityInstanceIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and activity instance ids. |
tenantIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and comma- separated tenant ids. |
withoutTenantId | boolean or null Only include historic variable instances that belong to no tenant. Value may only be
|
variableNameIn | Array of strings or null Only include historic variable instances which belong to one of the passed variable names. |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Sorting has no effect for |
{- "variableName": "someVariable",
- "variableValue": 42,
- "sorting": [
- {
- "sortBy": "variableName",
- "sortOrder": "asc"
}, - {
- "sortBy": "instanceId",
- "sortOrder": "desc"
}
]
}
POST /history/variable-instance
[- {
- "id": "someId",
- "name": "someVariable",
- "type": "Integer",
- "variableType": "integer",
- "value": 5,
- "valueInfo": { },
- "processDefinitionKey": "aProcessDefinitionKey",
- "processDefinitionId": "aProcessDefinitionId",
- "processInstanceId": "aProcInstId",
- "executionId": "aExecutionId",
- "activityInstanceId": "aActivityInstId",
- "caseDefinitionKey": null,
- "caseDefinitionId": null,
- "caseInstanceId": null,
- "caseExecutionId": null,
- "taskId": null,
- "tenantId": null,
- "errorMessage": null,
- "state": "CREATED",
- "createTime": "2017-02-10T14:33:19.000+0200",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
]
Queries for the number of historic variable instances that fulfill the given parameters. Takes the same parameters as the Get Variable Instances method.
variableName | string Filter by variable name. |
variableNameLike | string Restrict to variables with a name like the parameter. |
variableValue | object Filter by variable value. Is treated as a |
variableNamesIgnoreCase | boolean Match the variable name provided in |
variableValuesIgnoreCase | boolean Match the variable value provided in |
variableTypeIn | string Only include historic variable instances which belong to one of the passed and comma- separated variable types. A list of all supported variable types can be found here. Note: All non-primitive variables are associated with the type 'serializable'. |
includeDeleted | boolean Include variables that has already been deleted during the execution. |
processInstanceId | string Filter by the process instance the variable belongs to. |
processInstanceIdIn | string Only include historic variable instances which belong to one of the passed and comma-separated process instance ids. |
processDefinitionId | string Filter by the process definition the variable belongs to. |
processDefinitionKey | string Filter by a key of the process definition the variable belongs to. |
executionIdIn | string Only include historic variable instances which belong to one of the passed and and comma-separated execution ids. |
caseInstanceId | string Filter by the case instance the variable belongs to. |
caseExecutionIdIn | string Only include historic variable instances which belong to one of the passed and and comma-separated case execution ids. |
caseActivityIdIn | string Only include historic variable instances which belong to one of the passed and and comma-separated case activity ids. |
taskIdIn | string Only include historic variable instances which belong to one of the passed and and comma-separated task ids. |
activityInstanceIdIn | string Only include historic variable instances which belong to one of the passed and and comma-separated activity instance ids. |
tenantIdIn | string Only include historic variable instances which belong to one of the passed and comma- separated tenant ids. |
withoutTenantId | boolean Only include historic variable instances that belong to no tenant. Value may only be
|
variableNameIn | string Only include historic variable instances which belong to one of the passed and comma-separated variable names. |
GET /history/variable-instance/count?variableName=my_variable
{- "count": 1
}
Queries for historic variable instances that fulfill the given parameters. This method takes the same message body as the Get Variable Instances (POST) method and therefore it is more powerful regarding variable values than the Get Variable Instance Count method.
variableName | string or null Filter by variable name. |
variableNameLike | string or null Restrict to variables with a name like the parameter. |
variableValue | object Filter by variable value. May be |
variableNamesIgnoreCase | boolean or null Match the variable name provided in |
variableValuesIgnoreCase | boolean or null Match the variable value provided in |
variableTypeIn | Array of strings or null Only include historic variable instances which belong to one of the passed and comma- separated variable types. A list of all supported variable types can be found here. Note: All non-primitive variables are associated with the type 'serializable'. |
includeDeleted | boolean or null Include variables that has already been deleted during the execution. |
processInstanceId | string or null Filter by the process instance the variable belongs to. |
processInstanceIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed process instance ids. |
processDefinitionId | string or null Filter by the process definition the variable belongs to. |
processDefinitionKey | string or null Filter by a key of the process definition the variable belongs to. |
executionIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and execution ids. |
caseInstanceId | string or null Filter by the case instance the variable belongs to. |
caseExecutionIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and case execution ids. |
caseActivityIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and case activity ids. |
taskIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and task ids. |
activityInstanceIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and activity instance ids. |
tenantIdIn | Array of strings or null Only include historic variable instances which belong to one of the passed and comma- separated tenant ids. |
withoutTenantId | boolean or null Only include historic variable instances that belong to no tenant. Value may only be
|
variableNameIn | Array of strings or null Only include historic variable instances which belong to one of the passed variable names. |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Sorting has no effect for |
{- "variableName": "someVariable",
- "variableValue": 42
}
POST /history/variable-instance/count
{- "count": 1
}
Retrieves a historic variable by id.
id required | string The id of the variable instance. |
deserializeValues | boolean Determines whether serializable variable values (typically variables that
store custom Java objects) should be deserialized on server side (default
If set to If set to Note: While |
GET /history/variable-instance/someId
{- "id": "someId",
- "name": "amount",
- "type": "Integer",
- "value": 5,
- "valueInfo": { },
- "processDefinitionKey": "aProcessDefinitionKey",
- "processDefinitionId": "aProcessDefinitionId",
- "processInstanceId": "aProcessInstanceId",
- "executionId": "aExecutionId",
- "activityInstanceId": "Task_1:b68b71ca-e310-11e2-beb0-f0def1557726",
- "caseDefinitionKey": null,
- "caseDefinitionId": null,
- "caseInstanceId": null,
- "caseExecutionId": null,
- "taskId": null,
- "tenantId": null,
- "errorMessage": null,
- "state": "CREATED",
- "createTime": "2017-02-10T14:33:19.000+0200",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
Retrieves the content of a historic variable by id. Applicable for variables that are serialized as binary data.
id required | string The id of the variable instance. |
For binary variables or files without any MIME type information, a byte stream is returned.
Schedules asynchronous history cleanup (See History cleanup).
Note: This endpoint will return at most a single history cleanup job.
Since version 7.9.0
it is possible to configure multiple
parallel history cleanup jobs. Use
GET /history/cleanup/jobs
to find all the available history cleanup jobs.
immediatelyDue | boolean When true the job will be scheduled for nearest future. When |
POST /history/cleanup?immediatelyDue=false
{- "id": "074bd92a-1a95-11e7-8ceb-34f39ab71d4e",
- "jobDefinitionId": null,
- "processInstanceId": null,
- "processDefinitionId": null,
- "processDefinitionKey": null,
- "executionId": null,
- "exceptionMessage": null,
- "retries": 3,
- "dueDate": "2017-04-06T13:57:45.000+0200",
- "suspended": false,
- "priority": 0,
- "tenantId": null,
- "createTime": "2017-04-01T09:45:15.039+0100"
}
Retrieves history cleanup batch window configuration (See History cleanup).
GET /history/cleanup/configuration
{- "batchWindowStartTime": "2017-09-11T23:59:00.000+0200",
- "batchWindowEndTime": "2017-09-12T02:00:00.000+0200",
- "enabled": "true"
}
Deprecated! Use GET /history/cleanup/jobs
instead.
Finds history cleanup job (See History cleanup).
GET /history/cleanup/job
{- "id": "074bd92a-1a95-11e7-8ceb-34f39ab71d4e",
- "jobDefinitionId": null,
- "processInstanceId": null,
- "processDefinitionId": null,
- "processDefinitionKey": null,
- "executionId": null,
- "exceptionMessage": null,
- "retries": 3,
- "dueDate": "2017-04-06T13:57:45.000+0200",
- "suspended": false,
- "priority": 0,
- "tenantId": null,
- "createTime": "2017-05-05T17:00:00+0200"
}
Finds history cleanup jobs (See History cleanup).
GET /history/cleanup/jobs
[- {
- "id": "aJobId",
- "jobDefinitionId": null,
- "processInstanceId": null,
- "processDefinitionId": null,
- "processDefinitionKey": null,
- "executionId": null,
- "exceptionMessage": null,
- "retries": 3,
- "dueDate": "aDueDate",
- "suspended": false,
- "priority": 0,
- "tenantId": null,
- "createTime": "2018-05-05T17:00:00+0200"
}, - {
- "id": "anotherJobId",
- "jobDefinitionId": null,
- "processInstanceId": null,
- "processDefinitionId": null,
- "processDefinitionKey": null,
- "executionId": null,
- "exceptionMessage": null,
- "retries": 3,
- "dueDate": "anotherDueDate",
- "suspended": false,
- "priority": 0,
- "tenantId": null,
- "createTime": "2018-05-05T17:00:00+0200"
}
]
Gets the groups of a user by id and includes all users that share a group with the given user.
userId required | string The id of the user to get the groups for. |
GET /identity/groups?userId=aUserId
{- "groups": [
- {
- "id": "group1Id",
- "name": "group1"
}
], - "groupUsers": [
- {
- "firstName": "firstName",
- "lastName": "lastName",
- "displayName": "firstName lastName",
- "id": "anotherUserId"
}
]
}
A password policy consists of a list of rules that new passwords must follow to be policy compliant. This end point returns a JSON representation of the list of policy rules. More information on password policies in Camunda can be found in the password policy user guide and in the security instructions.
GET /identity/password-policy
{- "rules": [
- {
- "placeholder": "PASSWORD_POLICY_USER_DATA",
- "parameter": null
}, - {
- "placeholder": "PASSWORD_POLICY_LENGTH",
- "parameter": {
- "minLength": "10"
}
}, - {
- "placeholder": "PASSWORD_POLICY_LOWERCASE",
- "parameter": {
- "minLowerCase": "1"
}
}, - {
- "placeholder": "PASSWORD_POLICY_UPPERCASE",
- "parameter": {
- "minUpperCase": "1"
}
}, - {
- "placeholder": "PASSWORD_POLICY_DIGIT",
- "parameter": {
- "minDigit": "1"
}
}, - {
- "placeholder": "PASSWORD_POLICY_SPECIAL",
- "parameter": {
- "minSpecial": "1"
}
}
]
}
A password policy consists of a list of rules that new passwords must follow to be policy compliant. A password can be checked for compliancy via this end point. More information on password policies in Camunda can be found in the password policy user guide and in the security instructions.
password | string or null The candidate password to be check against the password policy. |
object (UserProfileDto) |
{- "password": "myPassword",
- "profile": {
- "id": "jonny1",
- "firstName": "John",
- "lastName": "Doe",
- "email": "jonny@camunda.org"
}
}
POST /identity/password-policy
{- "rules": [
- {
- "placeholder": "PASSWORD_POLICY_USER_DATA",
- "parameter": null,
- "valid": true
}, - {
- "placeholder": "PASSWORD_POLICY_LOWERCASE",
- "parameter": {
- "minLowerCase": "1"
}, - "valid": true
}, - {
- "placeholder": "PASSWORD_POLICY_LENGTH",
- "parameter": {
- "minLength": "10"
}, - "valid": false
}, - {
- "placeholder": "PASSWORD_POLICY_UPPERCASE\"",
- "parameter": {
- "minUpperCase": "1"
}, - "valid": false
}, - {
- "placeholder": "PASSWORD_POLICY_DIGIT",
- "parameter": {
- "minDigit": "1"
}, - "valid": false
}, - {
- "placeholder": "PASSWORD_POLICY_SPECIAL",
- "parameter": {
- "minSpecial": "1"
}, - "valid": false
}
], - "valid": false
}
Verifies that user credentials are valid.
username | string or null The username of a user. |
password | string or null A password of a user. |
{- "username": "testUser",
- "password": "testPassword"
}
POST /identity/verify
{- "authenticatedUser": "testUser",
- "authenticated": true
}
Queries for incidents that fulfill given parameters. The size of the result set can be retrieved by using the Get Incident Count method.
incidentId | string Restricts to incidents that have the given id. |
incidentType | string Restricts to incidents that belong to the given incident type. See the User Guide for a list of incident types. |
incidentMessage | string Restricts to incidents that have the given incident message. |
incidentMessageLike | string Restricts to incidents that incidents message is a substring of the given value. The string can include
the wildcard character '%' to express like-strategy: starts with ( |
processDefinitionId | string Restricts to incidents that belong to a process definition with the given id. |
processDefinitionKeyIn | string Restricts to incidents that belong to a process definition with the given keys. Must be a comma-separated list. |
processInstanceId | string Restricts to incidents that belong to a process instance with the given id. |
executionId | string Restricts to incidents that belong to an execution with the given id. |
incidentTimestampBefore | string <date-time> Restricts to incidents that have an incidentTimestamp date before the given date.
By default, the date
must have the format |
incidentTimestampAfter | string <date-time> Restricts to incidents that have an incidentTimestamp date after the given date.
By default, the date
must have the format |
activityId | string Restricts to incidents that belong to an activity with the given id. |
failedActivityId | string Restricts to incidents that were created due to the failure of an activity with the given id. |
causeIncidentId | string Restricts to incidents that have the given incident id as cause incident. |
rootCauseIncidentId | string Restricts to incidents that have the given incident id as root cause incident. |
configuration | string Restricts to incidents that have the given parameter set as configuration. |
tenantIdIn | string Restricts to incidents that have one of the given comma-separated tenant ids. |
jobDefinitionIdIn | string Restricts to incidents that have one of the given comma-separated job definition ids. |
sortBy | string Enum: "incidentId" "incidentMessage" "incidentTimestamp" "incidentType" "executionId" "activityId" "processInstanceId" "processDefinitionId" "causeIncidentId" "rootCauseIncidentId" "configuration" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
[- {
- "id": "anIncidentId",
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "executionId": "anExecutionId",
- "incidentTimestamp": "2014-03-01T08:00:00.000+0200",
- "incidentType": "failedJob",
- "activityId": "serviceTask",
- "failedActivityId": "serviceTask",
- "causeIncidentId": "aCauseIncidentId",
- "rootCauseIncidentId": "aRootCauseIncidentId",
- "configuration": "aConfiguration",
- "tenantId": null,
- "incidentMessage": "anIncidentMessage",
- "jobDefinitionId": "aJobDefinitionId",
- "annotation": "an annotation"
}, - {
- "id": "anIncidentId",
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "executionId": "anotherExecutionId",
- "incidentTimestamp": "2014-03-01T09:00:00.000+0200",
- "incidentType": "customIncidentType",
- "activityId": "userTask",
- "failedActivityId": "userTask",
- "causeIncidentId": "anotherCauseIncidentId",
- "rootCauseIncidentId": "anotherRootCauseIncidentId",
- "configuration": "anotherConfiguration",
- "tenantId": null,
- "incidentMessage": "anotherIncidentMessage",
- "jobDefinitionId": null,
- "annotation": "another annotation"
}
]
Queries for the number of incidents that fulfill given parameters. Takes the same parameters as the Get Incidents method.
incidentId | string Restricts to incidents that have the given id. |
incidentType | string Restricts to incidents that belong to the given incident type. See the User Guide for a list of incident types. |
incidentMessage | string Restricts to incidents that have the given incident message. |
incidentMessageLike | string Restricts to incidents that incidents message is a substring of the given value. The string can include
the wildcard character '%' to express like-strategy: starts with ( |
processDefinitionId | string Restricts to incidents that belong to a process definition with the given id. |
processDefinitionKeyIn | string Restricts to incidents that belong to a process definition with the given keys. Must be a comma-separated list. |
processInstanceId | string Restricts to incidents that belong to a process instance with the given id. |
executionId | string Restricts to incidents that belong to an execution with the given id. |
incidentTimestampBefore | string <date-time> Restricts to incidents that have an incidentTimestamp date before the given date.
By default, the date
must have the format |
incidentTimestampAfter | string <date-time> Restricts to incidents that have an incidentTimestamp date after the given date.
By default, the date
must have the format |
activityId | string Restricts to incidents that belong to an activity with the given id. |
failedActivityId | string Restricts to incidents that were created due to the failure of an activity with the given id. |
causeIncidentId | string Restricts to incidents that have the given incident id as cause incident. |
rootCauseIncidentId | string Restricts to incidents that have the given incident id as root cause incident. |
configuration | string Restricts to incidents that have the given parameter set as configuration. |
tenantIdIn | string Restricts to incidents that have one of the given comma-separated tenant ids. |
jobDefinitionIdIn | string Restricts to incidents that have one of the given comma-separated job definition ids. |
{- "count": 2
}
Retrieves an incident by ID.
id required | string The id of the incident to be retrieved. |
{- "id": "anIncidentId",
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "executionId": "anExecutionId",
- "incidentTimestamp": "2014-03-01T08:00:00.000+0200",
- "incidentType": "failedJob",
- "activityId": "serviceTask",
- "failedActivityId": "serviceTask",
- "causeIncidentId": "aCauseIncidentId",
- "rootCauseIncidentId": "aRootCauseIncidentId",
- "configuration": "aConfiguration",
- "tenantId": null,
- "incidentMessage": "anIncidentMessage",
- "jobDefinitionId": "aJobDefinitionId",
- "annotation": "an annotation"
}
Sets the annotation of an incident with given id.
id required | string The id of the incident to clear the annotation at. |
annotation | string or null The annotation value to put. |
{- "annotation": "my annotation"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Queries for jobs that fulfill given parameters. The size of the result set can be retrieved by using the Get Job Count method.
jobId | string Filter by job id. |
jobIds | string Filter by a comma-separated list of job ids. |
jobDefinitionId | string Only select jobs which exist for the given job definition. |
processInstanceId | string Only select jobs which exist for the given process instance. |
processInstanceIds | string Only select jobs which exist for the given comma-separated list of process instance ids. |
executionId | string Only select jobs which exist for the given execution. |
processDefinitionId | string Filter by the id of the process definition the jobs run on. |
processDefinitionKey | string Filter by the key of the process definition the jobs run on. |
activityId | string Only select jobs which exist for an activity with the given id. |
withRetriesLeft | boolean Only select jobs which have retries left. Value may only be |
executable | boolean Only select jobs which are executable, i.e., retries > 0 and due date is |
timers | boolean Only select jobs that are timers. Cannot be used together with |
messages | boolean Only select jobs that are messages. Cannot be used together with |
dueDates | string Only select jobs where the due date is lower or higher than the given date. Due date expressions are comma-separated and are structured as follows: A valid condition value has the form Valid operator values are: |
createTimes | string Only select jobs created before or after the given date. Create time expressions are comma-separated and are structured as follows: A valid condition value has the form Valid operator values are: |
withException | boolean Only select jobs that failed due to an exception. Value may only be |
exceptionMessage | string Only select jobs that failed due to an exception with the given message. |
failedActivityId | string Only select jobs that failed due to an exception at an activity with the given id. |
noRetriesLeft | boolean Only select jobs which have no retries left. Value may only be |
active | boolean Only include active jobs. Value may only be |
suspended | boolean Only include suspended jobs. Value may only be |
priorityLowerThanOrEquals | integer <int64> Only include jobs with a priority lower than or equal to the given value. Value must be a
valid |
priorityHigherThanOrEquals | integer <int64> Only include jobs with a priority higher than or equal to the given value. Value must be a
valid |
tenantIdIn | string Only include jobs which belong to one of the passed comma-separated tenant ids. |
withoutTenantId | boolean Only include jobs which belong to no tenant. Value may only be |
includeJobsWithoutTenantId | boolean Include jobs which belong to no tenant. Can be used in combination with |
sortBy | string Enum: "jobId" "executionId" "processInstanceId" "processDefinitionId" "processDefinitionKey" "jobPriority" "jobRetries" "jobDueDate" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /job/count?dueDates=gt_2012-07-17T17:00:00.000+0200,lt_2012-07-17T18:00:00.000+0200&createTimes=gt_2012-05-05T10:00:00.000+0200,lt_2012-07-16T15:00:00.000+0200
[- {
- "id": "aJobId",
- "jobDefinitionId": "aJobDefinitionId",
- "dueDate": "2018-07-17T17:05:00.000+0200",
- "processInstanceId": "aProcessInstanceId",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aPDKey",
- "executionId": "anExecutionId",
- "retries": 0,
- "exceptionMessage": "An exception Message",
- "failedActivityId": "anActivityId",
- "suspended": false,
- "priority": 10,
- "tenantId": null,
- "createTime": "2018-05-05T17:00:00+0200",
- "batchId": "aBatchId"
}, - {
- "id": "anotherJobId",
- "jobDefinitionId": "anotherJobDefinitionId",
- "dueDate": "2018-07-17T17:55:00.000+0200",
- "processInstanceId": "aProcessInstanceId",
- "processDefinitionId": "anotherPDId",
- "processDefinitionKey": "anotherPDKey",
- "executionId": "anotherExecutionId",
- "retries": 0,
- "exceptionMessage": "Another exception Message",
- "failedActivityId": "anotherActivityId",
- "suspended": true,
- "priority": 8,
- "tenantId": null,
- "createTime": "2018-05-05T17:00:00+0200",
- "batchId": null
}
]
Queries for jobs that fulfill given parameters. This method is slightly more
powerful than the Get Jobs
method because it allows filtering by multiple jobs of types String
,
Number
or Boolean
.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
jobId | string or null Filter by job id. |
jobIds | Array of strings or null Filter by a list of job ids. |
jobDefinitionId | string or null Only select jobs which exist for the given job definition. |
processInstanceId | string or null Only select jobs which exist for the given process instance. |
processInstanceIds | Array of strings or null Only select jobs which exist for the given list of process instance ids. |
executionId | string or null Only select jobs which exist for the given execution. |
processDefinitionId | string or null Filter by the id of the process definition the jobs run on. |
processDefinitionKey | string or null Filter by the key of the process definition the jobs run on. |
activityId | string or null Only select jobs which exist for an activity with the given id. |
withRetriesLeft | boolean or null Only select jobs which have retries left. Value may only be |
executable | boolean or null Only select jobs which are executable, i.e., retries > 0 and due date is |
timers | boolean or null Only select jobs that are timers. Cannot be used together with |
messages | boolean or null Only select jobs that are messages. Cannot be used together with |
Array of objects or null (JobConditionQueryParameterDto) Only select jobs where the due date is lower or higher than the given date. | |
Array of objects or null (JobConditionQueryParameterDto) Only select jobs created before or after the given date. | |
withException | boolean or null Only select jobs that failed due to an exception. Value may only be |
exceptionMessage | string or null Only select jobs that failed due to an exception with the given message. |
failedActivityId | string or null Only select jobs that failed due to an exception at an activity with the given id. |
noRetriesLeft | boolean or null Only select jobs which have no retries left. Value may only be |
active | boolean or null Only include active jobs. Value may only be |
suspended | boolean or null Only include suspended jobs. Value may only be |
priorityLowerThanOrEquals | integer or null <int64> Only include jobs with a priority lower than or equal to the given value. Value must be a
valid |
priorityHigherThanOrEquals | integer or null <int64> Only include jobs with a priority higher than or equal to the given value. Value must be a
valid |
tenantIdIn | Array of strings or null Only include jobs which belong to one of the passed tenant ids. |
withoutTenantId | boolean or null Only include jobs which belong to no tenant. Value may only be |
includeJobsWithoutTenantId | boolean or null Include jobs which belong to no tenant. Can be used in combination with |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Does not have an effect for the |
{- "dueDates": [
- {
- "operator": "gt",
- "value": "2018-07-17T17:00:00.000+0200"
}, - {
- "operator": "lt",
- "value": "2018-07-17T18:00:00.000+0200"
}
], - "createTimes": [
- {
- "operator": "gt",
- "value": "2012-05-05T10:00:00.000+0200"
}, - {
- "operator": "lt",
- "value": "2012-07-16T15:00:00.000+0200"
}
], - "sorting": [
- {
- "sortBy": "jobDueDate",
- "sortOrder": "asc"
}, - {
- "sortBy": "jobRetries",
- "sortOrder": "asc"
}
]
}
POST /job
[- {
- "id": "aJobId",
- "jobDefinitionId": "aJobDefinitionId",
- "dueDate": "2018-07-17T17:05:00.000+0200",
- "processInstanceId": "aProcessInstanceId",
- "processDefinitionId": "aProcessDefinitionId",
- "processDefinitionKey": "aPDKey",
- "executionId": "anExecutionId",
- "retries": 0,
- "exceptionMessage": "An exception Message",
- "failedActivityId": "anActivityId",
- "suspended": false,
- "priority": 10,
- "tenantId": null,
- "createTime": "2018-05-05T17:00:00+0200",
- "batchId": "aBatchId"
}, - {
- "id": "anotherJobId",
- "jobDefinitionId": "anotherJobDefinitionId",
- "dueDate": "2018-07-17T17:55:00.000+0200",
- "processInstanceId": "aProcessInstanceId",
- "processDefinitionId": "anotherPDId",
- "processDefinitionKey": "anotherPDKey",
- "executionId": "anotherExecutionId",
- "retries": 0,
- "exceptionMessage": "Another exception Message",
- "failedActivityId": "anotherActivityId",
- "suspended": true,
- "priority": 8,
- "tenantId": null,
- "createTime": "2018-05-05T17:00:00+0200",
- "batchId": null
}
]
Queries for the number of jobs that fulfill given parameters. Takes the same parameters as the Get Jobs method.
jobId | string Filter by job id. |
jobIds | string Filter by a comma-separated list of job ids. |
jobDefinitionId | string Only select jobs which exist for the given job definition. |
processInstanceId | string Only select jobs which exist for the given process instance. |
processInstanceIds | string Only select jobs which exist for the given comma-separated list of process instance ids. |
executionId | string Only select jobs which exist for the given execution. |
processDefinitionId | string Filter by the id of the process definition the jobs run on. |
processDefinitionKey | string Filter by the key of the process definition the jobs run on. |
activityId | string Only select jobs which exist for an activity with the given id. |
withRetriesLeft | boolean Only select jobs which have retries left. Value may only be |
executable | boolean Only select jobs which are executable, i.e., retries > 0 and due date is |
timers | boolean Only select jobs that are timers. Cannot be used together with |
messages | boolean Only select jobs that are messages. Cannot be used together with |
dueDates | string Only select jobs where the due date is lower or higher than the given date. Due date expressions are comma-separated and are structured as follows: A valid condition value has the form Valid operator values are: |
createTimes | string Only select jobs created before or after the given date. Create time expressions are comma-separated and are structured as follows: A valid condition value has the form Valid operator values are: |
withException | boolean Only select jobs that failed due to an exception. Value may only be |
exceptionMessage | string Only select jobs that failed due to an exception with the given message. |
failedActivityId | string Only select jobs that failed due to an exception at an activity with the given id. |
noRetriesLeft | boolean Only select jobs which have no retries left. Value may only be |
active | boolean Only include active jobs. Value may only be |
suspended | boolean Only include suspended jobs. Value may only be |
priorityLowerThanOrEquals | integer <int64> Only include jobs with a priority lower than or equal to the given value. Value must be a
valid |
priorityHigherThanOrEquals | integer <int64> Only include jobs with a priority higher than or equal to the given value. Value must be a
valid |
tenantIdIn | string Only include jobs which belong to one of the passed comma-separated tenant ids. |
withoutTenantId | boolean Only include jobs which belong to no tenant. Value may only be |
includeJobsWithoutTenantId | boolean Include jobs which belong to no tenant. Can be used in combination with |
GET /job/count?dueDates=gt_2012-07-17T17:00:00.000+0200,lt_2012-07-17T18:00:00.000+0200&createTimes=gt_2012-05-05T10:00:00.000+0200,lt_2012-07-16T15:00:00.000+0200
{- "count": 2
}
Queries for jobs that fulfill given parameters. This method takes the same message body as the [Get Jobs POST](https://docs.camunda.org/manual/7.22/reference/rest/job/post- query/) method and therefore it is slightly more powerful than the Get Job Count method.
jobId | string or null Filter by job id. |
jobIds | Array of strings or null Filter by a list of job ids. |
jobDefinitionId | string or null Only select jobs which exist for the given job definition. |
processInstanceId | string or null Only select jobs which exist for the given process instance. |
processInstanceIds | Array of strings or null Only select jobs which exist for the given list of process instance ids. |
executionId | string or null Only select jobs which exist for the given execution. |
processDefinitionId | string or null Filter by the id of the process definition the jobs run on. |
processDefinitionKey | string or null Filter by the key of the process definition the jobs run on. |
activityId | string or null Only select jobs which exist for an activity with the given id. |
withRetriesLeft | boolean or null Only select jobs which have retries left. Value may only be |
executable | boolean or null Only select jobs which are executable, i.e., retries > 0 and due date is |
timers | boolean or null Only select jobs that are timers. Cannot be used together with |
messages | boolean or null Only select jobs that are messages. Cannot be used together with |
Array of objects or null (JobConditionQueryParameterDto) Only select jobs where the due date is lower or higher than the given date. | |
Array of objects or null (JobConditionQueryParameterDto) Only select jobs created before or after the given date. | |
withException | boolean or null Only select jobs that failed due to an exception. Value may only be |
exceptionMessage | string or null Only select jobs that failed due to an exception with the given message. |
failedActivityId | string or null Only select jobs that failed due to an exception at an activity with the given id. |
noRetriesLeft | boolean or null Only select jobs which have no retries left. Value may only be |
active | boolean or null Only include active jobs. Value may only be |
suspended | boolean or null Only include suspended jobs. Value may only be |
priorityLowerThanOrEquals | integer or null <int64> Only include jobs with a priority lower than or equal to the given value. Value must be a
valid |
priorityHigherThanOrEquals | integer or null <int64> Only include jobs with a priority higher than or equal to the given value. Value must be a
valid |
tenantIdIn | Array of strings or null Only include jobs which belong to one of the passed tenant ids. |
withoutTenantId | boolean or null Only include jobs which belong to no tenant. Value may only be |
includeJobsWithoutTenantId | boolean or null Include jobs which belong to no tenant. Can be used in combination with |
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Does not have an effect for the |
{- "dueDates": [
- {
- "operator": "gt",
- "value": "2012-07-17T17:00:00.000+0200"
}, - {
- "operator": "lt",
- "value": "2012-07-17T18:00:00.000+0200"
}
], - "createTimes": [
- {
- "operator": "gt",
- "value": "2012-05-05T10:00:00.000+0200"
}, - {
- "operator": "lt",
- "value": "2012-07-16T15:00:00.000+0200"
}
]
}
POST /job/count
{- "count": 2
}
Create a batch to set retries of jobs asynchronously.
jobIds | Array of strings or null A list of job ids to set retries for. |
object (JobQueryDto) A Job instance query which defines a list of Job instances | |
dueDate | string or null <date-time> The due date to set for the job. A due date indicates when this job is ready for execution. Jobs with due dates in the past will be scheduled for execution. |
retries | integer or null <int32> The number of retries to set for the resource. Must be >= 0. If this is 0, an incident is created and the task, or job, cannot be fetched, or acquired anymore unless the retries are increased again. Can not be null. |
{- "retries": 5,
- "dueDate": "2017-04-06T13:57:45.000+0200",
- "jobIds": [
- "aJob",
- "secondJob"
], - "jobQuery": {
- "dueDates": [
- {
- "operator": "gt",
- "value": "2012-07-17T17:00:00.000+0200"
}, - {
- "operator": "lt",
- "value": "2012-07-17T18:00:00.000+0200"
}
]
}
}
POST /job/retries
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "batchJobsPerSeed": 100,
- "jobsCreated": 10,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "suspened": false,
- "tenantId": "aTenantId",
- "createUserId": "userId"
}
Activates or suspends jobs matching the given criterion. This can only be on of:
jobDefinitionId
processDefinitionId
processInstanceId
processDefinitionKey
jobDefinitionId | string or null The job definition id of the jobs to activate or suspend. |
processDefinitionId | string or null The process definition id of the jobs to activate or suspend. |
processInstanceId | string or null The process instance id of the jobs to activate or suspend. |
processDefinitionKey | string or null The process definition key of the jobs to activate or suspend. |
processDefinitionTenantId | string or null Only activate or suspend jobs of a process definition which belongs to a tenant
with the given id. Works only when selecting with |
processDefinitionWithoutTenantId | boolean or null Only activate or suspend jobs of a process definition which belongs to no tenant.
Value may only be |
suspended | boolean or null A Boolean value which indicates whether to activate or suspend a given instance (e.g. process instance, job, job definition, or batch). When the value is set to true, the given instance will be suspended and when the value is set to false, the given instance will be activated. |
{- "jobDefinitionId": "aJobDefinitionId",
- "suspended": true
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a job by id, according to the Job
interface in the engine.
id required | string The id of the job to be retrieved. |
GET /job/aJobId
{- "id": "aJobId",
- "jobDefinitionId": "f9eec330-e3ff-11e8-8f7d-e4a7a094a9d6",
- "dueDate": "2018-07-17T17:00:00+0200",
- "processInstanceId": "aProcessInstanceId",
- "processDefinitionId": "timer:1:f9ee9c1f-e3ff-11e8-8f7d-e4a7a094a9d6",
- "processDefinitionKey": "timer",
- "executionId": "anExecutionId",
- "retries": 0,
- "exceptionMessage": "An exception Message",
- "failedActivityId": "anActivityId",
- "suspended": false,
- "priority": 10,
- "tenantId": null,
- "createTime": "2018-05-05T17:00:00+0200",
- "batchId": "aBatchId"
}
Updates the due date of a job by id.
id required | string The id of the job to be updated. |
duedate | string or null <date-time> The date to set when the job has the next execution. |
cascade | boolean or null A boolean value to indicate if modifications to the due date should cascade to
subsequent jobs. (e.g. Modify the due date of a timer by +15
minutes. This flag indicates if a +15 minutes should be applied to all
subsequent timers.) This flag only affects timer jobs and only works if due date
is not null. Default: |
{- "duedate": "2013-08-13T18:43:28.000+0200",
- "cascade": false
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Recalculates the due date of a job by id.
id required | string The id of the job to be updated. |
creationDateBased | boolean Recalculate the due date based on the creation date of the job or the current date.
Value may only be |
{- "type": "string",
- "message": "string",
- "code": 0
}
Executes a job by id. Note: The execution of the job happens synchronously in the same thread.
id required | string The id of the job to be executed. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Sets the execution priority of a job by id.
id required | string The id of the job to be updated. |
priority | integer or null <int64> The priority of the resource. |
{- "priority": 10
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Sets the retries of the job to the given number of retries by id.
id required | string The id of the job to be updated. |
dueDate | string or null <date-time> The due date to set for the job. A due date indicates when this job is ready for execution. Jobs with due dates in the past will be scheduled for execution. |
retries | integer or null <int32> The number of retries to set for the resource. Must be >= 0. If this is 0, an incident is created and the task, or job, cannot be fetched, or acquired anymore unless the retries are increased again. Can not be null. |
{- "retries": 3,
- "dueDate": "2017-04-06T13:57:45.000+0200"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the exception stacktrace corresponding to the passed job id.
id required | string The id of the job to get the exception stacktrace for. |
GET /job/aJobId/stacktrace
java.lang.RuntimeException: A exception message! at org.camunda.bpm.pa.service.FailingDelegate.execute(FailingDelegate.java:10) at org.camunda.bpm.engine.impl.delegate.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:34) at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37) ...
Activates or suspends a given job by id.
id required | string The id of the job to activate or suspend. |
suspended | boolean or null A Boolean value which indicates whether to activate or suspend a given instance (e.g. process instance, job, job definition, or batch). When the value is set to true, the given instance will be suspended and when the value is set to false, the given instance will be activated. |
{- "suspended": true
}
Queries for job definitions that fulfill given parameters. The size of the result set can be retrieved by using the Get Job Definition Count method.
jobDefinitionId | string Filter by job definition id. |
activityIdIn | string Only include job definitions which belong to one of the passed and comma-separated activity ids. |
processDefinitionId | string Only include job definitions which exist for the given process definition id. |
processDefinitionKey | string Only include job definitions which exist for the given process definition key. |
jobType | string Only include job definitions which exist for the given job type. See the User Guide for more information about job types. |
jobConfiguration | string Only include job definitions which exist for the given job configuration. For example: for timer jobs it is the timer configuration. |
active | boolean Only include active job definitions. Value may only be |
suspended | boolean Only include suspended job definitions. Value may only be |
withOverridingJobPriority | boolean Only include job definitions that have an overriding job priority defined. The only
effective value is |
tenantIdIn | string Only include job definitions which belong to one of the passed and comma-separated tenant ids. |
withoutTenantId | boolean Only include job definitions which belong to no tenant. Value may only be |
includeJobDefinitionsWithoutTenantId | boolean Include job definitions which belong to no tenant. Can be used in combination with
|
sortBy | string Enum: "jobDefinitionId" "activityId" "processDefinitionId" "processDefinitionKey" "jobType" "jobConfiguration" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
GET /job-definition?activityIdIn=ServiceTask1,ServiceTask2
[- {
- "id": "aJobDefId",
- "processDefinitionId": "aProcDefId",
- "processDefinitionKey": "aProcDefKey",
- "activityId": "ServiceTask1",
- "jobType": "asynchronous-continuation",
- "jobConfiguration": "",
- "suspended": false,
- "overridingJobPriority": 15,
- "tenantId": null,
- "deploymentId": "aDeploymentId"
}, - {
- "id": "aJobDefId",
- "processDefinitionId": "aProcDefId",
- "processDefinitionKey": "aProcDefKey",
- "activityId": "ServiceTask2",
- "jobType": "asynchronous-continuation",
- "jobConfiguration": "",
- "suspended": true,
- "overridingJobPriority": null,
- "tenantId": null,
- "deploymentId": "aDeploymentId"
}
]
Queries for job definitions that fulfill given parameters. This method is slightly
more powerful than the
Get Job Definitions
method because it allows filtering by multiple job definitions of
types String
, Number
or Boolean
.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
jobDefinitionId | string or null Filter by job definition id. |
activityIdIn | Array of strings or null Only include job definitions which belong to one of the passed activity ids. |
processDefinitionId | string or null Only include job definitions which exist for the given process definition id. |
processDefinitionKey | string or null Only include job definitions which exist for the given process definition key. |
jobType | string or null Only include job definitions which exist for the given job type. See the User Guide for more information about job types. |
jobConfiguration | string or null Only include job definitions which exist for the given job configuration. For example: for timer jobs it is the timer configuration. |
active | boolean or null Only include active job definitions. Value may only be |
suspended | boolean or null Only include suspended job definitions. Value may only be |
withOverridingJobPriority | boolean or null Only include job definitions that have an overriding job priority defined. The only
effective value is |
tenantIdIn | Array of strings or null Only include job definitions which belong to one of the passed tenant ids. |
withoutTenantId | boolean or null Only include job definitions which belong to no tenant. Value may only be |
includeJobDefinitionsWithoutTenantId | boolean or null Include job definitions which belong to no tenant. Can be used in combination with
|
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Sorting has no effect for |
{- "activityIdIn": [
- "ServiceTask1",
- "ServiceTask2"
], - "sorting": [
- {
- "sortBy": "activityId",
- "sortOrder": "asc"
}, - {
- "sortBy": "jobType",
- "sortOrder": "asc"
}
]
}
POST /job-definition
[- {
- "id": "aJobDefId",
- "processDefinitionId": "aProcDefId",
- "processDefinitionKey": "aProcDefKey",
- "activityId": "ServiceTask1",
- "jobType": "asynchronous-continuation",
- "jobConfiguration": "",
- "suspended": false,
- "overridingJobPriority": 15,
- "tenantId": null,
- "deploymentId": "aDeploymentId"
}, - {
- "id": "aJobDefId",
- "processDefinitionId": "aProcDefId",
- "processDefinitionKey": "aProcDefKey",
- "activityId": "ServiceTask2",
- "jobType": "asynchronous-continuation",
- "jobConfiguration": "",
- "suspended": true,
- "overridingJobPriority": null,
- "tenantId": null,
- "deploymentId": "aDeploymentId"
}
]
Queries for the number of job definitions that fulfill given parameters. Takes the same parameters as the Get Job Definitions method.
jobDefinitionId | string Filter by job definition id. |
activityIdIn | string Only include job definitions which belong to one of the passed and comma-separated activity ids. |
processDefinitionId | string Only include job definitions which exist for the given process definition id. |
processDefinitionKey | string Only include job definitions which exist for the given process definition key. |
jobType | string Only include job definitions which exist for the given job type. See the User Guide for more information about job types. |
jobConfiguration | string Only include job definitions which exist for the given job configuration. For example: for timer jobs it is the timer configuration. |
active | boolean Only include active job definitions. Value may only be |
suspended | boolean Only include suspended job definitions. Value may only be |
withOverridingJobPriority | boolean Only include job definitions that have an overriding job priority defined. The only
effective value is |
tenantIdIn | string Only include job definitions which belong to one of the passed and comma-separated tenant ids. |
withoutTenantId | boolean Only include job definitions which belong to no tenant. Value may only be |
includeJobDefinitionsWithoutTenantId | boolean Include job definitions which belong to no tenant. Can be used in combination with
|
GET /job-definition/count?activityIdIn=ServiceTask1,ServiceTask2
{- "count": 2
}
Queries for the number of job definitions that fulfill given parameters. This method takes the same message body as the Get Job Definitions (POST) method and therefore it is slightly more powerful than the Get Job Definition Count method.
jobDefinitionId | string or null Filter by job definition id. |
activityIdIn | Array of strings or null Only include job definitions which belong to one of the passed activity ids. |
processDefinitionId | string or null Only include job definitions which exist for the given process definition id. |
processDefinitionKey | string or null Only include job definitions which exist for the given process definition key. |
jobType | string or null Only include job definitions which exist for the given job type. See the User Guide for more information about job types. |
jobConfiguration | string or null Only include job definitions which exist for the given job configuration. For example: for timer jobs it is the timer configuration. |
active | boolean or null Only include active job definitions. Value may only be |
suspended | boolean or null Only include suspended job definitions. Value may only be |
withOverridingJobPriority | boolean or null Only include job definitions that have an overriding job priority defined. The only
effective value is |
tenantIdIn | Array of strings or null Only include job definitions which belong to one of the passed tenant ids. |
withoutTenantId | boolean or null Only include job definitions which belong to no tenant. Value may only be |
includeJobDefinitionsWithoutTenantId | boolean or null Include job definitions which belong to no tenant. Can be used in combination with
|
Array of objects or null An array of criteria to sort the result by. Each element of the array is
an object that specifies one ordering. The position in the array
identifies the rank of an ordering, i.e., whether it is primary, secondary,
etc. Sorting has no effect for |
{- "activityIdIn": [
- "ServiceTask1",
- "ServiceTask2"
]
}
POST /job-definition/count
{- "count": 2
}
Activates or suspends job definitions with the given process definition id or process definition key.
processDefinitionId | string or null The process definition id of the job definitions to activate or suspend. |
processDefinitionKey | string or null The process definition key of the job definitions to activate or suspend. |
processDefinitionTenantId | string or null Only activate or suspend job definitions of a process definition which belongs to a tenant with the given id. Note that this parameter will only be considered
in combination with |
processDefinitionWithoutTenantId | boolean or null Only activate or suspend job definitions of a process definition which belongs to
no tenant. Value may only be Note that this parameter will only be considered
in combination with |
includeJobs | boolean or null A |
executionDate | string or null The date on which the referenced job definitions will be activated or suspended. If null,
the suspension state of the given job definitions is updated
immediately. By default, the date must have the format |
suspended | boolean or null A Boolean value which indicates whether to activate or suspend a given instance (e.g. process instance, job, job definition, or batch). When the value is set to true, the given instance will be suspended and when the value is set to false, the given instance will be activated. |
PUT /job-definition/suspended
{- "processDefinitionId": "aProcessDefinitionId",
- "suspended": true,
- "includeJobs": true,
- "executionDate": "2013-11-21T10:49:45.000+0200"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a job definition by id, according to the JobDefinition
interface in the engine.
id required | string The id of the job definition to be retrieved. |
GET /job-definition/aJobDefinitionId
{- "id": "aJobDefId",
- "processDefinitionId": "aProcDefId",
- "processDefinitionKey": "aProcDefKey",
- "activityId": "ServiceTask1",
- "jobType": "asynchronous-continuation",
- "jobConfiguration": "",
- "suspended": false,
- "overridingJobPriority": 15,
- "tenantId": null,
- "deploymentId": "aDeploymentId"
}
Sets an overriding execution priority for jobs with the given definition id.
Optionally, the priorities of all the definitions' existing jobs are
updated accordingly. The priority can be reset by setting it to
null
, meaning that a new job's priority will not be determined based
on its definition's priority any longer. See the
user guide on job prioritization
for details.
id required | string The id of the job definition to be updated. |
priority | integer or null <int64> The new execution priority number for jobs of the given definition. The
definition's priority can be reset by using the value |
includeJobs | boolean or null A boolean value indicating whether existing jobs of the given definition should
receive the priority as well. Default value is |
{- "priority": 10,
- "includeJobs": true
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Sets the number of retries of all failed jobs associated with the given job definition id.
id required | string The id of the job definition to be updated. |
retries | integer or null <int32> The number of retries to set for the resource. Must be >= 0. If this is 0, an incident is created and the task, or job, cannot be fetched, or acquired anymore unless the retries are increased again. Can not be null. |
{- "retries": 3,
- "dueDate": "2017-04-06T13:57:45.000+0200"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Activates or suspends a given job definition by id.
id required | string The id of the job definition to activate or suspend. |
includeJobs | boolean or null A |
executionDate | string or null The date on which the referenced job definitions will be activated or suspended. If null,
the suspension state of the given job definitions is updated
immediately. By default, the date must have the format |
suspended | boolean or null A Boolean value which indicates whether to activate or suspend a given instance (e.g. process instance, job, job definition, or batch). When the value is set to true, the given instance will be suspended and when the value is set to false, the given instance will be activated. |
{- "suspended": true,
- "includeJobs": true,
- "executionDate": "2013-11-21T10:49:45.000+0200"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Correlates a message to the process engine to either trigger a message start event or an intermediate message
catching event. Internally this maps to the engine's message correlation builder methods
MessageCorrelationBuilder#correlateWithResult()
and MessageCorrelationBuilder#correlateAllWithResult()
.
For more information about the correlation behavior, see the Message Events
section of the BPMN 2.0 Implementation Reference.
messageName | string or null The name of the message to deliver. |
businessKey | string or null Used for correlation of process instances that wait for incoming messages. Will only correlate to executions that belong to a process instance with the provided business key. |
tenantId | string or null Used to correlate the message for a tenant with the given id.
Will only correlate to executions and process definitions which belong to the tenant.
Must not be supplied in conjunction with a |
withoutTenantId | boolean or null Default: false A Boolean value that indicates whether the message should only be correlated to executions
and process definitions which belong to no tenant or not. Value may only be |
processInstanceId | string or null Used to correlate the message to the process instance with the given id. |
object or null Used for correlation of process instances that wait for incoming messages. Has to be a JSON object containing key-value pairs that are matched against process instance variables during correlation. Each key is a variable name and each value a JSON variable value object with the following properties. | |
object or null Local variables used for correlation of executions (process instances) that wait for incoming messages. Has to be a JSON object containing key-value pairs that are matched against local variables during correlation. Each key is a variable name and each value a JSON variable value object with the following properties. | |
object or null A map of variables that is injected into the triggered execution or process instance after the message has been delivered. Each key is a variable name and each value a JSON variable value object with the following properties. | |
object or null A map of local variables that is injected into the execution waiting on the message. Each key is a variable name and each value a JSON variable value object with the following properties. | |
object or null A map of variables that is injected into the new scope triggered by message correlation. Each key is a variable name and each value a JSON variable value object with the following properties. | |
all | boolean or null Default: false A Boolean value that indicates whether the message should be correlated to exactly one entity or multiple entities.
If the value is set to |
resultEnabled | boolean or null Default: false A Boolean value that indicates whether the result of the correlation should be returned or not.
If this property is set to The default value is |
variablesInResultEnabled | boolean or null Default: false A Boolean value that indicates whether the result of the correlation should contain process variables or not.
The parameter resultEnabled should be set to The default value is |
Correlate without result
{- "messageName": "aMessage",
- "businessKey": "aBusinessKey",
- "correlationKeys": {
- "aVariable": {
- "value": "aValue",
- "type": "String"
}
}, - "processVariables": {
- "aVariable": {
- "value": "aNewValue",
- "type": "String",
- "valueInfo": {
- "transient": true
}
}, - "anotherVariable": {
- "value": true,
- "type": "Boolean"
}
}
}
The Response content of a status 200. The property variablesInResultEnabled
in the request body was false
(Default).
[- {
- "resultType": "ProcessDefinition",
- "execution": null,
- "processInstance": {
- "links": [ ],
- "id": "aProcInstId",
- "definitionId": "aProcDefId",
- "businessKey": "aKey",
- "caseInstanceId": "aCaseInstId",
- "ended": false,
- "suspended": false,
- "tenantId": "aTenantId"
}
}
]
Retrieves a list of metrics, aggregated for a given interval.
name | string Enum: "activity-instance-start" "activity-instance-end" "decision-instances" "flow-node-instances" "job-acquisition-attempt" "job-acquired-success" "job-acquired-failure" "job-execution-rejected" "job-successful" "job-failed" "job-locked-exclusive" "executed-decision-elements" "history-cleanup-removed-process-instances" "history-cleanup-removed-case-instances" "history-cleanup-removed-decision-instances" "history-cleanup-removed-batch-operations" "history-cleanup-removed-task-metrics" "process-instances" The name of the metric. |
reporter | string The name of the reporter (host), on which the metrics was logged. This will have value provided by the hostname configuration property. |
startDate | string <date-time> The start date (inclusive). |
endDate | string <date-time> The end date (exclusive). |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
interval | string Default: 900 The interval for which the metrics should be aggregated. Time unit is seconds. Default: The interval is set to 15 minutes (900 seconds). |
aggregateByReporter | string Aggregate metrics by reporter. |
[- {
- "timestamp": "1970-01-01T01:45:00.000+0200",
- "name": "flow-node-instances",
- "reporter": "REPORTER",
- "value": 23
}
]
Deletes all task worker metrics prior to the given date or all if no date is provided.
date | string <date-time> The date prior to which all task worker metrics should be deleted. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the sum
(count) for a given metric.
metrics-name required | string Enum: "activity-instance-start" "activity-instance-end" "decision-instances" "flow-node-instances" "job-acquisition-attempt" "job-acquired-success" "job-acquired-failure" "job-execution-rejected" "job-successful" "job-failed" "job-locked-exclusive" "executed-decision-elements" "history-cleanup-removed-process-instances" "history-cleanup-removed-case-instances" "history-cleanup-removed-decision-instances" "history-cleanup-removed-batch-operations" "history-cleanup-removed-task-metrics" "unique-task-workers" "process-instances" "task-users" The name of the metric. |
startDate | string <date-time> The start date (inclusive). |
endDate | string <date-time> The end date (exclusive). |
{- "result": 4342343241
}
Executes a migration plan synchronously for multiple process instances. To execute a migration plan asynchronously, use the Execute Migration Plan Async(Batch) method.
For more information about the difference between synchronous and asynchronous execution of a migration plan, please refer to the related section of the user guide.
object (MigrationPlanDto) | |
processInstanceIds | Array of strings or null A list of process instance ids to migrate. |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
skipCustomListeners | boolean or null A boolean value to control whether execution listeners should be invoked during migration. |
skipIoMappings | boolean or null A boolean value to control whether input/output mappings should be executed during migration. |
{- "migrationPlan": {
- "sourceProcessDefinitionId": "aProcessDefinitionId1",
- "targetProcessDefinitionId": "aProcessDefinitionId2",
- "instructions": [
- {
- "sourceActivityIds": [
- "aUserTask"
], - "targetActivityIds": [
- "aUserTask"
]
}, - {
- "sourceActivityIds": [
- "anEvent"
], - "targetActivityIds": [
- "anotherEvent"
], - "updateEventTrigger": true
}
], - "variables": {
- "foo": {
- "type": "Object",
- "value": "[5,9]",
- "valueInfo": {
- "objectTypeName": "java.util.ArrayList",
- "serializationDataFormat": "application/json"
}
}
}
}, - "processInstanceIds": [
- "aProcessInstance",
- "anotherProcessInstance"
], - "processInstanceQuery": {
- "processDefinitionId": "aProcessDefinitionId1"
}, - "skipCustomListeners": true
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Executes a migration plan asynchronously (batch) for multiple process instances. To execute a migration plan synchronously, use the Execute MigrationPlan method.
For more information about the difference between synchronous and asynchronous execution of a migration plan, please refer to the related section of the user guide.
object (MigrationPlanDto) | |
processInstanceIds | Array of strings or null A list of process instance ids to migrate. |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
skipCustomListeners | boolean or null A boolean value to control whether execution listeners should be invoked during migration. |
skipIoMappings | boolean or null A boolean value to control whether input/output mappings should be executed during migration. |
{- "migrationPlan": {
- "sourceProcessDefinitionId": "aProcessDefinitionId1",
- "targetProcessDefinitionId": "aProcessDefinitionId2",
- "instructions": [
- {
- "sourceActivityIds": [
- "aUserTask"
], - "targetActivityIds": [
- "aUserTask"
]
}, - {
- "sourceActivityIds": [
- "anEvent"
], - "targetActivityIds": [
- "anotherEvent"
], - "updateEventTrigger": true
}
], - "variables": {
- "foo": {
- "type": "Object",
- "value": "[5,9]",
- "valueInfo": {
- "objectTypeName": "java.util.ArrayList",
- "serializationDataFormat": "application/json"
}
}
}
}, - "processInstanceIds": [
- "aProcessInstance",
- "anotherProcessInstance"
], - "processInstanceQuery": {
- "processDefinitionId": "aProcessDefinitionId1"
}, - "skipCustomListeners": true
}
POST /migration/executeAsync
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "tenantId": "aTenantId"
}
Generates a migration plan for two process definitions. The generated migration plan contains migration instructions which map equal activities between the two process definitions.
sourceProcessDefinitionId | string or null The id of the source process definition for the migration. |
targetProcessDefinitionId | string or null The id of the target process definition for the migration. |
updateEventTriggers | boolean or null A boolean flag indicating whether instructions between events should be configured to update the event triggers. |
object or null A map of variables which will be set into the process instances' scope. Each key is a variable name and each value a JSON variable value object. |
{- "sourceProcessDefinitionId": "aProcessDefinitionId1",
- "targetProcessDefinitionId": "aProcessDefinitionId2",
- "updateEventTriggers": true,
- "variables": {
- "foo": {
- "type": "Object",
- "value": "[5,6]",
- "valueInfo": {
- "objectTypeName": "java.util.ArrayList",
- "serializationDataFormat": "application/json"
}
}
}
}
POST /migration/generate
{- "sourceProcessDefinitionId": "aProcessDefinitionId1",
- "targetProcessDefinitionId": "aProcessDefinitionId2",
- "instructions": [
- {
- "sourceActivityIds": [
- "aUserTask"
], - "targetActivityIds": [
- "aUserTask"
], - "updateEventTrigger": false
}, - {
- "sourceActivityIds": [
- "anEvent"
], - "targetActivityIds": [
- "anotherEvent"
], - "updateEventTrigger": true
}
], - "variables": {
- "foo": {
- "type": "Object",
- "value": "[5,6]",
- "valueInfo": {
- "objectTypeName": "java.util.ArrayList",
- "serializationDataFormat": "application/json"
}
}
}
}
Validates a migration plan statically without executing it. This corresponds to the creation time validation described in the user guide.
sourceProcessDefinitionId | string or null The id of the source process definition for the migration. |
targetProcessDefinitionId | string or null The id of the target process definition for the migration. |
Array of objects or null (MigrationInstructionDto) A list of migration instructions which map equal activities. Each migration instruction is a JSON object with the following properties: | |
object or null A map of variables which will be set into the process instances' scope. Each key is a variable name and each value a JSON variable value object. |
{- "sourceProcessDefinitionId": "aProcessDefinitionId1",
- "targetProcessDefinitionId": "aProcessDefinitionId2",
- "instructions": [
- {
- "sourceActivityIds": [
- "aUserTask"
], - "targetActivityIds": [
- "aUserTask"
]
}, - {
- "sourceActivityIds": [
- "anEvent"
], - "targetActivityIds": [
- "anotherEvent"
], - "updateEventTrigger": true
}
], - "variables": {
- "foo": {
- "type": "Object",
- "value": "...",
- "valueInfo": {
- "objectTypeName": "java.util.ArrayList",
- "serializationDataFormat": "application/x-java-serialized-object"
}
}
}
}
POST /migration/validate
{- "instructionReports": [
- {
- "instruction": {
- "sourceActivityIds": [
- "aUserTask"
], - "targetActivityIds": [
- "aUserTask"
], - "updateEventTrigger": false
}, - "failures": [
- "failure1",
- "failure2"
]
}, - {
- "instruction": {
- "sourceActivityIds": [
- "anEvent"
], - "targetActivityIds": [
- "anotherEvent"
], - "updateEventTrigger": true
}, - "failures": [
- "failure1",
- "failure2"
]
}
], - "variableReports": {
- "foo": {
- "type": "Object",
- "value": "...",
- "valueInfo": {
- "objectTypeName": "java.util.ArrayList",
- "serializationDataFormat": "application/x-java-serialized-object"
}, - "failures": [
- "Cannot set variable with name foo. Java serialization format is prohibited"
]
}
}
}
Executes a modification synchronously for multiple process instances. To modify a single process instance, use the Modify Process Instance Execution State method. To execute a modification asynchronously, use the Execute Modification Async (Batch) method.
For more information about the difference between synchronous and asynchronous execution of a modification, please refer to the related section of the user guide.
processDefinitionId | string or null The id of the process definition for the modification |
skipCustomListeners | boolean or null Skip execution listener invocation for activities that are started or ended as part of this request. |
skipIoMappings | boolean or null Skip execution of input/output variable mappings for activities that are started or ended as part of this request. |
processInstanceIds | Array of strings or null A list of process instance ids to modify. |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
Array of objects or null (MultipleProcessInstanceModificationInstructionDto) An array of modification instructions. The instructions are executed in the order they are in. | |
annotation | string or null An arbitrary text annotation set by a user for auditing reasons. |
{- "processDefinitionId": "aProcessDefinitionId",
- "instructions": [
- {
- "type": "startAfterActivity",
- "activityId": "aUserTask"
}, - {
- "type": "cancel",
- "activityId": "anotherTask",
- "cancelCurrentActiveActivityInstances": true
}
], - "processInstanceIds": [
- "aProcessInstance",
- "anotherProcessInstance"
], - "processInstanceQuery": {
- "processDefinitionId": "aProcessDefinitionId"
}, - "skipCustomListeners": true,
- "annotation": "Modified to resolve an error."
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Executes a modification asynchronously for multiple process instances. To execute a modification synchronously, use the Execute Modification method.
For more information about the difference between synchronous and asynchronous execution of a modification, please refer to the related section of the user guide.
processDefinitionId | string or null The id of the process definition for the modification |
skipCustomListeners | boolean or null Skip execution listener invocation for activities that are started or ended as part of this request. |
skipIoMappings | boolean or null Skip execution of input/output variable mappings for activities that are started or ended as part of this request. |
processInstanceIds | Array of strings or null A list of process instance ids to modify. |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
Array of objects or null (MultipleProcessInstanceModificationInstructionDto) An array of modification instructions. The instructions are executed in the order they are in. | |
annotation | string or null An arbitrary text annotation set by a user for auditing reasons. |
{- "processDefinitionId": "aProcessDefinitionId",
- "instructions": [
- {
- "type": "startAfterActivity",
- "activityId": "aUserTask"
}, - {
- "type": "cancel",
- "activityId": "anotherTask",
- "cancelCurrentActiveActivityInstances": true
}
], - "processInstanceIds": [
- "aProcessInstance",
- "anotherProcessInstance"
], - "processInstanceQuery": {
- "processDefinitionId": "aProcessDefinitionId"
}, - "skipCustomListeners": true,
- "annotation": "Modified to resolve an error."
}
POST /modification/executeAsync
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "tenantId": "aTenantId"
}
Queries for process definitions that fulfill given parameters. Parameters may be the properties of process definitions, such as the name, key or version. The size of the result set can be retrieved by using the Get Definition Count method.
processDefinitionId | string Filter by process definition id. |
processDefinitionIdIn | string Filter by a comma-separated list of process definition ids. |
name | string Filter by process definition name. |
nameLike | string Filter by process definition names that the parameter is a substring of. |
deploymentId | string Filter by the deployment the id belongs to. |
deployedAfter | string <date-time> Filter by the deploy time of the deployment the process definition belongs to.
Only selects process definitions that have been deployed after (exclusive) a specific time.
By default, the date must have the
format |
deployedAt | string <date-time> Filter by the deploy time of the deployment the process definition belongs to.
Only selects process definitions that have been deployed at a specific time (exact match).
By default, the date must have the
format |
key | string Filter by process definition key, i.e., the id in the BPMN 2.0 XML. Exact match. |
keysIn | string Filter by a comma-separated list of process definition keys. |
keyLike | string Filter by process definition keys that the parameter is a substring of. |
category | string Filter by process definition category. Exact match. |
categoryLike | string Filter by process definition categories that the parameter is a substring of. |
version | integer <int32> Filter by process definition version. |
latestVersion | boolean Only include those process definitions that are latest versions.
Value may only be |
resourceName | string Filter by the name of the process definition resource. Exact match. |
resourceNameLike | string Filter by names of those process definition resources that the parameter is a substring of. |
startableBy | string Filter by a user name who is allowed to start the process. |
active | boolean Only include active process definitions.
Value may only be |
suspended | boolean Only include suspended process definitions.
Value may only be |
incidentId | string Filter by the incident id. |
incidentType | string Filter by the incident type. See the User Guide for a list of incident types. |
incidentMessage | string Filter by the incident message. Exact match. |
incidentMessageLike | string Filter by the incident message that the parameter is a substring of. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A process definition must have one of the given tenant ids. |
withoutTenantId | boolean Only include process definitions which belong to no tenant. Value may only be true, as false is the default behavior. |
includeProcessDefinitionsWithoutTenantId | boolean Include process definitions which belong to no tenant. Can be used in combination with |
versionTag | string Filter by the version tag. |
versionTagLike | string Filter by the version tag that the parameter is a substring of. |
withoutVersionTag | boolean Only include process definitions without a |
startableInTasklist | boolean Filter by process definitions which are startable in Tasklist.. |
notStartableInTasklist | boolean Filter by process definitions which are not startable in Tasklist. |
startablePermissionCheck | boolean Filter by process definitions which the user is allowed to start in Tasklist. If the user doesn't have these permissions the result will be empty list. The permissions are:
|
sortBy | string Enum: "category" "key" "id" "name" "version" "deploymentId" "deployTime" "tenantId " "versionTag" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
Response of GET /process-definition?keyLike=invoice&sortBy=version&sortOrder=asc
[- {
- "id": "invoice:1:c3a63aaa-2046-11e7-8f94-34f39ab71d4e",
- "key": "invoice",
- "description": null,
- "name": "Invoice Receipt",
- "version": 1,
- "resource": "invoice.v1.bpmn",
- "deploymentId": "c398cd26-2046-11e7-8f94-34f39ab71d4e",
- "diagram": null,
- "suspended": false,
- "tenantId": null,
- "versionTag": null,
- "historyTimeToLive": 5,
- "startableInTasklist": true
}, - {
- "id": "invoice:2:c3e1bd16-2046-11e7-8f94-34f39ab71d4e",
- "key": "invoice",
- "description": null,
- "name": "Invoice Receipt",
- "version": 2,
- "resource": "invoice.v2.bpmn",
- "deploymentId": "c3d82020-2046-11e7-8f94-34f39ab71d4e",
- "diagram": null,
- "suspended": false,
- "tenantId": null,
- "versionTag": null,
- "historyTimeToLive": null,
- "startableInTasklist": true
}
]
Requests the number of process definitions that fulfill the query criteria. Takes the same filtering parameters as the Get Definitions method.
processDefinitionId | string Filter by process definition id. |
processDefinitionIdIn | string Filter by a comma-separated list of process definition ids. |
name | string Filter by process definition name. |
nameLike | string Filter by process definition names that the parameter is a substring of. |
deploymentId | string Filter by the deployment the id belongs to. |
deployedAfter | string <date-time> Filter by the deploy time of the deployment the process definition belongs to.
Only selects process definitions that have been deployed after (exclusive) a specific time.
By default, the date must have the
format |
deployedAt | string <date-time> Filter by the deploy time of the deployment the process definition belongs to.
Only selects process definitions that have been deployed at a specific time (exact match).
By default, the date must have the
format |
key | string Filter by process definition key, i.e., the id in the BPMN 2.0 XML. Exact match. |
keysIn | string Filter by a comma-separated list of process definition keys. |
keyLike | string Filter by process definition keys that the parameter is a substring of. |
category | string Filter by process definition category. Exact match. |
categoryLike | string Filter by process definition categories that the parameter is a substring of. |
version | integer <int32> Filter by process definition version. |
latestVersion | boolean Only include those process definitions that are latest versions.
Value may only be |
resourceName | string Filter by the name of the process definition resource. Exact match. |
resourceNameLike | string Filter by names of those process definition resources that the parameter is a substring of. |
startableBy | string Filter by a user name who is allowed to start the process. |
active | boolean Only include active process definitions.
Value may only be |
suspended | boolean Only include suspended process definitions.
Value may only be |
incidentId | string Filter by the incident id. |
incidentType | string Filter by the incident type. See the User Guide for a list of incident types. |
incidentMessage | string Filter by the incident message. Exact match. |
incidentMessageLike | string Filter by the incident message that the parameter is a substring of. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A process definition must have one of the given tenant ids. |
withoutTenantId | boolean Only include process definitions which belong to no tenant. Value may only be true, as false is the default behavior. |
includeProcessDefinitionsWithoutTenantId | boolean Include process definitions which belong to no tenant. Can be used in combination with |
versionTag | string Filter by the version tag. |
versionTagLike | string Filter by the version tag that the parameter is a substring of. |
withoutVersionTag | boolean Only include process definitions without a |
startableInTasklist | boolean Filter by process definitions which are startable in Tasklist.. |
notStartableInTasklist | boolean Filter by process definitions which are not startable in Tasklist. |
startablePermissionCheck | boolean Filter by process definitions which the user is allowed to start in Tasklist. If the user doesn't have these permissions the result will be empty list. The permissions are:
|
Response of GET /process-definition/count?keyLike=Key&version=47
{- "count": 1
}
Deletes process definitions by a given key which belong to no tenant id.
key required | string The key of the process definitions to be deleted. |
cascade | boolean
|
skipCustomListeners | boolean Default: false
|
skipIoMappings | boolean Default: false A boolean value to control whether input/output mappings should be executed during deletion.
|
{- "userId": "string",
- "missingAuthorizations": [
- {
- "permissionName": "string",
- "resourceName": "string",
- "resourceId": "string"
}
], - "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the latest version of the process definition which belongs to no tenant according to the ProcessDefinition
interface in the engine.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
Response of GET /process-definition/key/invoice
{- "id": "invoice:1:c3a63aaa-2046-11e7-8f94-34f39ab71d4e",
- "key": "invoice",
- "description": null,
- "name": "Invoice Receipt",
- "version": 1,
- "resource": "invoice.v1.bpmn",
- "deploymentId": "c398cd26-2046-11e7-8f94-34f39ab71d4e",
- "diagram": null,
- "suspended": false,
- "tenantId": null,
- "versionTag": null,
- "historyTimeToLive": 5,
- "startableInTasklist": true
}
Retrieves the deployed form that can be referenced from a start event. For further information please refer to User Guide.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
Resonse for GET /process-definition/key/processDefinitionKey/deployed-start-form
<form role="form" name="invoiceForm" class="form-horizontal"> <div class="form-group"> <label class="control-label col-md-4" for="creditor">Creditor</label> <div class="col-md-8"> <input cam-variable-name="creditor" cam-variable-type="String" id="creditor" class="form-control" type="text" required /> <div class="help"> (e.g. "Great Pizza for Everyone Inc.") </div> </div> </div> </form>
Retrieves the diagram for the latest version of the process definition which belongs to no tenant.
If the process definition's deployment contains an image resource with the same file name
as the process definition, the deployed image will be returned by the Get Diagram endpoint.
Example: someProcess.bpmn
and someProcess.png
.
Supported file extentions for the image are: svg
, png
, jpg
, and gif
.
key required | string The key of the process definition. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the start form variables for the latest process definition which belongs to no tenant (only if they are defined via the Generated Task Form approach). The start form variables take form data specified on the start event into account. If form fields are defined, the variable types and default values of the form fields are taken into account.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
variableNames | string A comma-separated list of variable names. Allows restricting the list of requested variables to the variable names in the list. It is best practice to restrict the list of variables to the variables actually required by the form in order to minimize fetching of data. If the query parameter is ommitted all variables are fetched. If the query parameter contains non-existent variable names, the variable names are ignored. |
deserializeValues | boolean Default: true Determines whether serializable variable values (typically variables that store custom Java objects) should be deserialized on server side (default true). If set to true, a serializable variable will be deserialized on server side and transformed to JSON using Jackson's POJO/bean property introspection feature. Note that this requires the Java classes of the variable value to be on the REST API's classpath. If set to false, a serializable variable will be returned in its serialized format. For example, a variable that is serialized as XML will be returned as a JSON string containing XML. Note: While true is the default value for reasons of backward compatibility, we recommend setting this parameter to false when developing web applications that are independent of the Java process applications deployed to the engine. |
GET /process-definition/anId/form-variables
{- "amount": {
- "type": "integer",
- "value": 5,
- "valueInfo": { }
}, - "firstName": {
- "type": "String",
- "value": "Jonny",
- "valueInfo": { }
}
}
Updates history time to live for the latest version of the process definition which belongs to no tenant.
The field is used within History cleanup.
The value of the update is mandatory by default and does not allow null
values. To enable them, please
set the feature flag enforceHistoryTimeToLive
to false
. Read more in [Configuration Properties]
(https://docs.camunda.org/manual/7.22/reference/deployment-descriptors/tags/process-engine#configuration-properties)
key required | string The key of the process definition to change history time to live. |
historyTimeToLive | integer or null <int32> >= 0 New value for historyTimeToLive field of the definition.
Can be |
{- "historyTimeToLive": 5
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the rendered form for the latest version of the process definition which belongs to no tenant. This method can be used to get the HTML rendering of a Generated Task Form.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
A /process-definition/key/anKey/rendered-form
HTML
GET response body providing the rendered (generated) form content.
<form class="form-horizontal"> <div class="control-group"> <label class="control-label">Customer ID</label> <div class="controls"> <input form-field type="string" name="customerId"></input> </div> </div> <div class="control-group"> <label class="control-label">Amount</label> <div class="controls"> <input form-field type="number" name="amount"></input> </div> </div> </form>
Instantiates a given process definition, starts the latest version of the process definition which belongs to no tenant. Process variables and business key may be supplied in the request body.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
businessKey | string or null The business key of the process instance. |
object or null | |
caseInstanceId | string or null The case instance id the process instance is to be initialized with. |
Array of objects or null (ProcessInstanceModificationInstructionDto) Optional. A JSON array of instructions that specify which activities to start the process instance at. If this property is omitted, the process instance starts at its default blank start event. | |
skipCustomListeners | boolean or null Skip execution listener invocation for activities that are started or ended as part of this request.
Note: This option is currently only respected when start instructions are submitted
via the |
skipIoMappings | boolean or null Skip execution of
input/output variable mappings
for activities that are started or ended as part of this request.
Note: This option is currently only respected when start instructions are submitted
via the |
withVariablesInReturn | boolean or null Indicates if the variables, which was used by the process instance during execution, should be returned.
Default value: |
{- "variables": {
- "aVariable": {
- "value": "aStringValue",
- "type": "String"
}, - "anotherVariable": {
- "value": true,
- "type": "Boolean"
}
}, - "businessKey": "myBusinessKey"
}
Response for starting a process instance at its default initial activity
{- "links": [
], - "id": "anId",
- "definitionId": "aProcessDefinitionId",
- "businessKey": "myBusinessKey",
- "caseInstanceId": null,
- "tenantId": null,
- "ended": false,
- "suspended": false
}
Retrieves the key of the start form for the latest version of the process definition
which belongs to no tenant.
The form key corresponds to the FormData#formKey
property in the engine.
key required | string The key of the process definition (the latest version thereof) for which the form key is to be retrieved. |
GET process-definition/key/aKey/startForm
{- "key": "aFormKey",
}
Retrieves runtime statistics of the latest version of the given process definition which belongs to no tenant, grouped by activities. These statistics include the number of running activity instances, optionally the number of failed jobs and also optionally the number of incidents either grouped by incident types or for a specific incident type. Note: This does not include historic data.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
failedJobs | boolean Whether to include the number of failed jobs in the result or not. Valid values are |
incidents | boolean Valid values for this property are |
incidentsForType | string If this property has been set with any incident type (i.e., a string value) the result
will only include the number of incidents for the assigned incident type.
Cannot be used in combination with |
Request with Query Parameter failedJobs=true
[- {
- "id": "anActivity",
- "instances": 123,
- "failedJobs": 42,
- "incidents": [ ]
}, - {
- "id": "anotherActivity",
- "instances": 124,
- "failedJobs": 43,
- "incidents": [ ]
}
]
Starts the latest version of the process definition which belongs to no tenant using a set of process variables and the business key. If the start event has Form Field Metadata defined, the process engine will perform backend validation for any form fields which have validators defined. See Documentation on Generated Task Forms.
key required | string The key of the process definition to submit the form for. |
object or null | |
businessKey | string or null The business key the process instance is to be initialized with. The business key uniquely identifies the process instance in the context of the given process definition. |
{- "variables": {
- "aVariable": {
- "value": "aStringValue",
- "type": "String"
}, - "anotherVariable": {
- "value": true,
- "type": "Boolean"
}
}, - "businessKey": "myBusinessKey"
}
POST /process-definition/key/aProcessDefinitionKey/submit-form
{- "links": [
], - "id": "anId",
- "definitionId": "aProcessDefinitionId",
- "businessKey": "myBusinessKey",
- "caseInstanceId": null,
- "tenantId": null,
- "ended": false,
- "suspended": false
}
Activates or suspends a given process definition by latest version of process definition key which belongs to no tenant.
key required | string The key of the process definition (the latest version thereof) to be activated/suspended. |
Note: Unallowed properties are processDefinitionId
and processDefinitionKey
.
suspended | boolean or null A |
processDefinitionId | string or null The id of the process definitions to activate or suspend. |
processDefinitionKey | string or null The key of the process definitions to activate or suspend. |
includeProcessInstances | boolean or null A |
executionDate | string or null <date-time> The date on which all process definitions with the given key will be activated or suspended.
If |
{- "suspended": true,
- "includeProcessInstances": true,
- "executionDate": "2013-11-21T10:49:45T14:42:45"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Deletes process definitions by a given key and which belong to a tenant id.
key required | string The key of the process definitions to be deleted. |
tenant-id required | string The id of the tenant the process definitions belong to. |
cascade | boolean
|
skipCustomListeners | boolean Default: false
|
skipIoMappings | boolean Default: false A boolean value to control whether input/output mappings should be executed during deletion.
|
{- "userId": "string",
- "missingAuthorizations": [
- {
- "permissionName": "string",
- "resourceName": "string",
- "resourceId": "string"
}
], - "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the latest version of the process definition for tenant according to
the ProcessDefinition
interface in the engine.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
tenant-id required | string The id of the tenant the process definition belongs to. |
Response of GET /process-definition/key/invoice/tenant-id/tenantOne
{- "id": "invoice:1:c3a63aaa-2046-11e7-8f94-34f39ab71d4e",
- "key": "invoice",
- "description": null,
- "name": "Invoice Receipt",
- "version": 1,
- "resource": "invoice.v1.bpmn",
- "deploymentId": "c398cd26-2046-11e7-8f94-34f39ab71d4e",
- "diagram": null,
- "suspended": false,
- "tenantId": "tenantOne",
- "versionTag": null,
- "historyTimeToLive": 5,
- "startableInTasklist": true
}
Retrieves the deployed form that can be referenced from a start event. For further information please refer to User Guide.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
tenant-id required | string The id of the tenant the process definitions belong to. |
Resonse for GET
/process-definition/key/processDefinitionKey/tenant-id/tenantId/deployed-start-form
<form role="form" name="invoiceForm" class="form-horizontal"> <div class="form-group"> <label class="control-label col-md-4" for="creditor">Creditor</label> <div class="col-md-8"> <input cam-variable-name="creditor" cam-variable-type="String" id="creditor" class="form-control" type="text" required /> <div class="help"> (e.g. "Great Pizza for Everyone Inc.") </div> </div> </div> </form>
Retrieves the diagram for the latest version of the process definition for tenant.
If the process definition's deployment contains an image resource with the same file name
as the process definition, the deployed image will be returned by the Get Diagram endpoint.
Example: someProcess.bpmn
and someProcess.png
.
Supported file extentions for the image are: svg
, png
, jpg
, and gif
.
key required | string The key of the process definition. |
tenant-id required | string The id of the tenant the process definition belongs to. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the start form variables for the latest process definition for a tenant (only if they are defined via the Generated Task Form approach). The start form variables take form data specified on the start event into account. If form fields are defined, the variable types and default values of the form fields are taken into account.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
tenant-id required | string The id of the tenant the process definition belongs to. |
variableNames | string A comma-separated list of variable names. Allows restricting the list of requested variables to the variable names in the list. It is best practice to restrict the list of variables to the variables actually required by the form in order to minimize fetching of data. If the query parameter is ommitted all variables are fetched. If the query parameter contains non-existent variable names, the variable names are ignored. |
deserializeValues | boolean Default: true Determines whether serializable variable values (typically variables that store custom Java objects) should be deserialized on server side (default true). If set to true, a serializable variable will be deserialized on server side and transformed to JSON using Jackson's POJO/bean property introspection feature. Note that this requires the Java classes of the variable value to be on the REST API's classpath. If set to false, a serializable variable will be returned in its serialized format. For example, a variable that is serialized as XML will be returned as a JSON string containing XML. Note: While true is the default value for reasons of backward compatibility, we recommend setting this parameter to false when developing web applications that are independent of the Java process applications deployed to the engine. |
GET /process-definition/anId/form-variables
{- "amount": {
- "type": "integer",
- "value": 5,
- "valueInfo": { }
}, - "firstName": {
- "type": "String",
- "value": "Jonny",
- "valueInfo": { }
}
}
Updates history time to live for the latest version of the process definition for a tenant. The field is used within History cleanup.
key required | string The key of the process definition to change history time to live. |
tenant-id required | string The id of the tenant the process definition belongs to. |
historyTimeToLive | integer or null <int32> >= 0 New value for historyTimeToLive field of the definition.
Can be |
{- "historyTimeToLive": 5
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the rendered form for the latest version of the process definition for a tenant. This method can be used to get the HTML rendering of a Generated Task Form.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
tenant-id required | string The id of the tenant the process definition belongs to. |
A /process-definition/key/anKey/tenand-id/aTenantId/rendered-form
HTML
GET response body providing the rendered (generated) form content.
<form class="form-horizontal"> <div class="control-group"> <label class="control-label">Customer ID</label> <div class="controls"> <input form-field type="string" name="customerId"></input> </div> </div> <div class="control-group"> <label class="control-label">Amount</label> <div class="controls"> <input form-field type="number" name="amount"></input> </div> </div> </form>
Instantiates a given process definition, starts the latest version of the process definition for tenant. Process variables and business key may be supplied in the request body.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
tenant-id required | string The id of the tenant the process definition belongs to. |
businessKey | string or null The business key of the process instance. |
object or null | |
caseInstanceId | string or null The case instance id the process instance is to be initialized with. |
Array of objects or null (ProcessInstanceModificationInstructionDto) Optional. A JSON array of instructions that specify which activities to start the process instance at. If this property is omitted, the process instance starts at its default blank start event. | |
skipCustomListeners | boolean or null Skip execution listener invocation for activities that are started or ended as part of this request.
Note: This option is currently only respected when start instructions are submitted
via the |
skipIoMappings | boolean or null Skip execution of
input/output variable mappings
for activities that are started or ended as part of this request.
Note: This option is currently only respected when start instructions are submitted
via the |
withVariablesInReturn | boolean or null Indicates if the variables, which was used by the process instance during execution, should be returned.
Default value: |
{- "variables": {
- "aVariable": {
- "value": "aStringValue",
- "type": "String"
}, - "anotherVariable": {
- "value": true,
- "type": "Boolean"
}
}, - "businessKey": "myBusinessKey"
}
Response for starting a process instance at its default initial activity
{- "links": [
], - "id": "anId",
- "definitionId": "aProcessDefinitionId",
- "businessKey": "myBusinessKey",
- "caseInstanceId": null,
- "tenantId": null,
- "ended": false,
- "suspended": false
}
Retrieves the key of the start form for the latest version of the process definition for a tenant.
The form key corresponds to the FormData#formKey
property in the engine.
key required | string The key of the process definition (the latest version thereof) for which the form key is to be retrieved. |
tenant-id required | string The id of the tenant the process definition belongs to. |
GET process-definition/key/aKey/tenant-id/aTenantId/startForm
{- "key": "aFormKey",
}
Retrieves runtime statistics of the latest version of the given process definition for a tenant, grouped by activities. These statistics include the number of running activity instances, optionally the number of failed jobs and also optionally the number of incidents either grouped by incident types or for a specific incident type. Note: This does not include historic data.
key required | string The key of the process definition (the latest version thereof) to be retrieved. |
tenant-id required | string The id of the tenant the process definition belongs to. |
failedJobs | boolean Whether to include the number of failed jobs in the result or not. Valid values are |
incidents | boolean Valid values for this property are |
incidentsForType | string If this property has been set with any incident type (i.e., a string value) the result
will only include the number of incidents for the assigned incident type.
Cannot be used in combination with |
Request with Query Parameter failedJobs=true
[- {
- "id": "anActivity",
- "instances": 123,
- "failedJobs": 42,
- "incidents": [ ]
}, - {
- "id": "anotherActivity",
- "instances": 124,
- "failedJobs": 43,
- "incidents": [ ]
}
]
Starts the latest version of the process definition for a tenant using a set of process variables and the business key. If the start event has Form Field Metadata defined, the process engine will perform backend validation for any form fields which have validators defined. See Documentation on Generated Task Forms.
key required | string The key of the process definition to submit the form for. |
tenant-id required | string The id of the tenant the process definition belongs to. |
object or null | |
businessKey | string or null The business key the process instance is to be initialized with. The business key uniquely identifies the process instance in the context of the given process definition. |
{- "variables": {
- "aVariable": {
- "value": "aStringValue",
- "type": "String"
}, - "anotherVariable": {
- "value": true,
- "type": "Boolean"
}
}, - "businessKey": "myBusinessKey"
}
POST /process-definition/key/aProcessDefinitionKey/tenant-id/aTenantId/submit-form
{- "links": [
], - "id": "anId",
- "definitionId": "aProcessDefinitionId",
- "businessKey": "myBusinessKey",
- "caseInstanceId": null,
- "tenantId": null,
- "ended": false,
- "suspended": false
}
Activates or suspends a given process definition by the latest version of the process definition for tenant.
key required | string The key of the process definition (the latest version thereof) to be activated/suspended. |
tenant-id required | string The id of the tenant the process definition belongs to. |
Note: Unallowed properties are processDefinitionId
and processDefinitionKey
.
suspended | boolean or null A |
processDefinitionId | string or null The id of the process definitions to activate or suspend. |
processDefinitionKey | string or null The key of the process definitions to activate or suspend. |
includeProcessInstances | boolean or null A |
executionDate | string or null <date-time> The date on which all process definitions with the given key will be activated or suspended.
If |
{- "suspended": true,
- "includeProcessInstances": true,
- "executionDate": "2013-11-21T10:49:45T14:42:45"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves latest version the BPMN 2.0 XML of a process definition. Returns the XML for the latest version of the process definition for tenant.
key required | string The key of the process definition (the latest version thereof) whose XML should be retrieved. |
tenant-id required | string The id of the tenant the process definition belongs to. |
{- "id": "anProcessDefinitionId",
- "bpmn20Xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions\n xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\"\n xmlns:camunda=\"http://camunda.org/schema/1.0/bpmn\"\n targetNamespace=\"Examples\">\n <process id=\"oneTaskProcess\" isExecutable=\"true\">\n <startEvent id=\"theStart\" />\n <sequenceFlow id=\"flow1\" sourceRef=\"theStart\" targetRef=\"theEnd\" />\n <endEvent id=\"theEnd\" />\n </process>\n </definitions>"
}
Retrieves latest version the BPMN 2.0 XML of a process definition.
key required | string The key of the process definition (the latest version thereof) whose XML should be retrieved. |
{- "id": "anProcessDefinitionId",
- "bpmn20Xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions\n xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\"\n xmlns:camunda=\"http://camunda.org/schema/1.0/bpmn\"\n targetNamespace=\"Examples\">\n <process id=\"oneTaskProcess\" isExecutable=\"true\">\n <startEvent id=\"theStart\" />\n <sequenceFlow id=\"flow1\" sourceRef=\"theStart\" targetRef=\"theEnd\" />\n <endEvent id=\"theEnd\" />\n </process>\n </definitions>"
}
Retrieves runtime statistics of the process engine, grouped by process definitions. These statistics include the number of running process instances, optionally the number of failed jobs and also optionally the number of incidents either grouped by incident types or for a specific incident type. Note: This does not include historic data.
failedJobs | boolean Whether to include the number of failed jobs in the result or not. Valid values are |
incidents | boolean Valid values for this property are |
incidentsForType | string If this property has been set with any incident type (i.e., a string value) the result
will only include the number of incidents for the assigned incident type.
Cannot be used in combination with |
rootIncidents | boolean Valid values for this property are |
Request with Query Parameter failedJobs=true
[- {
- "@class": "org.camunda.bpm.engine.rest.dto.repository.ProcessDefinitionStatisticsResultDto",
- "id": "aProcessDefinitionId",
- "instances": 123,
- "failedJobs": 42,
- "definition": {
- "id": "aProcessDefinitionId",
- "key": "aKey",
- "category": null,
- "description": null,
- "name": "aName",
- "version": 0,
- "resource": null,
- "deploymentId": null,
- "diagram": null,
- "suspended": false,
- "tenantId": null,
- "versionTag": "1.0.0",
- "historyTimeToLive": null,
- "startableInTasklist": false
}, - "incidents": [ ]
}, - {
- "@class": "org.camunda.bpm.engine.rest.dto.repository.ProcessDefinitionStatisticsResultDto",
- "id": "aProcessDefinitionId:2",
- "instances": 124,
- "failedJobs": 43,
- "definition": {
- "id": "aProcessDefinitionId:2",
- "key": "aKey",
- "category": null,
- "description": null,
- "name": "aName",
- "version": 0,
- "resource": null,
- "deploymentId": null,
- "diagram": null,
- "suspended": false,
- "tenantId": null,
- "versionTag": null,
- "historyTimeToLive": null,
- "startableInTasklist": false
}, - "incidents": [ ]
}
]
Activates or suspends process definitions with the given process definition key.
Note: Unallowed property is processDefinitionId
.
suspended | boolean or null A |
processDefinitionId | string or null The id of the process definitions to activate or suspend. |
processDefinitionKey | string or null The key of the process definitions to activate or suspend. |
includeProcessInstances | boolean or null A |
executionDate | string or null <date-time> The date on which all process definitions with the given key will be activated or suspended.
If |
{- "processDefinitionKey": "aProcessDefinitionKey",
- "suspended": true,
- "includeProcessInstances": true,
- "executionDate": "2013-11-21T10:49:45T14:42:45"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Deletes a running process instance by id.
id required | string The id of the process definition to be deleted. |
cascade | boolean
|
skipCustomListeners | boolean Default: false
|
skipIoMappings | boolean Default: false A boolean value to control whether input/output mappings should be executed during deletion.
|
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a process definition according to the ProcessDefinition
interface in the engine.
id required | string The id of the process definition to be retrieved. |
Response of GET /process-definition/invoice:1:c3a63aaa-2046-11e7-8f94-34f39ab71d4e
{- "id": "invoice:1:c3a63aaa-2046-11e7-8f94-34f39ab71d4e",
- "key": "invoice",
- "description": null,
- "name": "Invoice Receipt",
- "version": 1,
- "resource": "invoice.v1.bpmn",
- "deploymentId": "c398cd26-2046-11e7-8f94-34f39ab71d4e",
- "diagram": null,
- "suspended": false,
- "tenantId": null,
- "versionTag": null,
- "historyTimeToLive": 5,
- "startableInTasklist": true
}
Retrieves the deployed form that can be referenced from a start event. For further information please refer to User Guide.
id required | string The id of the process definition to get the deployed start form for. |
Resonse for GET /process-definition/processDefinitionId/deployed-start-form
<form role="form" name="invoiceForm" class="form-horizontal"> <div class="form-group"> <label class="control-label col-md-4" for="creditor">Creditor</label> <div class="col-md-8"> <input cam-variable-name="creditor" cam-variable-type="String" id="creditor" class="form-control" type="text" required /> <div class="help"> (e.g. "Great Pizza for Everyone Inc.") </div> </div> </div> </form>
Retrieves the diagram of a process definition.
If the process definition's deployment contains an image resource with the same file name
as the process definition, the deployed image will be returned by the Get Diagram endpoint.
Example: someProcess.bpmn
and someProcess.png
.
Supported file extentions for the image are: svg
, png
, jpg
, and gif
.
id required | string The id of the process definition. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the start form variables for a process definition (only if they are defined via the Generated Task Form approach). The start form variables take form data specified on the start event into account. If form fields are defined, the variable types and default values of the form fields are taken into account.
id required | string The id of the process definition to retrieve the variables for. |
variableNames | string A comma-separated list of variable names. Allows restricting the list of requested variables to the variable names in the list. It is best practice to restrict the list of variables to the variables actually required by the form in order to minimize fetching of data. If the query parameter is ommitted all variables are fetched. If the query parameter contains non-existent variable names, the variable names are ignored. |
deserializeValues | boolean Default: true Determines whether serializable variable values (typically variables that store custom Java objects) should be deserialized on server side (default true). If set to true, a serializable variable will be deserialized on server side and transformed to JSON using Jackson's POJO/bean property introspection feature. Note that this requires the Java classes of the variable value to be on the REST API's classpath. If set to false, a serializable variable will be returned in its serialized format. For example, a variable that is serialized as XML will be returned as a JSON string containing XML. Note: While true is the default value for reasons of backward compatibility, we recommend setting this parameter to false when developing web applications that are independent of the Java process applications deployed to the engine. |
GET /process-definition/anId/form-variables
{- "amount": {
- "type": "integer",
- "value": 5,
- "valueInfo": { }
}, - "firstName": {
- "type": "String",
- "value": "Jonny",
- "valueInfo": { }
}
}
Updates history time to live for process definition.
The field is used within History cleanup.
The value of the update is mandatory by default and does not allow null
values. To enable them, please
set the feature flag enforceHistoryTimeToLive
to false
. Read more in [Configuration Properties]
(https://docs.camunda.org/manual/7.22/reference/deployment-descriptors/tags/process-engine#configuration-properties)
id required | string The id of the process definition to change history time to live. |
historyTimeToLive | integer or null <int32> >= 0 New value for historyTimeToLive field of the definition.
Can be |
{- "historyTimeToLive": 5
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the rendered form for a process definition. This method can be used to get the HTML rendering of a Generated Task Form.
id required | string The id of the process definition to get the rendered start form for. |
A /process-definition/anId/rendered-form
HTML
GET response body providing the rendered (generated) form content.
<form class="form-horizontal"> <div class="control-group"> <label class="control-label">Customer ID</label> <div class="controls"> <input form-field type="string" name="customerId"></input> </div> </div> <div class="control-group"> <label class="control-label">Amount</label> <div class="controls"> <input form-field type="number" name="amount"></input> </div> </div> </form>
Restarts process instances that were canceled or terminated synchronously. Can also restart completed process instances. It will create a new instance using the original instance information. To execute the restart asynchronously, use the Restart Process Instance Async method.
For more information about the difference between synchronous and asynchronous execution, please refer to the related section of the User Guide.
id required | string The id of the process definition of the process instances to restart. |
processInstanceIds | Array of strings or null A list of process instance ids to restart. |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
skipCustomListeners | boolean or null Skip execution listener invocation for activities that are started as part of this request. |
skipIoMappings | boolean or null Skip execution of input/output variable mappings for activities that are started as part of this request. |
initialVariables | boolean or null Set the initial set of variables during restart. By default, the last set of variables is used. |
withoutBusinessKey | boolean or null Do not take over the business key of the historic process instance. |
Array of objects or null (RestartProcessInstanceModificationInstructionDto) Optional. A JSON array of instructions that specify which activities to start the process instance at. If this property is omitted, the process instance starts at its default blank start event. |
{- "instructions": [
- {
- "type": "startAfterActivity",
- "activityId": "aUserTask"
}
], - "processInstanceIds": [
- "aProcessInstance",
- "anotherProcessInstance"
], - "initialVariables": true,
- "skipCustomListeners": true,
- "withoutBusinessKey": true
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Restarts process instances that were canceled or terminated asynchronously. Can also restart completed process instances. It will create a new instance using the original instance information. To execute the restart asynchronously, use the Restart Process Instance method.
For more information about the difference between synchronous and asynchronous execution, please refer to the related section of the User Guide.
id required | string The id of the process definition of the process instances to restart. |
processInstanceIds | Array of strings or null A list of process instance ids to restart. |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
skipCustomListeners | boolean or null Skip execution listener invocation for activities that are started as part of this request. |
skipIoMappings | boolean or null Skip execution of input/output variable mappings for activities that are started as part of this request. |
initialVariables | boolean or null Set the initial set of variables during restart. By default, the last set of variables is used. |
withoutBusinessKey | boolean or null Do not take over the business key of the historic process instance. |
Array of objects or null (RestartProcessInstanceModificationInstructionDto) Optional. A JSON array of instructions that specify which activities to start the process instance at. If this property is omitted, the process instance starts at its default blank start event. |
{- "instructions": [
- {
- "type": "startAfterActivity",
- "activityId": "aUserTask"
}
], - "processInstanceIds": [
- "aProcessInstance",
- "anotherProcessInstance"
], - "initialVariables": true,
- "skipCustomListeners": true,
- "withoutBusinessKey": true
}
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "jobsCreated": 10,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "tenantId": "aTenantId",
- "suspended": false,
- "createUserId": "demo"
}
Instantiates a given process definition. Process variables and business key may be supplied in the request body.
id required | string The id of the process definition to be retrieved. |
businessKey | string or null The business key of the process instance. |
object or null | |
caseInstanceId | string or null The case instance id the process instance is to be initialized with. |
Array of objects or null (ProcessInstanceModificationInstructionDto) Optional. A JSON array of instructions that specify which activities to start the process instance at. If this property is omitted, the process instance starts at its default blank start event. | |
skipCustomListeners | boolean or null Skip execution listener invocation for activities that are started or ended as part of this request.
Note: This option is currently only respected when start instructions are submitted
via the |
skipIoMappings | boolean or null Skip execution of
input/output variable mappings
for activities that are started or ended as part of this request.
Note: This option is currently only respected when start instructions are submitted
via the |
withVariablesInReturn | boolean or null Indicates if the variables, which was used by the process instance during execution, should be returned.
Default value: |
{- "variables": {
- "aVariable": {
- "value": "aStringValue",
- "type": "String"
}, - "anotherVariable": {
- "value": true,
- "type": "Boolean"
}
}, - "businessKey": "myBusinessKey"
}
Response for starting a process instance at its default initial activity
{- "links": [
], - "id": "anId",
- "definitionId": "aProcessDefinitionId",
- "businessKey": "myBusinessKey",
- "caseInstanceId": null,
- "tenantId": null,
- "ended": false,
- "suspended": false
}
Retrieves the key of the start form for a process definition.
The form key corresponds to the FormData#formKey
property in the engine.
id required | string The id of the process definition to get the start form key for. |
GET process-definition/anId/startForm
{- "key": "aFormKey",
}
For the given process, returns a list of called process definitions corresponding
to
the CalledProcessDefinition
interface in the engine. The list
contains all process definitions
that are referenced statically by call activities in the given
process. This endpoint does not
resolve process definitions that are referenced with expressions. Each
called process definition
contains a list of call activity ids, which specifies the call
activities that are calling that
process. This endpoint does not resolve references to case
definitions.
id required | string The id of the process definition. |
GET /process-definition/aProcessDefinitionId/static-called-process-definitions
[- {
- "id": "ACalledProcess:1:1bbd4e83-f8f1-11eb-9344",
- "key": "ACalledProcess",
- "description": null,
- "name": "ACalledProcess",
- "version": 1,
- "resource": "called-process.bpmn",
- "deploymentId": "1baa3baf-f8f1-11eb-9344-0e0bbdd53e42",
- "diagram": null,
- "suspended": false,
- "tenantId": null,
- "versionTag": null,
- "historyTimeToLive": null,
- "calledFromActivityIds": [
- "aCallActivityId"
], - "callingProcessDefinitionId": "aProcessDefinitionId",
- "startableInTasklist": true
}, - {
- "id": "AnotherCalledProcess:2:1bc2f3d5-f8f1-11eb-9344",
- "key": "AnotherCalledProcess",
- "description": null,
- "name": "AnotherCalledProcess",
- "version": 2,
- "resource": "another-called-process.bpmn",
- "deploymentId": "1baa3baf-f8f1-11eb-9344-0e0bbdd53e42",
- "diagram": null,
- "suspended": false,
- "tenantId": null,
- "versionTag": null,
- "historyTimeToLive": null,
- "calledFromActivityIds": [
- "aSecondCallActivityId",
- "aThirdCallActivityId"
], - "callingProcessDefinitionId": "aProcessDefinitionId",
- "startableInTasklist": true
}
]
Retrieves runtime statistics of a given process definition, grouped by activities. These statistics include the number of running activity instances, optionally the number of failed jobs and also optionally the number of incidents either grouped by incident types or for a specific incident type. Note: This does not include historic data.
id required | string The id of the process definition. |
failedJobs | boolean Whether to include the number of failed jobs in the result or not. Valid values are |
incidents | boolean Valid values for this property are |
incidentsForType | string If this property has been set with any incident type (i.e., a string value) the result
will only include the number of incidents for the assigned incident type.
Cannot be used in combination with |
Request with Query Parameter failedJobs=true
[- {
- "@class": "org.camunda.bpm.engine.rest.dto.repository.ActivityStatisticsResultDto",
- "id": "anActivity",
- "instances": 123,
- "failedJobs": 42,
- "incidents": [ ]
}, - {
- "@class": "org.camunda.bpm.engine.rest.dto.repository.ActivityStatisticsResultDto",
- "id": "anotherActivity",
- "instances": 124,
- "failedJobs": 43,
- "incidents": [ ]
}
]
Starts a process instance using a set of process variables and the business key. If the start event has Form Field Metadata defined, the process engine will perform backend validation for any form fields which have validators defined. See Documentation on Generated Task Forms.
id required | string The id of the process definition to submit the form for. |
object or null | |
businessKey | string or null The business key the process instance is to be initialized with. The business key uniquely identifies the process instance in the context of the given process definition. |
{- "variables": {
- "aVariable": {
- "value": "aStringValue",
- "type": "String"
}, - "anotherVariable": {
- "value": true,
- "type": "Boolean"
}
}, - "businessKey": "myBusinessKey"
}
POST /process-definition/aProcessDefinitionId/submit-form
{- "links": [
], - "id": "anId",
- "definitionId": "aProcessDefinitionId",
- "businessKey": "myBusinessKey",
- "caseInstanceId": null,
- "tenantId": null,
- "ended": false,
- "suspended": false
}
Activates or suspends a given process definition by id.
id required | string The id of the process definition to activate or suspend. |
Note: Unallowed properties are processDefinitionId
and processDefinitionKey
.
suspended | boolean or null A |
processDefinitionId | string or null The id of the process definitions to activate or suspend. |
processDefinitionKey | string or null The key of the process definitions to activate or suspend. |
includeProcessInstances | boolean or null A |
executionDate | string or null <date-time> The date on which all process definitions with the given key will be activated or suspended.
If |
{- "suspended": true,
- "includeProcessInstances": true,
- "executionDate": "2013-11-21T10:49:45T14:42:45"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the BPMN 2.0 XML of a process definition.
id required | string The id of the process definition. |
{- "id": "anProcessDefinitionId",
- "bpmn20Xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions\n xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\"\n xmlns:camunda=\"http://camunda.org/schema/1.0/bpmn\"\n targetNamespace=\"Examples\">\n <process id=\"oneTaskProcess\" isExecutable=\"true\">\n <startEvent id=\"theStart\" />\n <sequenceFlow id=\"flow1\" sourceRef=\"theStart\" targetRef=\"theEnd\" />\n <endEvent id=\"theEnd\" />\n </process>\n </definitions>"
}
Queries for process instances that fulfill given parameters. Parameters may be static as well as dynamic runtime properties of process instances. The size of the result set can be retrieved by using the Get Instance Count method.
sortBy | string Enum: "instanceId" "definitionKey" "definitionId" "tenantId" "businessKey" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
processInstanceIds | string Filter by a comma-separated list of process instance ids. |
businessKey | string Filter by process instance business key. |
businessKeyLike | string Filter by process instance business key that the parameter is a substring of. |
caseInstanceId | string Filter by case instance id. |
processDefinitionId | string Filter by the deployment the id belongs to. |
processDefinitionKey | string Filter by the key of the process definition the instances run on. |
processDefinitionKeyIn | string Filter by a comma-separated list of process definition keys. A process instance must have one of the given process definition keys. |
processDefinitionKeyNotIn | string Exclude instances by a comma-separated list of process definition keys. A process instance must not have one of the given process definition keys. |
deploymentId | string Filter by the deployment the id belongs to. |
superProcessInstance | string Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance id. |
subProcessInstance | string Restrict query to all process instances that have the given process instance as a sub process instance. Takes a process instance id. |
superCaseInstance | string Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
subCaseInstance | string Restrict query to all process instances that have the given case instance as a sub case instance. Takes a case instance id. |
active | boolean Default: false Only include active process instances. Value may only be true, as false is the default behavior. |
suspended | boolean Default: false Only include suspended process instances. Value may only be true, as false is the default behavior. |
withIncident | boolean Default: false Filter by presence of incidents. Selects only process instances that have an incident. |
incidentId | string Filter by the incident id. |
incidentType | string Filter by the incident type. See the User Guide for a list of incident types. |
incidentMessage | string Filter by the incident message. Exact match. |
incidentMessageLike | string Filter by the incident message that the parameter is a substring of. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A process instance must have one of the given tenant ids. |
withoutTenantId | boolean Default: false Only include process instances which belong to no tenant. |
processDefinitionWithoutTenantId | boolean Default: false Only include process instances which process definition has no tenant id. |
activityIdIn | string Filter by a comma-separated list of activity ids. A process instance must currently wait in a leaf activity with one of the given activity ids. |
rootProcessInstances | boolean Default: false Restrict the query to all process instances that are top level process instances. |
leafProcessInstances | boolean Default: false Restrict the query to all process instances that are leaf instances. (i.e. don't have any sub instances). |
variables | string Only include process instances that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Note: Values are always treated as String objects on server side. Valid |
variableNamesIgnoreCase | boolean Default: false Match all variable names in this query case-insensitively. If set to true variableName and variablename are treated as equal. |
variableValuesIgnoreCase | boolean Default: false Match all variable values in this query case-insensitively. If set to true variableValue and variablevalue are treated as equal. |
Response for GET /process-instance?variables=myVariable_eq_camunda,mySecondVariable_neq_aBadValue
[- {
- "links": [ ],
- "id": "anId",
- "definitionId": "aProcDefId",
- "businessKey": "aKey",
- "caseInstanceId": "aCaseInstanceId",
- "ended": false,
- "suspended": false,
- "tenantId": null
}
]
Queries for process instances that fulfill given parameters through a JSON object.
This method is slightly more powerful than the Get Instances method because
it allows filtering by multiple process variables of types string
, number
or boolean
.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
deploymentId | string or null Filter by the deployment the id belongs to. |
processDefinitionId | string or null Filter by the process definition the instances run on. |
processDefinitionKey | string or null Filter by the key of the process definition the instances run on. |
processDefinitionKeyIn | Array of strings or null Filter by a list of process definition keys. A process instance must have one of the given process definition keys. Must be a JSON array of Strings. |
processDefinitionKeyNotIn | Array of strings or null Exclude instances by a list of process definition keys. A process instance must not have one of the given process definition keys. Must be a JSON array of Strings. |
businessKey | string or null Filter by process instance business key. |
businessKeyLike | string or null Filter by process instance business key that the parameter is a substring of. |
caseInstanceId | string or null Filter by case instance id. |
superProcessInstance | string or null Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance id. |
subProcessInstance | string or null Restrict query to all process instances that have the given process instance as a sub process instance. Takes a process instance id. |
superCaseInstance | string or null Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
subCaseInstance | string or null Restrict query to all process instances that have the given case instance as a sub case instance. Takes a case instance id. |
active | boolean or null Only include active process instances. Value may only be true, as false is the default behavior. |
suspended | boolean or null Only include suspended process instances. Value may only be true, as false is the default behavior. |
processInstanceIds | Array of strings or null Filter by a list of process instance ids. Must be a JSON array of Strings. |
withIncident | boolean or null Filter by presence of incidents. Selects only process instances that have an incident. |
incidentId | string or null Filter by the incident id. |
incidentType | string or null Filter by the incident type. See the User Guide for a list of incident types. |
incidentMessage | string or null Filter by the incident message. Exact match. |
incidentMessageLike | string or null Filter by the incident message that the parameter is a substring of. |
tenantIdIn | Array of strings or null Filter by a list of tenant ids. A process instance must have one of the given tenant ids. Must be a JSON array of Strings. |
withoutTenantId | boolean or null Only include process instances which belong to no tenant. Value may only be true, as false is the default behavior. |
processDefinitionWithoutTenantId | boolean or null Only include process instances which process definition has no tenant id. |
activityIdIn | Array of strings or null Filter by a list of activity ids. A process instance must currently wait in a leaf activity with one of the given activity ids. |
rootProcessInstances | boolean or null Restrict the query to all process instances that are top level process instances. |
leafProcessInstances | boolean or null Restrict the query to all process instances that are leaf instances. (i.e. don't have any sub instances) |
Array of objects or null (VariableQueryParameterDto) A JSON array to only include process instances that have variables with certain values.
The array consists of objects with the three properties Valid operator values are: | |
variableNamesIgnoreCase | boolean or null Match all variable names in this query case-insensitively. If set to true variableName and variablename are treated as equal. |
variableValuesIgnoreCase | boolean or null Match all variable values in this query case-insensitively. If set to true variableValue and variablevalue are treated as equal. |
orQueries | Array of objects or null (ProcessInstanceQueryDto) A JSON array of nested process instance queries with OR semantics.
A process instance matches a nested query if it fulfills at least one of the query's predicates.
With multiple nested queries, a process instance must fulfill at least one predicate of each query (Conjunctive Normal Form).
All process instance query properties can be used except for: |
Array of objects or null Apply sorting of the result |
{- "variables": [
- {
- "name": "myVariable",
- "operator": "eq",
- "value": "camunda"
}, - {
- "name": "mySecondVariable",
- "operator": "neq",
- "value": 124
}
], - "processDefinitionId": "aProcessDefinitionId",
- "sorting": [
- {
- "sortBy": "definitionKey",
- "sortOrder": "asc"
}, - {
- "sortBy": "instanceId",
- "sortOrder": "desc"
}
]
}
[- {
- "links": [ ],
- "id": "anId",
- "definitionId": "aProcessDefinitionId",
- "businessKey": "aKey",
- "caseInstanceId": "aCaseInstanceId",
- "ended": false,
- "suspended": false,
- "tenantId": null
}
]
Queries for the number of process instances that fulfill given parameters.
processInstanceIds | string Filter by a comma-separated list of process instance ids. |
businessKey | string Filter by process instance business key. |
businessKeyLike | string Filter by process instance business key that the parameter is a substring of. |
caseInstanceId | string Filter by case instance id. |
processDefinitionId | string Filter by the deployment the id belongs to. |
processDefinitionKey | string Filter by the key of the process definition the instances run on. |
processDefinitionKeyIn | string Filter by a comma-separated list of process definition keys. A process instance must have one of the given process definition keys. |
processDefinitionKeyNotIn | string Exclude instances by a comma-separated list of process definition keys. A process instance must not have one of the given process definition keys. |
deploymentId | string Filter by the deployment the id belongs to. |
superProcessInstance | string Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance id. |
subProcessInstance | string Restrict query to all process instances that have the given process instance as a sub process instance. Takes a process instance id. |
superCaseInstance | string Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
subCaseInstance | string Restrict query to all process instances that have the given case instance as a sub case instance. Takes a case instance id. |
active | boolean Default: false Only include active process instances. Value may only be true, as false is the default behavior. |
suspended | boolean Default: false Only include suspended process instances. Value may only be true, as false is the default behavior. |
withIncident | boolean Default: false Filter by presence of incidents. Selects only process instances that have an incident. |
incidentId | string Filter by the incident id. |
incidentType | string Filter by the incident type. See the User Guide for a list of incident types. |
incidentMessage | string Filter by the incident message. Exact match. |
incidentMessageLike | string Filter by the incident message that the parameter is a substring of. |
tenantIdIn | string Filter by a comma-separated list of tenant ids. A process instance must have one of the given tenant ids. |
withoutTenantId | boolean Default: false Only include process instances which belong to no tenant. |
processDefinitionWithoutTenantId | boolean Default: false Only include process instances which process definition has no tenant id. |
activityIdIn | string Filter by a comma-separated list of activity ids. A process instance must currently wait in a leaf activity with one of the given activity ids. |
rootProcessInstances | boolean Default: false Restrict the query to all process instances that are top level process instances. |
leafProcessInstances | boolean Default: false Restrict the query to all process instances that are leaf instances. (i.e. don't have any sub instances). |
variables | string Only include process instances that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Note: Values are always treated as String objects on server side. Valid |
variableNamesIgnoreCase | boolean Default: false Match all variable names in this query case-insensitively. If set to true variableName and variablename are treated as equal. |
variableValuesIgnoreCase | boolean Default: false Match all variable values in this query case-insensitively. If set to true variableValue and variablevalue are treated as equal. |
Response for GET /process-instance/count?variables=myVariable_eq_camunda
{- "count": 1
}
Queries for the number of process instances that fulfill the given parameters. This method takes the same message body as the Get Instances (POST) method and therefore it is slightly more powerful than the Get Instance Count method.
deploymentId | string or null Filter by the deployment the id belongs to. |
processDefinitionId | string or null Filter by the process definition the instances run on. |
processDefinitionKey | string or null Filter by the key of the process definition the instances run on. |
processDefinitionKeyIn | Array of strings or null Filter by a list of process definition keys. A process instance must have one of the given process definition keys. Must be a JSON array of Strings. |
processDefinitionKeyNotIn | Array of strings or null Exclude instances by a list of process definition keys. A process instance must not have one of the given process definition keys. Must be a JSON array of Strings. |
businessKey | string or null Filter by process instance business key. |
businessKeyLike | string or null Filter by process instance business key that the parameter is a substring of. |
caseInstanceId | string or null Filter by case instance id. |
superProcessInstance | string or null Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance id. |
subProcessInstance | string or null Restrict query to all process instances that have the given process instance as a sub process instance. Takes a process instance id. |
superCaseInstance | string or null Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id. |
subCaseInstance | string or null Restrict query to all process instances that have the given case instance as a sub case instance. Takes a case instance id. |
active | boolean or null Only include active process instances. Value may only be true, as false is the default behavior. |
suspended | boolean or null Only include suspended process instances. Value may only be true, as false is the default behavior. |
processInstanceIds | Array of strings or null Filter by a list of process instance ids. Must be a JSON array of Strings. |
withIncident | boolean or null Filter by presence of incidents. Selects only process instances that have an incident. |
incidentId | string or null Filter by the incident id. |
incidentType | string or null Filter by the incident type. See the User Guide for a list of incident types. |
incidentMessage | string or null Filter by the incident message. Exact match. |
incidentMessageLike | string or null Filter by the incident message that the parameter is a substring of. |
tenantIdIn | Array of strings or null Filter by a list of tenant ids. A process instance must have one of the given tenant ids. Must be a JSON array of Strings. |
withoutTenantId | boolean or null Only include process instances which belong to no tenant. Value may only be true, as false is the default behavior. |
processDefinitionWithoutTenantId | boolean or null Only include process instances which process definition has no tenant id. |
activityIdIn | Array of strings or null Filter by a list of activity ids. A process instance must currently wait in a leaf activity with one of the given activity ids. |
rootProcessInstances | boolean or null Restrict the query to all process instances that are top level process instances. |
leafProcessInstances | boolean or null Restrict the query to all process instances that are leaf instances. (i.e. don't have any sub instances) |
Array of objects or null (VariableQueryParameterDto) A JSON array to only include process instances that have variables with certain values.
The array consists of objects with the three properties Valid operator values are: | |
variableNamesIgnoreCase | boolean or null Match all variable names in this query case-insensitively. If set to true variableName and variablename are treated as equal. |
variableValuesIgnoreCase | boolean or null Match all variable values in this query case-insensitively. If set to true variableValue and variablevalue are treated as equal. |
orQueries | Array of objects or null (ProcessInstanceQueryDto) A JSON array of nested process instance queries with OR semantics.
A process instance matches a nested query if it fulfills at least one of the query's predicates.
With multiple nested queries, a process instance must fulfill at least one predicate of each query (Conjunctive Normal Form).
All process instance query properties can be used except for: |
Array of objects or null Apply sorting of the result |
{- "variables": [
- {
- "name": "myVariable",
- "operator": "eq",
- "value": "camunda"
}, - {
- "name": "mySecondVariable",
- "operator": "neq",
- "value": 124
}
], - "processDefinitionId": "aProcessDefinitionId"
}
{- "count": 1
}
Deletes multiple process instances asynchronously (batch).
Unallowed property: historicProcessInstanceQuery
processInstanceIds | Array of strings or null A list process instance ids to delete. |
deleteReason | string or null A string with delete reason. |
skipCustomListeners | boolean or null Skip execution listener invocation for activities that are started or ended as part of this request. |
skipSubprocesses | boolean or null Skip deletion of the subprocesses related to deleted processes as part of this request. |
skipIoMappings | boolean or null Skip execution of input/output variable mappings for activities that are started or ended as part of this request. |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances |
{- "deleteReason": "aReason",
- "processInstanceIds": [
- "aProcess",
- "secondProcess"
], - "skipCustomListeners": true,
- "skipSubprocesses": true,
- "skipIoMappings": false
}
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "jobsCreated": 10,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "tenantId": "aTenantId",
- "suspended": false,
- "createUserId": "demo"
}
Deletes a set of process instances asynchronously (batch) based on a historic process instance query.
Unallowed property: processInstanceQuery
processInstanceIds | Array of strings or null A list process instance ids to delete. |
deleteReason | string or null A string with delete reason. |
skipCustomListeners | boolean or null Skip execution listener invocation for activities that are started or ended as part of this request. |
skipSubprocesses | boolean or null Skip deletion of the subprocesses related to deleted processes as part of this request. |
skipIoMappings | boolean or null Skip execution of input/output variable mappings for activities that are started or ended as part of this request. |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances |
{- "deleteReason": "aReason",
- "historicProcessInstanceQuery": {
- "startedBefore": "2017-04-28T11:24:37.765+0200"
}, - "skipCustomListeners": true,
- "skipSubprocesses": true,
- "skipIoMappings": false
}
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "jobsCreated": 10,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "tenantId": "aTenantId",
- "suspended": false,
- "createUserId": "demo"
}
Create a batch to set retries of jobs associated with given processes asynchronously.
Please note that if both processInstances and processInstanceQuery are provided,
then the resulting execution will be performed on the union of these sets.
Unallowed property: historicProcessInstanceQuery
processInstances | Array of strings or null A list of process instance ids to fetch jobs, for which retries will be set. |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
jobIds | Array of strings or null A list of job ids to set retries for. |
object (JobQueryDto) A Job instance query which defines a list of Job instances | |
dueDate | string or null <date-time> The due date to set for the job. A due date indicates when this job is ready for execution. Jobs with due dates in the past will be scheduled for execution. |
retries | integer or null <int32> The number of retries to set for the resource. Must be >= 0. If this is 0, an incident is created and the task, or job, cannot be fetched, or acquired anymore unless the retries are increased again. Can not be null. |
{- "retries": 5,
- "dueDate": "2017-04-06T13:57:45.000+0200",
- "processInstances": [
- "aProcess",
- "secondProcess"
], - "processInstanceQuery": {
- "processDefinitionId": "aProcessDefinitionId"
}
}
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "batchJobsPerSeed": 100,
- "jobsCreated": 10,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "suspended": false,
- "tenantId": "aTenantId",
- "createUserId": "demo"
}
Create a batch to set retries of jobs asynchronously based on a historic process instance query.
Please note that if both processInstances and historicProcessInstanceQuery are provided,
then the resulting execution will be performed on the union of these sets.
Unallowed property: processInstanceQuery
processInstances | Array of strings or null A list of process instance ids to fetch jobs, for which retries will be set. |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
jobIds | Array of strings or null A list of job ids to set retries for. |
object (JobQueryDto) A Job instance query which defines a list of Job instances | |
dueDate | string or null <date-time> The due date to set for the job. A due date indicates when this job is ready for execution. Jobs with due dates in the past will be scheduled for execution. |
retries | integer or null <int32> The number of retries to set for the resource. Must be >= 0. If this is 0, an incident is created and the task, or job, cannot be fetched, or acquired anymore unless the retries are increased again. Can not be null. |
{- "retries": 5,
- "dueDate": "2017-04-06T13:57:45.000+0200",
- "historicProcessInstanceQuery": {
- "startedBefore": "2017-04-28T11:24:37.769+0200"
}, - "processInstances": [
- "aProcess",
- "secondProcess"
]
}
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "jobsCreated": 10,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "tenantId": "aTenantId",
- "suspended": false,
- "createUserId": "demo"
}
Correlates a message asynchronously to executions that are waiting for this message. Messages will not be correlated to process definition-level start message events to start process instances.
messageName | string or null The name of the message to correlate. Corresponds to the 'name' element of the message defined in BPMN 2.0 XML. Can be null to correlate by other criteria only. |
processInstanceIds | Array of strings or null A list of process instance ids that define a group of process instances to which the operation will correlate a message. Please note that if |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
object or null All variables the operation will set in the root scope of the process instances the message is correlated to. |
Correlate a message to process instances in a batch
{- "messageName": "a-message-name",
- "processInstanceIds": [
- "b4d2ad98-7240-11e9-98b7-be5e0f7575b7"
], - "processInstanceQuery": {
- "processDefinitionKey": "my-process-definition-key"
}, - "variables": {
- "myVariableName": {
- "value": "myStringValue"
}
}
}
{- "id": "120b568d-724a-11e9-98b7-be5e0f7575b7",
- "type": "correlate-message",
- "totalJobs": 12,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "120b5690-724a-11e9-98b7-be5e0f7575b7",
- "monitorJobDefinitionId": "120b568f-724a-11e9-98b7-be5e0f7575b7",
- "batchJobDefinitionId": "120b568e-724a-11e9-98b7-be5e0f7575b7",
- "tenantId": "accounting",
- "suspended": false,
- "createUserId": null
}
Activates or suspends process instances by providing certain criteria:
suspend
processDefinitionId
suspend
processDefinitionKey
processDefinitionTenantId
processDefinitionWithoutTenantId
suspend
processInstanceIds
processInstanceQuery
historicProcessInstanceQuery
processDefinitionId | string or null The process definition id of the process instances to activate or suspend. Note: This parameter can be used only with combination of |
processDefinitionKey | string or null The process definition key of the process instances to activate or suspend. Note: This parameter can be used only with combination of |
processDefinitionTenantId | string or null Only activate or suspend process instances of a process definition which belongs to a tenant with the given id. Note: This parameter can be used only with combination of |
processDefinitionWithoutTenantId | boolean or null Only activate or suspend process instances of a process definition which belongs to no tenant. Value may only be true, as false is the default behavior. Note: This parameter can be used only with combination of |
processInstanceIds | Array of strings or null A list of process instance ids which defines a group of process instances which will be activated or suspended by the operation. Note: This parameter can be used only with combination of |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
suspended | boolean or null A Boolean value which indicates whether to activate or suspend a given instance (e.g. process instance, job, job definition, or batch). When the value is set to true, the given instance will be suspended and when the value is set to false, the given instance will be activated. |
Suspend Process Instance By Process Definition Id
{- "processDefinitionId": "aProcDefId",
- "suspended": true
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Activates or suspends process instances asynchronously with a list of process instance ids, a process instance query, and/or a historical process instance query.
processInstanceIds | Array of strings or null A list of process instance ids which defines a group of process instances which will be activated or suspended by the operation. |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
suspended | boolean or null A Boolean value which indicates whether to activate or suspend a given instance (e.g. process instance, job, job definition, or batch). When the value is set to true, the given instance will be suspended and when the value is set to false, the given instance will be activated. |
Suspend Process Instance In Batch
{- "processInstanceIds": [
- "processInstanceId1",
- "processInstanceIdN"
], - "suspended": true
}
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "jobsCreated": 10,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "tenantId": "aTenantId",
- "suspended": false,
- "createUserId": "demo"
}
Update or create runtime process variables in the root scope of process instances.
processInstanceIds | Array of strings or null A list of process instance ids that define a group of process instances to which the operation will set variables. Please note that if |
object (ProcessInstanceQueryDto) A process instance query which defines a group of process instances | |
object (HistoricProcessInstanceQueryDto) A historic process instance query which defines a group of historic process instances | |
object or null A variables the operation will set in the root scope of the process instances. |
Set variables to process instances in a batch
{- "processInstanceIds": [
- "b4d2ad98-7240-11e9-98b7-be5e0f7575b7"
], - "processInstanceQuery": {
- "processDefinitionKey": "my-process-definition-key"
}, - "variables": {
- "myVariableName": {
- "value": "myStringValue"
}
}
}
{- "id": "120b568d-724a-11e9-98b7-be5e0f7575b7",
- "type": "set-variables",
- "totalJobs": 12,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "120b5690-724a-11e9-98b7-be5e0f7575b7",
- "monitorJobDefinitionId": "120b568f-724a-11e9-98b7-be5e0f7575b7",
- "batchJobDefinitionId": "120b568e-724a-11e9-98b7-be5e0f7575b7",
- "tenantId": "accounting",
- "suspended": false,
- "createUserId": null
}
Deletes a running process instance by id.
id required | string The id of the process instance to be deleted. |
skipCustomListeners | boolean Default: false If set to true, the custom listeners will be skipped. |
skipIoMappings | boolean Default: false If set to true, the input/output mappings will be skipped. |
skipSubprocesses | boolean Default: false If set to true, subprocesses related to deleted processes will be skipped. |
failIfNotExists | boolean Default: true If set to false, the request will still be successful if the process id is not found. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a process instance by id, according to the ProcessInstance
interface in the engine.
id required | string The id of the process instance to be retrieved. |
{- "id": "aProcessInstanceId",
- "definitionId": "aProcDefId",
- "businessKey": "aKey",
- "caseInstanceId": "aCaseInstanceId",
- "ended": false,
- "suspended": false,
- "tenantId": null
}
Retrieves an Activity Instance (Tree) for a given process instance by id.
id required | string The id of the process instance for which the activity instance should be retrieved. |
{- "id": "eca75c6b-f70c-11e9-8777-e4a7a094a9d6",
- "parentActivityInstanceId": null,
- "activityId": "invoice:2:e9d77375-f70c-11e9-8777-e4a7a094a9d6",
- "activityType": "processDefinition",
- "processInstanceId": "eca75c6b-f70c-11e9-8777-e4a7a094a9d6",
- "processDefinitionId": "invoice:2:e9d77375-f70c-11e9-8777-e4a7a094a9d6",
- "childActivityInstances": [
- {
- "id": "approveInvoice:eca89509-f70c-11e9-8777-e4a7a094a9d6",
- "parentActivityInstanceId": "eca75c6b-f70c-11e9-8777-e4a7a094a9d6",
- "activityId": "approveInvoice",
- "activityType": "userTask",
- "processInstanceId": "eca75c6b-f70c-11e9-8777-e4a7a094a9d6",
- "processDefinitionId": "invoice:2:e9d77375-f70c-11e9-8777-e4a7a094a9d6",
- "childActivityInstances": [ ],
- "childTransitionInstances": [ ],
- "executionIds": [
- "eca75c6b-f70c-11e9-8777-e4a7a094a9d6"
], - "activityName": "Approve Invoice",
- "incidentIds": [
- "648d7e21-f71c-11e9-a725-e4a7a094a9d6"
], - "incidents": [
- {
- "id": "648d7e21-f71c-11e9-a725-e4a7a094a9d6",
- "activityId": "AttachedTimerBoundaryEvent"
}
], - "name": "Approve Invoice"
}
], - "childTransitionInstances": [ ],
- "executionIds": [
- "eca75c6b-f70c-11e9-8777-e4a7a094a9d6"
], - "activityName": "Invoice Receipt",
- "incidentIds": null,
- "incidents": null,
- "name": "Invoice Receipt"
}
Gets the comments for a process instance by id.
id required | string The id of the process instance to retrieve the comments for. |
[- {
- "id": "commentId",
- "userId": "userId",
- "taskId": "aTaskId",
- "processInstanceId": "aProcessInstanceId",
- "time": "2013-01-02T21:37:03.764+0200",
- "message": "message",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}, - {
- "id": "anotherCommentId",
- "userId": "anotherUserId",
- "taskId": "aTaskId",
- "processInstanceId": "aProcessInstanceId",
- "time": "2013-02-23T20:37:43.975+0200",
- "message": "anotherMessage",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}, - {
- "id": "yetAnotherCommentId",
- "userId": "yetAnotherUserId",
- "taskId": "aTaskId",
- "processInstanceId": "aProcessInstanceId",
- "time": "2013-04-21T10:15:23.764+0200",
- "message": "yetAnotherMessage",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
]
Submits a list of modification instructions to change a process instance's execution state. A modification instruction is one of the following:
Instructions are executed immediately and in the order they are provided in this request's body. Variables can be provided with every starting instruction.
The exact semantics of modification can be read about in the User guide.
id required | string The id of the process instance to modify. |
skipCustomListeners | boolean or null Skip execution listener invocation for activities that are started or ended as part of this request. |
skipIoMappings | boolean or null Skip execution of input/output variable mappings for activities that are started or ended as part of this request. |
Array of objects or null (ProcessInstanceModificationInstructionDto) JSON array of modification instructions. The instructions are executed in the order they are in. | |
annotation | string or null An arbitrary text annotation set by a user for auditing reasons. |
{- "skipCustomListeners": true,
- "skipIoMappings": true,
- "instructions": [
- {
- "type": "startBeforeActivity",
- "activityId": "activityId",
- "variables": {
- "var": {
- "value": "aVariableValue",
- "local": false,
- "type": "String"
}, - "varLocal": {
- "value": "anotherVariableValue",
- "local": true,
- "type": "String"
}
}
}, - {
- "type": "cancel",
- "activityInstanceId": "anActivityInstanceId"
}
], - "annotation": "Modified to resolve an error."
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Submits a list of modification instructions to change a process instance's execution state async. A modification instruction is one of the following:
Instructions are executed asynchronous and in the order they are provided in this request's body. Variables can be provided with every starting instruction.
The exact semantics of modification can be read about in the User guide.
id required | string The id of the process instance to modify. |
skipCustomListeners | boolean or null Skip execution listener invocation for activities that are started or ended as part of this request. |
skipIoMappings | boolean or null Skip execution of input/output variable mappings for activities that are started or ended as part of this request. |
Array of objects or null (ProcessInstanceModificationInstructionDto) JSON array of modification instructions. The instructions are executed in the order they are in. | |
annotation | string or null An arbitrary text annotation set by a user for auditing reasons. |
{- "skipCustomListeners": true,
- "skipIoMappings": true,
- "instructions": [
- {
- "type": "startBeforeActivity",
- "activityId": "activityId"
}, - {
- "type": "cancel",
- "activityInstanceId": "anActivityInstanceId"
}
], - "annotation": "Modified to resolve an error."
}
{- "id": "aBatchId",
- "type": "aBatchType",
- "totalJobs": 10,
- "jobsCreated": 10,
- "batchJobsPerSeed": 100,
- "invocationsPerBatchJob": 1,
- "seedJobDefinitionId": "aSeedJobDefinitionId",
- "monitorJobDefinitionId": "aMonitorJobDefinitionId",
- "batchJobDefinitionId": "aBatchJobDefinitionId",
- "tenantId": "aTenantId",
- "suspended": false,
- "createUserId": "demo"
}
Activates or suspends a given process instance by id.
id required | string The id of the process instance to activate or suspend. |
suspended | boolean or null A Boolean value which indicates whether to activate or suspend a given instance (e.g. process instance, job, job definition, or batch). When the value is set to true, the given instance will be suspended and when the value is set to false, the given instance will be activated. |
{- "suspended": true
}
Retrieves all variables of a given process instance by id.
id required | string The id of the process instance to retrieve the variables from. |
deserializeValues | boolean Default: true Determines whether serializable variable values (typically variables that store custom Java objects) should be deserialized on server side (default true). If set to true, a serializable variable will be deserialized on server side and transformed to JSON using Jackson's POJO/bean property introspection feature. Note that this requires the Java classes of the variable value to be on the REST API's classpath. If set to false, a serializable variable will be returned in its serialized format. For example, a variable that is serialized as XML will be returned as a JSON string containing XML. Note: While true is the default value for reasons of backward compatibility, we recommend setting this parameter to false when developing web applications that are independent of the Java process applications deployed to the engine. |
{- "aVariableKey": {
- "value": {
- "prop1": "a",
- "prop2": "b"
}, - "type": "Object",
- "valueInfo": {
- "objectTypeName": "com.example.MyObject",
- "serializationDataFormat": "application/xml"
}
}
}
Updates or deletes the variables of a process instance by id. Updates precede deletions. So, if a variable is updated AND deleted, the deletion overrides the update.
id required | string The id of the process instance to set variables for. |
object or null A JSON object containing variable key-value pairs. | |
deletions | Array of strings or null An array of String keys of variables to be deleted. |
Status 204 Response: No content.
{- "modifications": {
- "aVariable": {
- "value": "aValue",
- "type": "String"
}, - "anotherVariable": {
- "value": 42,
- "type": "Integer"
}
}, - "deletions": [
- "aThirdVariable",
- "FourthVariable"
]
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a variable of a given process instance by id.
id required | string The id of the process instance to retrieve the variable for. |
varName required | string The name of the variable to retrieve. |
deserializeValue | boolean Default: true Determines whether serializable variable values (typically variables that store custom Java objects) should be deserialized on server side (default true). If set to true, a serializable variable will be deserialized on server side and transformed to JSON using Jackson's POJO/bean property introspection feature. Note that this requires the Java classes of the variable value to be on the REST API's classpath. If set to false, a serializable variable will be returned in its serialized format. For example, a variable that is serialized as XML will be returned as a JSON string containing XML. Note: While true is the default value for reasons of backward compatibility, we recommend setting this parameter to false when developing web applications that are independent of the Java process applications deployed to the engine. |
{- "value": {
- "prop1": "a",
- "prop2": "b"
}, - "type": "Object",
- "valueInfo": {
- "objectTypeName": "com.example.MyObject",
- "serializationDataFormat": "application/xml"
}
}
Sets a variable of a given process instance by id.
id required | string The id of the process instance to set the variable for. |
varName required | string The name of the variable to set. |
value | any (AnyValue) Can be any value - string, number, boolean, array or object. Note: Not every endpoint supports every type. |
type | string or null The value type of the variable. |
object A JSON object containing additional, value-type-dependent properties. For serialized variables of type Object, the following properties can be provided:
For serialized variables of type File, the following properties can be provided:
The following property can be provided for all value types:
|
Status 204. No content.
{- "value": "someValue",
- "type": "String"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the content of a Process Variable by the Process Instance id and the Process Variable name. Applicable for byte array or file Process Variables.
id required | string The id of the process instance to retrieve the variable for. |
varName required | string The name of the variable to retrieve. |
Content-Type: application/octet-stream
Sets the serialized value for a binary variable or the binary value for a file variable.
id required | string The id of the process instance to retrieve the variable for. |
varName required | string The name of the variable to retrieve. |
For binary variables a multipart form submit with the following parts:
data | string or null <binary> The binary data to be set. For File variables, this multipart can contain the filename, binary value and MIME type of the file variable to be set Only the filename is mandatory. |
valueType | string or null Enum: "Bytes" "File" The name of the variable type. Either Bytes for a byte array variable or File for a file variable. |
Post binary content of a byte array variable.
``` ------------------------------354ddb6baeff Content-Disposition: form-data; name="data"; filename="image.png" Content-Type: application/octet-stream Content-Transfer-Encoding: binary <<Byte Stream ommitted>> ------------------------------354ddb6baeff Content-Disposition: form-data; name="valueType" Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Bytes ------------------------------1e838f8f632a-- ```
{- "type": "string",
- "message": "string",
- "code": 0
}
A signal is an event of global scope (broadcast semantics) and is delivered to all
active handlers. Internally this maps to the engine's signal event received builder
method RuntimeService#createSignalEvent()
. For more information about the signal
behavior, see the Signal Events
section of the BPMN 2.0 Implementation Reference.
name | string The name of the signal to deliver. Note: This property is mandatory. |
executionId | string or null Optionally specifies a single execution which is notified by the signal. Note: If no execution id is defined the signal is broadcasted to all subscribed handlers. |
object or null A JSON object containing variable key-value pairs. Each key is a variable name and each value a JSON variable value object. | |
tenantId | string or null Specifies a tenant to deliver the signal. The signal can only be received on executions or process definitions which belongs to the given tenant. Note: Cannot be used in combination with executionId. |
withoutTenantId | boolean or null If true the signal can only be received on executions or process definitions which belongs to no tenant. Value may not be false as this is the default behavior. Note: Cannot be used in combination with |
The content of the Request Body
{- "name": "policy_conditions_changed",
- "variables": {
- "newTimePeriodInMonth": {
- "value": 24
}
}
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Queries for schema log entries that fulfill given parameters.
version | string Only return schema log entries with a specific version. |
sortBy | string Value: "timestamp" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
The Response content of a status 200
[- {
- "id": "0",
- "version": "7.11.0",
- "timestamp": "2019-05-13T09:07:11.751+0200"
}, - {
- "id": "1",
- "version": "7.11.1",
- "timestamp": "2019-06-1T17:22:05.123+0200"
}
]
Queries for schema log entries that fulfill given parameters.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
version | string or null The version of the schema. |
Array of objects or null A JSON array of criteria to sort the result by. Each element of the array is a JSON object that specifies one ordering. The position in the array identifies the rank of an ordering, i.e., whether it is primary, secondary, etc. |
The content of the Request Body
{- "version": "7.11.0",
- "sortBy": "timestamp",
- "sortOrder": "asc"
}
The Response content of a status 200
[- {
- "id": "0",
- "version": "7.11.0",
- "timestamp": "2019-05-13T09:07:11.751+0200"
}
]
Queries for tasks that fulfill a given filter. The size of the result set can be retrieved by using the Get Task Count method.
Security Consideration: There are several query parameters (such as assigneeExpression) for specifying an EL expression. These are disabled by default to prevent remote code execution. See the section on security considerations for custom code in the user guide for details.
taskId | string Restrict to task with the given id. |
taskIdIn | string Restrict to tasks with any of the given ids. |
processInstanceId | string Restrict to tasks that belong to process instances with the given id. |
processInstanceIdIn | string Restrict to tasks that belong to process instances with the given ids. |
processInstanceBusinessKey | string Restrict to tasks that belong to process instances with the given business key. |
processInstanceBusinessKeyExpression | string Restrict to tasks that belong to process instances with the given business key which is described by an expression. See the user guide for more information on available functions. |
processInstanceBusinessKeyIn | string Restrict to tasks that belong to process instances with one of the give business keys. The keys need to be in a comma-separated list. |
processInstanceBusinessKeyLike | string Restrict to tasks that have a process instance business key that has the parameter value as a substring. |
processInstanceBusinessKeyLikeExpression | string Restrict to tasks that have a process instance business key that has the parameter value as a substring and is described by an expression. See the user guide for more information on available functions. |
processDefinitionId | string Restrict to tasks that belong to a process definition with the given id. |
processDefinitionKey | string Restrict to tasks that belong to a process definition with the given key. |
processDefinitionKeyIn | string Restrict to tasks that belong to a process definition with one of the given keys. The keys need to be in a comma-separated list. |
processDefinitionName | string Restrict to tasks that belong to a process definition with the given name. |
processDefinitionNameLike | string Restrict to tasks that have a process definition name that has the parameter value as a substring. |
executionId | string Restrict to tasks that belong to an execution with the given id. |
caseInstanceId | string Restrict to tasks that belong to case instances with the given id. |
caseInstanceBusinessKey | string Restrict to tasks that belong to case instances with the given business key. |
caseInstanceBusinessKeyLike | string Restrict to tasks that have a case instance business key that has the parameter value as a substring. |
caseDefinitionId | string Restrict to tasks that belong to a case definition with the given id. |
caseDefinitionKey | string Restrict to tasks that belong to a case definition with the given key. |
caseDefinitionName | string Restrict to tasks that belong to a case definition with the given name. |
caseDefinitionNameLike | string Restrict to tasks that have a case definition name that has the parameter value as a substring. |
caseExecutionId | string Restrict to tasks that belong to a case execution with the given id. |
activityInstanceIdIn | string Only include tasks which belong to one of the passed and comma-separated activity instance ids. |
tenantIdIn | string Only include tasks which belong to one of the passed and comma-separated tenant ids. |
withoutTenantId | boolean Default: false Only include tasks which belong to no tenant. Value may only be |
assignee | string Restrict to tasks that the given user is assigned to. |
assigneeExpression | string Restrict to tasks that the user described by the given expression is assigned to. See the user guide for more information on available functions. |
assigneeLike | string Restrict to tasks that have an assignee that has the parameter value as a substring. |
assigneeLikeExpression | string Restrict to tasks that have an assignee that has the parameter value described by the given expression as a substring. See the user guide for more information on available functions. |
assigneeIn | string Only include tasks which are assigned to one of the passed and comma-separated user ids. |
assigneeNotIn | string Only include tasks which are not assigned to one of the passed and comma-separated user ids. |
owner | string Restrict to tasks that the given user owns. |
ownerExpression | string Restrict to tasks that the user described by the given expression owns. See the user guide for more information on available functions. |
candidateGroup | string Only include tasks that are offered to the given group. |
candidateGroupLike | string Only include tasks that are offered to groups that have the parameter value as a substring. |
candidateGroupExpression | string Only include tasks that are offered to the group described by the given expression. See the user guide for more information on available functions. |
candidateUser | string Only include tasks that are offered to the given user or to one of his groups. |
candidateUserExpression | string Only include tasks that are offered to the user described by the given expression. See the user guide for more information on available functions. |
includeAssignedTasks | boolean Default: false Also include tasks that are assigned to users in candidate queries. Default is to only include tasks that are not assigned to any user if you query by candidate user or group(s). |
involvedUser | string Only include tasks that the given user is involved in. A user is involved in a task if an identity link exists between task and user (e.g., the user is the assignee). |
involvedUserExpression | string Only include tasks that the user described by the given expression is involved in. A user is involved in a task if an identity link exists between task and user (e.g., the user is the assignee). See the user guide for more information on available functions. |
assigned | boolean Default: false If set to |
unassigned | boolean Default: false If set to |
taskDefinitionKey | string Restrict to tasks that have the given key. |
taskDefinitionKeyIn | string Restrict to tasks that have one of the given keys. The keys need to be in a comma-separated list. |
taskDefinitionKeyLike | string Restrict to tasks that have a key that has the parameter value as a substring. |
name | string Restrict to tasks that have the given name. |
nameNotEqual | string Restrict to tasks that do not have the given name. |
nameLike | string Restrict to tasks that have a name with the given parameter value as substring. |
nameNotLike | string Restrict to tasks that do not have a name with the given parameter value as substring. |
description | string Restrict to tasks that have the given description. |
descriptionLike | string Restrict to tasks that have a description that has the parameter value as a substring. |
priority | integer Restrict to tasks that have the given priority. |
maxPriority | integer Restrict to tasks that have a lower or equal priority. |
minPriority | integer Restrict to tasks that have a higher or equal priority. |
dueDate | string Restrict to tasks that are due on the given date. By
default, the date must have the
format |
dueDateExpression | string Restrict to tasks that are due on the date described by the given expression. See the
User Guide
for more information on available functions. The expression must evaluate to a
|
dueAfter | string Restrict to tasks that are due after the given date. By
default, the date must have
the format |
dueAfterExpression | string Restrict to tasks that are due after the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
dueBefore | string Restrict to tasks that are due before the given date. By
default, the date must have
the format |
dueBeforeExpression | string Restrict to tasks that are due before the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
withoutDueDate | boolean Default: false Only include tasks which have no due date. Value may only be |
followUpDate | string Restrict to tasks that have a followUp date on the given date. By
default, the date
must have the format |
followUpDateExpression | string Restrict to tasks that have a followUp date on the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpAfter | string Restrict to tasks that have a followUp date after the given date. By
default, the
date must have the format |
followUpAfterExpression | string Restrict to tasks that have a followUp date after the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpBefore | string Restrict to tasks that have a followUp date before the given date. By
default, the
date must have the format |
followUpBeforeExpression | string Restrict to tasks that have a followUp date before the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpBeforeOrNotExistent | string Restrict to tasks that have no followUp date or a followUp date before the given date.
By default, the date must have the
format |
followUpBeforeOrNotExistentExpression | string Restrict to tasks that have no followUp date or a followUp date before the date
described by the given expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdOn | string Restrict to tasks that were created on the given date. By
default, the date must have
the format |
createdOnExpression | string Restrict to tasks that were created on the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdAfter | string Restrict to tasks that were created after the given date. By
default, the date must have the
format |
createdAfterExpression | string Restrict to tasks that were created after the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdBefore | string Restrict to tasks that were created before the given date. By
default, the date must have the
format |
createdBeforeExpression | string Restrict to tasks that were created before the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
updatedAfter | string Restrict to tasks that were updated after the given date. Every action that fires
a task update event is considered as updating the task.
By default, the date must
have the format |
updatedAfterExpression | string Restrict to tasks that were updated after the date described by the given expression. Every action that fires
a task update event is considered as updating the task.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
delegationState | string Enum: "PENDING" "RESOLVED" Restrict to tasks that are in the given delegation state. Valid values are
|
candidateGroups | string Restrict to tasks that are offered to any of the given candidate groups. Takes a
comma-separated list of group names, so for example |
candidateGroupsExpression | string Restrict to tasks that are offered to any of the candidate groups described by the
given expression. See the
user guide
for more information on available functions. The expression must evaluate to
|
withCandidateGroups | boolean Default: false Only include tasks which have a candidate group. Value may only be |
withoutCandidateGroups | boolean Default: false Only include tasks which have no candidate group. Value may only be |
withCandidateUsers | boolean Default: false Only include tasks which have a candidate user. Value may only be |
withoutCandidateUsers | boolean Default: false Only include tasks which have no candidate users. Value may only be |
active | boolean Default: false Only include active tasks. Value may only be |
suspended | boolean Default: false Only include suspended tasks. Value may only be |
taskVariables | string Only include tasks that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Note: Values are always treated as String objects on server side. Valid |
processVariables | string Only include tasks that belong to process instances that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Note: Values are always treated as String objects on server side. Valid |
caseInstanceVariables | string Only include tasks that belong to case instances that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Note: Values are always treated as String objects on server side. Valid |
variableNamesIgnoreCase | boolean Default: false Match all variable names in this query case-insensitively. If set
|
variableValuesIgnoreCase | boolean Default: false Match all variable values in this query case-insensitively. If set
|
parentTaskId | string Restrict query to all tasks that are sub tasks of the given task. Takes a task id. |
withCommentAttachmentInfo | boolean Default: false Check if task has attachments and/or comments. Value may only be |
sortBy | string Enum: "instanceId" "caseInstanceId" "dueDate" "executionId" "caseExecutionId" "assignee" "created" "lastUpdated" "description" "id" "name" "nameCaseInsensitive" "priority" "processVariable" "executionVariable" "taskVariable" "caseExecutionVariable" "caseInstanceVariable" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
Response for GET /task?assignee=anAssignee&delegationState=RESOLVED&maxPriority=50
[- {
- "id": "anId",
- "name": "aName",
- "assignee": "anAssignee",
- "created": "2013-01-23T13:42:42.657+0200",
- "due": "2013-01-23T13:49:42.323+0200",
- "followUp:": "2013-01-23T13:44:42.987+0200",
- "lastUpdated:": "2013-01-23T13:44:42.987+0200",
- "delegationState": "RESOLVED",
- "description": "aDescription",
- "executionId": "anExecution",
- "owner": "anOwner",
- "parentTaskId": "aParentId",
- "priority": 42,
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "caseDefinitionId": "aCaseDefId",
- "caseInstanceId": "aCaseInstId",
- "caseExecutionId": "aCaseExecution",
- "taskDefinitionKey": "aTaskDefinitionKey",
- "suspended": false,
- "formKey": "aFormKey",
- "camundaFormRef": {
- "key": "aCamundaFormKey",
- "binding": "version",
- "version": 2
}, - "tenantId": "aTenantId",
- "taskState": "aTaskState"
}
]
Queries for tasks that fulfill a given filter. This method is slightly more powerful
than the Get Tasks method because it
allows filtering by multiple process or task variables of types String
, Number
or Boolean
. The size of the result set can be retrieved by using the
Get Task Count (POST) method.
Security Consideration:
There are several parameters (such as assigneeExpression
) for specifying an EL
expression. These are disabled by default to prevent remote code execution. See the
section on
security considerations for custom code
in the user guide for details.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
taskId | string or null Restrict to task with the given id. |
taskIdIn | Array of strings or null Restrict to tasks with any of the given ids. |
processInstanceId | string or null Restrict to tasks that belong to process instances with the given id. |
processInstanceIdIn | Array of strings or null Restrict to tasks that belong to process instances with the given ids. |
processInstanceBusinessKey | string or null Restrict to tasks that belong to process instances with the given business key. |
processInstanceBusinessKeyExpression | string or null Restrict to tasks that belong to process instances with the given business key which is described by an expression. See the user guide for more information on available functions. |
processInstanceBusinessKeyIn | Array of strings or null Restrict to tasks that belong to process instances with one of the give business keys. The keys need to be in a comma-separated list. |
processInstanceBusinessKeyLike | string or null Restrict to tasks that have a process instance business key that has the parameter value as a substring. |
processInstanceBusinessKeyLikeExpression | string or null Restrict to tasks that have a process instance business key that has the parameter value as a substring and is described by an expression. See the user guide for more information on available functions. |
processDefinitionId | string or null Restrict to tasks that belong to a process definition with the given id. |
processDefinitionKey | string or null Restrict to tasks that belong to a process definition with the given key. |
processDefinitionKeyIn | Array of strings or null Restrict to tasks that belong to a process definition with one of the given keys. The keys need to be in a comma-separated list. |
processDefinitionName | string or null Restrict to tasks that belong to a process definition with the given name. |
processDefinitionNameLike | string or null Restrict to tasks that have a process definition name that has the parameter value as a substring. |
executionId | string or null Restrict to tasks that belong to an execution with the given id. |
caseInstanceId | string or null Restrict to tasks that belong to case instances with the given id. |
caseInstanceBusinessKey | string or null Restrict to tasks that belong to case instances with the given business key. |
caseInstanceBusinessKeyLike | string or null Restrict to tasks that have a case instance business key that has the parameter value as a substring. |
caseDefinitionId | string or null Restrict to tasks that belong to a case definition with the given id. |
caseDefinitionKey | string or null Restrict to tasks that belong to a case definition with the given key. |
caseDefinitionName | string or null Restrict to tasks that belong to a case definition with the given name. |
caseDefinitionNameLike | string or null Restrict to tasks that have a case definition name that has the parameter value as a substring. |
caseExecutionId | string or null Restrict to tasks that belong to a case execution with the given id. |
activityInstanceIdIn | Array of strings or null Only include tasks which belong to one of the passed and comma-separated activity instance ids. |
tenantIdIn | Array of strings or null Only include tasks which belong to one of the passed and comma-separated tenant ids. |
withoutTenantId | boolean or null Default: false Only include tasks which belong to no tenant. Value may only be |
assignee | string or null Restrict to tasks that the given user is assigned to. |
assigneeExpression | string or null Restrict to tasks that the user described by the given expression is assigned to. See the user guide for more information on available functions. |
assigneeLike | string or null Restrict to tasks that have an assignee that has the parameter value as a substring. |
assigneeLikeExpression | string or null Restrict to tasks that have an assignee that has the parameter value described by the given expression as a substring. See the user guide for more information on available functions. |
assigneeIn | Array of strings or null Only include tasks which are assigned to one of the passed and comma-separated user ids. |
assigneeNotIn | Array of strings or null Only include tasks which are not assigned to one of the passed and comma-separated user ids. |
owner | string or null Restrict to tasks that the given user owns. |
ownerExpression | string or null Restrict to tasks that the user described by the given expression owns. See the user guide for more information on available functions. |
candidateGroup | string or null Only include tasks that are offered to the given group. |
candidateGroupLike | string or null Only include tasks that are offered to groups that have the parameter value as a substring. |
candidateGroupExpression | string or null Only include tasks that are offered to the group described by the given expression. See the user guide for more information on available functions. |
candidateUser | string or null Only include tasks that are offered to the given user or to one of his groups. |
candidateUserExpression | string or null Only include tasks that are offered to the user described by the given expression. See the user guide for more information on available functions. |
includeAssignedTasks | boolean or null Default: false Also include tasks that are assigned to users in candidate queries. Default is to only include tasks that are not assigned to any user if you query by candidate user or group(s). |
involvedUser | string or null Only include tasks that the given user is involved in. A user is involved in a task if an identity link exists between task and user (e.g., the user is the assignee). |
involvedUserExpression | string or null Only include tasks that the user described by the given expression is involved in. A user is involved in a task if an identity link exists between task and user (e.g., the user is the assignee). See the user guide for more information on available functions. |
assigned | boolean or null Default: false If set to |
unassigned | boolean or null Default: false If set to |
taskDefinitionKey | string or null Restrict to tasks that have the given key. |
taskDefinitionKeyIn | Array of strings or null Restrict to tasks that have one of the given keys. The keys need to be in a comma-separated list. |
taskDefinitionKeyLike | string or null Restrict to tasks that have a key that has the parameter value as a substring. |
name | string or null Restrict to tasks that have the given name. |
nameNotEqual | string or null Restrict to tasks that do not have the given name. |
nameLike | string or null Restrict to tasks that have a name with the given parameter value as substring. |
nameNotLike | string or null Restrict to tasks that do not have a name with the given parameter value as substring. |
description | string or null Restrict to tasks that have the given description. |
descriptionLike | string or null Restrict to tasks that have a description that has the parameter value as a substring. |
priority | integer or null <int32> Restrict to tasks that have the given priority. |
maxPriority | integer or null <int32> Restrict to tasks that have a lower or equal priority. |
minPriority | integer or null <int32> Restrict to tasks that have a higher or equal priority. |
dueDate | string or null <date-time> Restrict to tasks that are due on the given date. By
default, the date must have the format
|
dueDateExpression | string or null Restrict to tasks that are due on the date described by the given expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
dueAfter | string or null <date-time> Restrict to tasks that are due after the given date. By
default, the date must have
the format |
dueAfterExpression | string or null Restrict to tasks that are due after the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
dueBefore | string or null <date-time> Restrict to tasks that are due before the given date. By
default, the date must have
the format |
dueBeforeExpression | string or null Restrict to tasks that are due before the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
withoutDueDate | boolean or null Default: false Only include tasks which have no due date. Value may only be |
followUpDate | string or null <date-time> Restrict to tasks that have a followUp date on the given date. By
default, the date
must have the format |
followUpDateExpression | string or null Restrict to tasks that have a followUp date on the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpAfter | string or null <date-time> Restrict to tasks that have a followUp date after the given date. By
default, the date must have
the format |
followUpAfterExpression | string or null Restrict to tasks that have a followUp date after the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpBefore | string or null Restrict to tasks that have a followUp date before the given date. By
default, the date must have
the format |
followUpBeforeExpression | string or null Restrict to tasks that have a followUp date before the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpBeforeOrNotExistent | string or null <date-time> Restrict to tasks that have no followUp date or a followUp date before the given date.
By default, the date must have
the format |
followUpBeforeOrNotExistentExpression | string or null Restrict to tasks that have no followUp date or a followUp date before the date
described by the given expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdOn | string or null <date-time> Restrict to tasks that were created on the given date. By
default, the date must have
the format |
createdOnExpression | string or null Restrict to tasks that were created on the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdAfter | string or null <date-time> Restrict to tasks that were created after the given date. By
default, the date must
have the format |
createdAfterExpression | string or null Restrict to tasks that were created after the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdBefore | string or null <date-time> Restrict to tasks that were created before the given date. By
default, the date must
have the format |
createdBeforeExpression | string or null Restrict to tasks that were created before the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
updatedAfter | string or null <date-time> Restrict to tasks that were updated after the given date. Every action that fires
a task update event is considered as updating the task.
By default, the date must
have the format |
updatedAfterExpression | string or null Restrict to tasks that were updated after the date described by the given expression. Every action that fires
a task update event is considered as updating the task.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
delegationState | string or null Enum: "PENDING" "RESOLVED" Restrict to tasks that are in the given delegation state. Valid values are
|
candidateGroups | Array of strings or null Restrict to tasks that are offered to any of the given candidate groups. Takes a
comma-separated list of group names, so for example
|
candidateGroupsExpression | string or null Restrict to tasks that are offered to any of the candidate groups described by the
given expression. See the
user guide
for more information on available functions. The expression must evaluate to
|
withCandidateGroups | boolean or null Default: false Only include tasks which have a candidate group. Value may only be |
withoutCandidateGroups | boolean or null Default: false Only include tasks which have no candidate group. Value may only be |
withCandidateUsers | boolean or null Default: false Only include tasks which have a candidate user. Value may only be |
withoutCandidateUsers | boolean or null Default: false Only include tasks which have no candidate users. Value may only be |
active | boolean or null Default: false Only include active tasks. Value may only be |
suspended | boolean or null Default: false Only include suspended tasks. Value may only be |
Array of objects or null (VariableQueryParameterDto) A JSON array to only include tasks that have variables with certain values. The
array consists of JSON objects with three properties Valid | |
Array of objects or null (VariableQueryParameterDto) A JSON array to only include tasks that belong to a process instance with variables
with certain values. The array consists of JSON objects with three properties
Valid | |
Array of objects or null (VariableQueryParameterDto) A JSON array to only include tasks that belong to a case instance with variables
with certain values. The array consists of JSON objects with three properties
Valid | |
variableNamesIgnoreCase | boolean or null Default: false Match all variable names in this query case-insensitively. If set
|
variableValuesIgnoreCase | boolean or null Default: false Match all variable values in this query case-insensitively. If set
|
parentTaskId | string or null Restrict query to all tasks that are sub tasks of the given task. Takes a task id. |
orQueries | Array of objects or null (TaskQueryDto) A JSON array of nested task queries with OR semantics. A task matches a nested query if it fulfills at least one of the query's predicates. With multiple nested queries, a task must fulfill at least one predicate of each query (Conjunctive Normal Form). All task query properties can be used except for: See the User guide for more information about OR queries. |
Array of objects or null Apply sorting of the result |
{- "taskVariables": [
- {
- "name": "varName",
- "value": "varValue",
- "operator": "eq"
}, - {
- "name": "anotherVarName",
- "value": 30,
- "operator": "neq"
}
], - "processInstanceBusinessKeyIn": "aBusinessKey,anotherBusinessKey",
- "assigneeIn": "anAssignee,anotherAssignee",
- "priority": 10,
- "sorting": [
- {
- "sortBy": "dueDate",
- "sortOrder": "asc"
}, - {
- "sortBy": "processVariable",
- "sortOrder": "desc",
- "parameters": {
- "variable": "orderId",
- "type": "String"
}
}
]
}
[- {
- "id": "anId",
- "name": "aName",
- "assignee": "anAssignee",
- "created": "2013-01-23T13:42:42.453+0200",
- "due": "2013-01-23T13:49:42.342+0200",
- "followUp:": "2013-01-23T13:44:42.546+0200",
- "lastUpdated:": "2013-01-23T13:44:42.546+0200",
- "delegationState": "RESOLVED",
- "description": "aDescription",
- "executionId": "anExecution",
- "owner": "anOwner",
- "parentTaskId": "aParentId",
- "priority": 10,
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "caseDefinitionId": "aCaseDefId",
- "caseInstanceId": "aCaseInstId",
- "caseExecutionId": "aCaseExecution",
- "taskDefinitionKey": "aTaskDefinitionKey",
- "suspended": false,
- "formKey": "aFormKey",
- "camundaFormRef": {
- "key": "aCamundaFormKey",
- "binding": "version",
- "version": 2
}, - "tenantId": "aTenantId",
- "taskState": "aTaskState"
}
]
Retrieves the number of tasks that fulfill a provided filter. Corresponds to the size of the result set when using the Get Tasks method.
Security Consideration: There are several query parameters (such as assigneeExpression) for specifying an EL expression. These are disabled by default to prevent remote code execution. See the section on security considerations for custom code in the user guide for details.
taskId | string Restrict to task with the given id. |
taskIdIn | string Restrict to tasks with any of the given ids. |
processInstanceId | string Restrict to tasks that belong to process instances with the given id. |
processInstanceIdIn | string Restrict to tasks that belong to process instances with the given ids. |
processInstanceBusinessKey | string Restrict to tasks that belong to process instances with the given business key. |
processInstanceBusinessKeyExpression | string Restrict to tasks that belong to process instances with the given business key which is described by an expression. See the user guide for more information on available functions. |
processInstanceBusinessKeyIn | string Restrict to tasks that belong to process instances with one of the give business keys. The keys need to be in a comma-separated list. |
processInstanceBusinessKeyLike | string Restrict to tasks that have a process instance business key that has the parameter value as a substring. |
processInstanceBusinessKeyLikeExpression | string Restrict to tasks that have a process instance business key that has the parameter value as a substring and is described by an expression. See the user guide for more information on available functions. |
processDefinitionId | string Restrict to tasks that belong to a process definition with the given id. |
processDefinitionKey | string Restrict to tasks that belong to a process definition with the given key. |
processDefinitionKeyIn | string Restrict to tasks that belong to a process definition with one of the given keys. The keys need to be in a comma-separated list. |
processDefinitionName | string Restrict to tasks that belong to a process definition with the given name. |
processDefinitionNameLike | string Restrict to tasks that have a process definition name that has the parameter value as a substring. |
executionId | string Restrict to tasks that belong to an execution with the given id. |
caseInstanceId | string Restrict to tasks that belong to case instances with the given id. |
caseInstanceBusinessKey | string Restrict to tasks that belong to case instances with the given business key. |
caseInstanceBusinessKeyLike | string Restrict to tasks that have a case instance business key that has the parameter value as a substring. |
caseDefinitionId | string Restrict to tasks that belong to a case definition with the given id. |
caseDefinitionKey | string Restrict to tasks that belong to a case definition with the given key. |
caseDefinitionName | string Restrict to tasks that belong to a case definition with the given name. |
caseDefinitionNameLike | string Restrict to tasks that have a case definition name that has the parameter value as a substring. |
caseExecutionId | string Restrict to tasks that belong to a case execution with the given id. |
activityInstanceIdIn | string Only include tasks which belong to one of the passed and comma-separated activity instance ids. |
tenantIdIn | string Only include tasks which belong to one of the passed and comma-separated tenant ids. |
withoutTenantId | boolean Default: false Only include tasks which belong to no tenant. Value may only be |
assignee | string Restrict to tasks that the given user is assigned to. |
assigneeExpression | string Restrict to tasks that the user described by the given expression is assigned to. See the user guide for more information on available functions. |
assigneeLike | string Restrict to tasks that have an assignee that has the parameter value as a substring. |
assigneeLikeExpression | string Restrict to tasks that have an assignee that has the parameter value described by the given expression as a substring. See the user guide for more information on available functions. |
assigneeIn | string Only include tasks which are assigned to one of the passed and comma-separated user ids. |
assigneeNotIn | string Only include tasks which are not assigned to one of the passed and comma-separated user ids. |
owner | string Restrict to tasks that the given user owns. |
ownerExpression | string Restrict to tasks that the user described by the given expression owns. See the user guide for more information on available functions. |
candidateGroup | string Only include tasks that are offered to the given group. |
candidateGroupLike | string Only include tasks that are offered to groups that have the parameter value as a substring. |
candidateGroupExpression | string Only include tasks that are offered to the group described by the given expression. See the user guide for more information on available functions. |
candidateUser | string Only include tasks that are offered to the given user or to one of his groups. |
candidateUserExpression | string Only include tasks that are offered to the user described by the given expression. See the user guide for more information on available functions. |
includeAssignedTasks | boolean Default: false Also include tasks that are assigned to users in candidate queries. Default is to only include tasks that are not assigned to any user if you query by candidate user or group(s). |
involvedUser | string Only include tasks that the given user is involved in. A user is involved in a task if an identity link exists between task and user (e.g., the user is the assignee). |
involvedUserExpression | string Only include tasks that the user described by the given expression is involved in. A user is involved in a task if an identity link exists between task and user (e.g., the user is the assignee). See the user guide for more information on available functions. |
assigned | boolean Default: false If set to |
unassigned | boolean Default: false If set to |
taskDefinitionKey | string Restrict to tasks that have the given key. |
taskDefinitionKeyIn | string Restrict to tasks that have one of the given keys. The keys need to be in a comma-separated list. |
taskDefinitionKeyLike | string Restrict to tasks that have a key that has the parameter value as a substring. |
name | string Restrict to tasks that have the given name. |
nameNotEqual | string Restrict to tasks that do not have the given name. |
nameLike | string Restrict to tasks that have a name with the given parameter value as substring. |
nameNotLike | string Restrict to tasks that do not have a name with the given parameter value as substring. |
description | string Restrict to tasks that have the given description. |
descriptionLike | string Restrict to tasks that have a description that has the parameter value as a substring. |
priority | integer Restrict to tasks that have the given priority. |
maxPriority | integer Restrict to tasks that have a lower or equal priority. |
minPriority | integer Restrict to tasks that have a higher or equal priority. |
dueDate | string Restrict to tasks that are due on the given date. By
default, the date must have the
format |
dueDateExpression | string Restrict to tasks that are due on the date described by the given expression. See the
User Guide
for more information on available functions. The expression must evaluate to a
|
dueAfter | string Restrict to tasks that are due after the given date. By
default, the date must have
the format |
dueAfterExpression | string Restrict to tasks that are due after the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
dueBefore | string Restrict to tasks that are due before the given date. By
default, the date must have
the format |
dueBeforeExpression | string Restrict to tasks that are due before the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
withoutDueDate | boolean Default: false Only include tasks which have no due date. Value may only be |
followUpDate | string Restrict to tasks that have a followUp date on the given date. By
default, the date
must have the format |
followUpDateExpression | string Restrict to tasks that have a followUp date on the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpAfter | string Restrict to tasks that have a followUp date after the given date. By
default, the
date must have the format |
followUpAfterExpression | string Restrict to tasks that have a followUp date after the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpBefore | string Restrict to tasks that have a followUp date before the given date. By
default, the
date must have the format |
followUpBeforeExpression | string Restrict to tasks that have a followUp date before the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpBeforeOrNotExistent | string Restrict to tasks that have no followUp date or a followUp date before the given date.
By default, the date must have the
format |
followUpBeforeOrNotExistentExpression | string Restrict to tasks that have no followUp date or a followUp date before the date
described by the given expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdOn | string Restrict to tasks that were created on the given date. By
default, the date must have
the format |
createdOnExpression | string Restrict to tasks that were created on the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdAfter | string Restrict to tasks that were created after the given date. By
default, the date must have the
format |
createdAfterExpression | string Restrict to tasks that were created after the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdBefore | string Restrict to tasks that were created before the given date. By
default, the date must have the
format |
createdBeforeExpression | string Restrict to tasks that were created before the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
updatedAfter | string Restrict to tasks that were updated after the given date. Every action that fires
a task update event is considered as updating the task.
By default, the date must
have the format |
updatedAfterExpression | string Restrict to tasks that were updated after the date described by the given expression. Every action that fires
a task update event is considered as updating the task.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
delegationState | string Enum: "PENDING" "RESOLVED" Restrict to tasks that are in the given delegation state. Valid values are
|
candidateGroups | string Restrict to tasks that are offered to any of the given candidate groups. Takes a
comma-separated list of group names, so for example |
candidateGroupsExpression | string Restrict to tasks that are offered to any of the candidate groups described by the
given expression. See the
user guide
for more information on available functions. The expression must evaluate to
|
withCandidateGroups | boolean Default: false Only include tasks which have a candidate group. Value may only be |
withoutCandidateGroups | boolean Default: false Only include tasks which have no candidate group. Value may only be |
withCandidateUsers | boolean Default: false Only include tasks which have a candidate user. Value may only be |
withoutCandidateUsers | boolean Default: false Only include tasks which have no candidate users. Value may only be |
active | boolean Default: false Only include active tasks. Value may only be |
suspended | boolean Default: false Only include suspended tasks. Value may only be |
taskVariables | string Only include tasks that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Note: Values are always treated as String objects on server side. Valid |
processVariables | string Only include tasks that belong to process instances that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Note: Values are always treated as String objects on server side. Valid |
caseInstanceVariables | string Only include tasks that belong to case instances that have variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Note: Values are always treated as String objects on server side. Valid |
variableNamesIgnoreCase | boolean Default: false Match all variable names in this query case-insensitively. If set
|
variableValuesIgnoreCase | boolean Default: false Match all variable values in this query case-insensitively. If set
|
parentTaskId | string Restrict query to all tasks that are sub tasks of the given task. Takes a task id. |
withCommentAttachmentInfo | boolean Default: false Check if task has attachments and/or comments. Value may only be |
{- "count": 1
}
Retrieves the number of tasks that fulfill the given filter. Corresponds to the size of the result set of the Get Tasks (POST) method and takes the same parameters.
Security Consideration:
There are several parameters (such as assigneeExpression
) for specifying an EL
expression. These are disabled by default to prevent remote code execution. See the
section on
security considerations for custom code
in the user guide for details.
taskId | string or null Restrict to task with the given id. |
taskIdIn | Array of strings or null Restrict to tasks with any of the given ids. |
processInstanceId | string or null Restrict to tasks that belong to process instances with the given id. |
processInstanceIdIn | Array of strings or null Restrict to tasks that belong to process instances with the given ids. |
processInstanceBusinessKey | string or null Restrict to tasks that belong to process instances with the given business key. |
processInstanceBusinessKeyExpression | string or null Restrict to tasks that belong to process instances with the given business key which is described by an expression. See the user guide for more information on available functions. |
processInstanceBusinessKeyIn | Array of strings or null Restrict to tasks that belong to process instances with one of the give business keys. The keys need to be in a comma-separated list. |
processInstanceBusinessKeyLike | string or null Restrict to tasks that have a process instance business key that has the parameter value as a substring. |
processInstanceBusinessKeyLikeExpression | string or null Restrict to tasks that have a process instance business key that has the parameter value as a substring and is described by an expression. See the user guide for more information on available functions. |
processDefinitionId | string or null Restrict to tasks that belong to a process definition with the given id. |
processDefinitionKey | string or null Restrict to tasks that belong to a process definition with the given key. |
processDefinitionKeyIn | Array of strings or null Restrict to tasks that belong to a process definition with one of the given keys. The keys need to be in a comma-separated list. |
processDefinitionName | string or null Restrict to tasks that belong to a process definition with the given name. |
processDefinitionNameLike | string or null Restrict to tasks that have a process definition name that has the parameter value as a substring. |
executionId | string or null Restrict to tasks that belong to an execution with the given id. |
caseInstanceId | string or null Restrict to tasks that belong to case instances with the given id. |
caseInstanceBusinessKey | string or null Restrict to tasks that belong to case instances with the given business key. |
caseInstanceBusinessKeyLike | string or null Restrict to tasks that have a case instance business key that has the parameter value as a substring. |
caseDefinitionId | string or null Restrict to tasks that belong to a case definition with the given id. |
caseDefinitionKey | string or null Restrict to tasks that belong to a case definition with the given key. |
caseDefinitionName | string or null Restrict to tasks that belong to a case definition with the given name. |
caseDefinitionNameLike | string or null Restrict to tasks that have a case definition name that has the parameter value as a substring. |
caseExecutionId | string or null Restrict to tasks that belong to a case execution with the given id. |
activityInstanceIdIn | Array of strings or null Only include tasks which belong to one of the passed and comma-separated activity instance ids. |
tenantIdIn | Array of strings or null Only include tasks which belong to one of the passed and comma-separated tenant ids. |
withoutTenantId | boolean or null Default: false Only include tasks which belong to no tenant. Value may only be |
assignee | string or null Restrict to tasks that the given user is assigned to. |
assigneeExpression | string or null Restrict to tasks that the user described by the given expression is assigned to. See the user guide for more information on available functions. |
assigneeLike | string or null Restrict to tasks that have an assignee that has the parameter value as a substring. |
assigneeLikeExpression | string or null Restrict to tasks that have an assignee that has the parameter value described by the given expression as a substring. See the user guide for more information on available functions. |
assigneeIn | Array of strings or null Only include tasks which are assigned to one of the passed and comma-separated user ids. |
assigneeNotIn | Array of strings or null Only include tasks which are not assigned to one of the passed and comma-separated user ids. |
owner | string or null Restrict to tasks that the given user owns. |
ownerExpression | string or null Restrict to tasks that the user described by the given expression owns. See the user guide for more information on available functions. |
candidateGroup | string or null Only include tasks that are offered to the given group. |
candidateGroupLike | string or null Only include tasks that are offered to groups that have the parameter value as a substring. |
candidateGroupExpression | string or null Only include tasks that are offered to the group described by the given expression. See the user guide for more information on available functions. |
candidateUser | string or null Only include tasks that are offered to the given user or to one of his groups. |
candidateUserExpression | string or null Only include tasks that are offered to the user described by the given expression. See the user guide for more information on available functions. |
includeAssignedTasks | boolean or null Default: false Also include tasks that are assigned to users in candidate queries. Default is to only include tasks that are not assigned to any user if you query by candidate user or group(s). |
involvedUser | string or null Only include tasks that the given user is involved in. A user is involved in a task if an identity link exists between task and user (e.g., the user is the assignee). |
involvedUserExpression | string or null Only include tasks that the user described by the given expression is involved in. A user is involved in a task if an identity link exists between task and user (e.g., the user is the assignee). See the user guide for more information on available functions. |
assigned | boolean or null Default: false If set to |
unassigned | boolean or null Default: false If set to |
taskDefinitionKey | string or null Restrict to tasks that have the given key. |
taskDefinitionKeyIn | Array of strings or null Restrict to tasks that have one of the given keys. The keys need to be in a comma-separated list. |
taskDefinitionKeyLike | string or null Restrict to tasks that have a key that has the parameter value as a substring. |
name | string or null Restrict to tasks that have the given name. |
nameNotEqual | string or null Restrict to tasks that do not have the given name. |
nameLike | string or null Restrict to tasks that have a name with the given parameter value as substring. |
nameNotLike | string or null Restrict to tasks that do not have a name with the given parameter value as substring. |
description | string or null Restrict to tasks that have the given description. |
descriptionLike | string or null Restrict to tasks that have a description that has the parameter value as a substring. |
priority | integer or null <int32> Restrict to tasks that have the given priority. |
maxPriority | integer or null <int32> Restrict to tasks that have a lower or equal priority. |
minPriority | integer or null <int32> Restrict to tasks that have a higher or equal priority. |
dueDate | string or null <date-time> Restrict to tasks that are due on the given date. By
default, the date must have the format
|
dueDateExpression | string or null Restrict to tasks that are due on the date described by the given expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
dueAfter | string or null <date-time> Restrict to tasks that are due after the given date. By
default, the date must have
the format |
dueAfterExpression | string or null Restrict to tasks that are due after the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
dueBefore | string or null <date-time> Restrict to tasks that are due before the given date. By
default, the date must have
the format |
dueBeforeExpression | string or null Restrict to tasks that are due before the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
withoutDueDate | boolean or null Default: false Only include tasks which have no due date. Value may only be |
followUpDate | string or null <date-time> Restrict to tasks that have a followUp date on the given date. By
default, the date
must have the format |
followUpDateExpression | string or null Restrict to tasks that have a followUp date on the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpAfter | string or null <date-time> Restrict to tasks that have a followUp date after the given date. By
default, the date must have
the format |
followUpAfterExpression | string or null Restrict to tasks that have a followUp date after the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpBefore | string or null Restrict to tasks that have a followUp date before the given date. By
default, the date must have
the format |
followUpBeforeExpression | string or null Restrict to tasks that have a followUp date before the date described by the given
expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
followUpBeforeOrNotExistent | string or null <date-time> Restrict to tasks that have no followUp date or a followUp date before the given date.
By default, the date must have
the format |
followUpBeforeOrNotExistentExpression | string or null Restrict to tasks that have no followUp date or a followUp date before the date
described by the given expression. See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdOn | string or null <date-time> Restrict to tasks that were created on the given date. By
default, the date must have
the format |
createdOnExpression | string or null Restrict to tasks that were created on the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdAfter | string or null <date-time> Restrict to tasks that were created after the given date. By
default, the date must
have the format |
createdAfterExpression | string or null Restrict to tasks that were created after the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
createdBefore | string or null <date-time> Restrict to tasks that were created before the given date. By
default, the date must
have the format |
createdBeforeExpression | string or null Restrict to tasks that were created before the date described by the given expression.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
updatedAfter | string or null <date-time> Restrict to tasks that were updated after the given date. Every action that fires
a task update event is considered as updating the task.
By default, the date must
have the format |
updatedAfterExpression | string or null Restrict to tasks that were updated after the date described by the given expression. Every action that fires
a task update event is considered as updating the task.
See the
user guide
for more information on available functions. The expression must evaluate to a
|
delegationState | string or null Enum: "PENDING" "RESOLVED" Restrict to tasks that are in the given delegation state. Valid values are
|
candidateGroups | Array of strings or null Restrict to tasks that are offered to any of the given candidate groups. Takes a
comma-separated list of group names, so for example
|
candidateGroupsExpression | string or null Restrict to tasks that are offered to any of the candidate groups described by the
given expression. See the
user guide
for more information on available functions. The expression must evaluate to
|
withCandidateGroups | boolean or null Default: false Only include tasks which have a candidate group. Value may only be |
withoutCandidateGroups | boolean or null Default: false Only include tasks which have no candidate group. Value may only be |
withCandidateUsers | boolean or null Default: false Only include tasks which have a candidate user. Value may only be |
withoutCandidateUsers | boolean or null Default: false Only include tasks which have no candidate users. Value may only be |
active | boolean or null Default: false Only include active tasks. Value may only be |
suspended | boolean or null Default: false Only include suspended tasks. Value may only be |
Array of objects or null (VariableQueryParameterDto) A JSON array to only include tasks that have variables with certain values. The
array consists of JSON objects with three properties Valid | |
Array of objects or null (VariableQueryParameterDto) A JSON array to only include tasks that belong to a process instance with variables
with certain values. The array consists of JSON objects with three properties
Valid | |
Array of objects or null (VariableQueryParameterDto) A JSON array to only include tasks that belong to a case instance with variables
with certain values. The array consists of JSON objects with three properties
Valid | |
variableNamesIgnoreCase | boolean or null Default: false Match all variable names in this query case-insensitively. If set
|
variableValuesIgnoreCase | boolean or null Default: false Match all variable values in this query case-insensitively. If set
|
parentTaskId | string or null Restrict query to all tasks that are sub tasks of the given task. Takes a task id. |
orQueries | Array of objects or null (TaskQueryDto) A JSON array of nested task queries with OR semantics. A task matches a nested query if it fulfills at least one of the query's predicates. With multiple nested queries, a task must fulfill at least one predicate of each query (Conjunctive Normal Form). All task query properties can be used except for: See the User guide for more information about OR queries. |
Array of objects or null Apply sorting of the result |
{- "taskVariables": [
- {
- "name": "varName",
- "value": "varValue",
- "operator": "eq"
}, - {
- "name": "anotherVarName",
- "value": 30,
- "operator": "neq"
}
], - "processInstanceBusinessKeyIn": "aBusinessKey,anotherBusinessKey",
- "assigneeIn": "anAssignee,anotherAssignee",
- "priority": 10,
- "sorting": [
- {
- "sortBy": "dueDate",
- "sortOrder": "asc"
}, - {
- "sortBy": "processVariable",
- "sortOrder": "desc",
- "parameters": {
- "variable": "orderId",
- "type": "String"
}
}
]
}
{- "count": 1
}
Creates a new task.
id | string or null The task id. |
name | string or null The task name. |
assignee | string or null The assignee's id. |
owner | string or null The owner's id. |
created | string or null <date-time> The date the task was created on.
Default format
|
lastUpdated | string or null <date-time> The date the task was last updated. Every action that fires a task update event will update this property.
Default format
|
due | string or null <date-time> The task's due date.
Default format
|
followUp | string or null <date-time> The follow-up date for the task.
Default format
|
delegationState | string or null Enum: "PENDING" "RESOLVED" The task's delegation state. Possible values are |
description | string or null The task's description. |
executionId | string or null The id of the execution the task belongs to. |
parentTaskId | string or null The id the parent task, if this task is a subtask. |
priority | integer or null <int32> The task's priority. |
processDefinitionId | string or null The id of the process definition the task belongs to. |
processInstanceId | string or null The id of the process instance the task belongs to. |
caseExecutionId | string or null The id of the case execution the task belongs to. |
caseDefinitionId | string or null The id of the case definition the task belongs to. |
caseInstanceId | string or null The id of the case instance the task belongs to. |
taskDefinitionKey | string or null The task's key. |
suspended | boolean or null Whether the task belongs to a process instance that is suspended. |
formKey | string or null If not |
object (CamundaFormRef) | |
tenantId | string or null If not |
taskState | string or null The task's state. |
{- "id": "aTaskId",
- "name": "My Task",
- "description": "This have to be done very urgent",
- "priority": 30,
- "assignee": "peter",
- "owner": "mary",
- "delegationState": "PENDING",
- "due": "2014-08-30T10:00:00.000+0200",
- "followUp": "2014-08-25T10:00:00.000+0200",
- "parentTaskId": "aParentTaskId",
- "caseInstanceId": "aCaseInstanceId",
- "tenantId": null
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a task by id.
id required | string The id of the task to be retrieved. |
{- "id": "anId",
- "name": "aName",
- "assignee": "anAssignee",
- "created": "2013-01-23T13:42:42.000+0200",
- "due": "2013-01-23T13:49:42.576+0200",
- "followUp": "2013-01-23T13:44:42.437+0200",
- "delegationState": "RESOLVED",
- "description": "aDescription",
- "executionId": "anExecution",
- "owner": "anOwner",
- "parentTaskId": "aParentId",
- "priority": 42,
- "processDefinitionId": "aProcDefId",
- "processInstanceId": "aProcInstId",
- "caseDefinitionId": "aCaseDefId",
- "caseInstanceId": "aCaseInstId",
- "caseExecutionId": "aCaseExecution",
- "taskDefinitionKey": "aTaskDefinitionKey",
- "suspended": false,
- "formKey": "aFormKey",
- "camundaFormRef": {
- "key": "aCamundaFormKey",
- "binding": "version",
- "version": 2
}, - "tenantId": "aTenantId",
- "taskState": "aTaskState"
}
Updates a task.
id required | string The id of the task to be updated. |
id | string or null The task id. |
name | string or null The task name. |
assignee | string or null The assignee's id. |
owner | string or null The owner's id. |
created | string or null <date-time> The date the task was created on.
Default format
|
lastUpdated | string or null <date-time> The date the task was last updated. Every action that fires a task update event will update this property.
Default format
|
due | string or null <date-time> The task's due date.
Default format
|
followUp | string or null <date-time> The follow-up date for the task.
Default format
|
delegationState | string or null Enum: "PENDING" "RESOLVED" The task's delegation state. Possible values are |
description | string or null The task's description. |
executionId | string or null The id of the execution the task belongs to. |
parentTaskId | string or null The id the parent task, if this task is a subtask. |
priority | integer or null <int32> The task's priority. |
processDefinitionId | string or null The id of the process definition the task belongs to. |
processInstanceId | string or null The id of the process instance the task belongs to. |
caseExecutionId | string or null The id of the case execution the task belongs to. |
caseDefinitionId | string or null The id of the case definition the task belongs to. |
caseInstanceId | string or null The id of the case instance the task belongs to. |
taskDefinitionKey | string or null The task's key. |
suspended | boolean or null Whether the task belongs to a process instance that is suspended. |
formKey | string or null If not |
object (CamundaFormRef) | |
tenantId | string or null If not |
taskState | string or null The task's state. |
{- "name": "My Task",
- "description": "This have to be done very urgent",
- "priority": 30,
- "assignee": "peter",
- "owner": "mary",
- "delegationState": "PENDING",
- "due": "2014-08-30T10:00:00.000+0200",
- "followUp": "2014-08-25T10:00:00.000+0200",
- "parentTaskId": "aParentTaskId",
- "caseInstanceId": "aCaseInstanceId",
- "tenantId": "tenantId"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Changes the assignee of a task to a specific user.
Note: The difference with the Claim Task method is that this method does not check if the task already has a user assigned to it.
id required | string The id of the task to set the assignee for. |
Provide the id of the user that will be the assignee of the task.
userId | string or null The id of the user that the current action refers to. |
POST /task/anId/assignee
{- "userId": "aUserId"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Reports a business error in the context of a running task by id. The error code must be specified to identify the BPMN error handler. See the documentation for Reporting Bpmn Error in User Tasks.
id required | string The id of the task a BPMN error is reported for. |
errorCode | string or null An error code that indicates the predefined error. It is used to identify the BPMN error handler. |
errorMessage | string or null An error message that describes the error. |
object or null A JSON object containing variable key-value pairs. |
POST /task/aTaskId/bpmnError
{- "errorCode": "bpmn-error-543",
- "errorMessage": "anErrorMessage",
- "variables": {
- "aVariable": {
- "value": "aStringValue",
- "type": "String"
}, - "anotherVariable": {
- "value": true,
- "type": "Boolean"
}
}
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Reports an escalation in the context of a running task by id. The escalation code must be specified to identify the escalation handler. See the documentation for Reporting Bpmn Escalation in User Tasks.
id required | string The id of the task in which context a BPMN escalation is reported. |
escalationCode | string or null An escalation code that indicates the predefined escalation. It is used to identify the BPMN escalation handler. |
object or null A JSON object containing variable key-value pairs. |
POST /task/aTaskId/bpmnEscalation
{- "escalationCode": "bpmn-escalation-432",
- "variables": {
- "aVariable": {
- "value": "aStringValue",
- "type": "String"
}, - "anotherVariable": {
- "value": true,
- "type": "Boolean"
}
}
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Claims a task for a specific user.
Note: The difference with the Set Assignee method is that here a check is performed to see if the task already has a user assigned to it.
id required | string The id of the task to claim. |
Provide the id of the user that claims the task.
userId | string or null The id of the user that the current action refers to. |
POST /task/anId/claim
{- "userId": "aUserId"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Completes a task and updates process variables.
id required | string The id of the task to complete. |
object or null A JSON object containing variable key-value pairs. | |
withVariablesInReturn | boolean or null Default: false Indicates whether the response should contain the process variables or not. The
default is |
Complete Task with variables in return
{- "variables": {
- "aVariable": {
- "value": "aStringValue"
}, - "anotherVariable": {
- "value": 42
}, - "aThirdVariable": {
- "value": true
}
}, - "withVariablesInReturn": true
}
Response Body
{- "aVariable": {
- "value": "aStringValue"
}, - "anotherVariable": {
- "value": 42
}, - "aThirdVariable": {
- "value": true
}
}
Delegates a task to another user.
id required | string The id of the task to delegate. |
Provide the id of the user that the task should be delegated to.
userId | string or null The id of the user that the current action refers to. |
POST /task/anId/delegate
{- "userId": "aUserId"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves the deployed form that is referenced from a given task. For further information please refer to the User Guide.
id required | string The id of the task to get the deployed form for. |
Resonse for GET /task/taskId/deployed-form
<form role="form" name="invoiceForm" class="form-horizontal"> <div class="form-group"> <label class="control-label col-md-4" for="creditor">Creditor</label> <div class="col-md-8"> <input cam-variable-name="creditor" cam-variable-type="String" id="creditor" class="form-control" type="text" required /> <div class="help"> (e.g. "Great Pizza for Everyone Inc.") </div> </div> </div> </form>
Retrieves the form key for a task. The form key corresponds to the FormData#formKey
property in the engine. This key can be used to do task-specific form rendering in
client applications. Additionally, the context path of the containing process
application is returned.
id required | string The id of the task to retrieve the form for. |
GET /task/anId/form
{- "key": "aFormKey",
}
Retrieves the form variables for a task. The form variables take form data specified on the task into account. If form fields are defined, the variable types and default values of the form fields are taken into account.
id required | string The id of the task to retrieve the variables for. |
variableNames | string A comma-separated list of variable names. Allows restricting the list of requested variables to the variable names in the list. It is best practice to restrict the list of variables to the variables actually required by the form in order to minimize fetching of data. If the query parameter is ommitted all variables are fetched. If the query parameter contains non-existent variable names, the variable names are ignored. |
deserializeValues | boolean Default: true Determines whether serializable variable values (typically variables that store custom Java objects) should be deserialized on server side (default true). If set to true, a serializable variable will be deserialized on server side and transformed to JSON using Jackson's POJO/bean property introspection feature. Note that this requires the Java classes of the variable value to be on the REST API's classpath. If set to false, a serializable variable will be returned in its serialized format. For example, a variable that is serialized as XML will be returned as a JSON string containing XML. Note: While true is the default value for reasons of backward compatibility, we recommend setting this parameter to false when developing web applications that are independent of the Java process applications deployed to the engine. |
GET /task/anId/form-variables
{- "amount": {
- "type": "integer",
- "value": 5,
- "valueInfo": { }
}, - "firstName": {
- "type": "String",
- "value": "Jonny",
- "valueInfo": { }
}
}
Retrieves the rendered form for a task. This method can be used to get the HTML rendering of a Generated Task Form.
id required | string The id of the task to get the rendered form for. |
A /task/anId/rendered-form
HTML GET response body providing the rendered (generated) form content.
<form class="form-horizontal"> <div class="control-group"> <label class="control-label">Customer ID</label> <div class="controls"> <input form-field type="string" name="customerId"></input> </div> </div> <div class="control-group"> <label class="control-label">Amount</label> <div class="controls"> <input form-field type="number" name="amount"></input> </div> </div> </form>
Resolves a task and updates execution variables.
Resolving a task marks that the assignee is done with the task delegated to them, and that it can be sent back to the owner. Can only be executed when the task has been delegated. The assignee will be set to the owner, who performed the delegation.
id required | string The id of the task to resolve. |
object or null A JSON object containing variable key-value pairs. | |
withVariablesInReturn | boolean or null Default: false Indicates whether the response should contain the process variables or not. The
default is |
POST /task/anId/resolve
{- "variables": {
- "aVariable": {
- "value": "aStringValue"
}, - "anotherVariable": {
- "value": 42
}, - "aThirdVariable": {
- "value": true
}
}
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Completes a task and updates process variables using a form submit. There are two
difference between this method and the complete
method:
PENDING
- i.e., has been delegated before, it is not
completed but resolved. Otherwise it will be completed.id required | string The id of the task to submit the form for. |
object or null A JSON object containing variable key-value pairs. | |
withVariablesInReturn | boolean or null Default: false Indicates whether the response should contain the process variables or not. The
default is |
POST /task/anId/submit-form
{- "variables": {
- "aVariable": {
- "value": "aStringValue"
}, - "anotherVariable": {
- "value": 42
}, - "aThirdVariable": {
- "value": true
}, - "aFileVariable": {
- "value": "TG9yZW0gaXBzdW0=",
- "type": "File",
- "valueInfo": {
- "filename": "myFile.txt"
}
}
}
}
Response of a submitted task form with variables in return
{- "aVariable": {
- "value": "aStringValue",
- "type": "String",
- "valueInfo": { }
}, - "anotherVariable": {
- "value": 42,
- "type": "Integer",
- "valueInfo": { }
}, - "aThirdVariable": {
- "value": true,
- "type": "Boolean",
- "valueInfo": { }
}
}
Gets the attachments for a task.
id required | string The id of the task to retrieve the attachments for. |
[- {
- "id": "attachmentId",
- "name": "attachmentName",
- "taskId": "aTaskId",
- "description": "attachmentDescription",
- "type": "attachmentType",
- "createTime": "2017-02-10T14:33:19.000+0200",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}, - {
- "id": "anotherAttachmentId",
- "name": "anotherAttachmentName",
- "taskId": "aTaskId",
- "description": "anotherAttachmentDescription",
- "type": "anotherAttachmentType",
- "createTime": "2017-02-10T14:33:19.000+0200",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}, - {
- "id": "yetAnotherAttachmentId",
- "name": "yetAnotherAttachmentName",
- "taskId": "aTaskId",
- "description": "yetAnotherAttachmentDescription",
- "type": "yetAnotherAttachmentType",
- "createTime": "2017-02-10T14:33:19.000+0200",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
]
Creates an attachment for a task.
id required | string The id of the task to add the attachment to. |
attachment-name | string or null The name of the attachment. |
attachment-description | string or null The description of the attachment. |
attachment-type | string or null The type of the attachment. |
url | string or null The url to the remote content of the attachment. |
content | string or null <binary> The content of the attachment. |
Post data for a new task attachment.
------------------------------925df49a954b Content-Disposition: form-data; name="url" http://my-attachment-content-url.de ------------------------------925df49a954b Content-Disposition: form-data; name="attachment-name" attachmentName ------------------------------925df49a954b Content-Disposition: form-data; name="attachment-description" attachmentDescription ------------------------------925df49a954b Content-Disposition: form-data; name="attachment-type" attachmentType ------------------------------925df49a954b--
{- "id": "attachmentId",
- "name": "attachmentName",
- "taskId": "aTaskId",
- "description": "attachmentDescription",
- "type": "attachmentType",
- "createTime": "2017-02-10T14:33:19.000+0200",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "links": [
- {
- "method": "GET",
- "rel": "self"
}
]
}
Removes an attachment from a task by id.
id required | string The id of the task. |
attachmentId required | string The id of the attachment to be removed. |
{- "userId": "string",
- "missingAuthorizations": [
- {
- "permissionName": "string",
- "resourceName": "string",
- "resourceId": "string"
}
], - "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a task attachment by task id and attachment id.
id required | string The id of the task. |
attachmentId required | string The id of the attachment to be retrieved. |
{- "id": "attachmentId",
- "name": "attachmentName",
- "taskId": "aTaskId",
- "description": "attachmentDescription",
- "type": "attachmentType",
- "createTime": "2017-02-10T14:33:19.000+0200",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId",
- "links": [
- {
- "method": "GET",
- "rel": "self"
}
]
}
Retrieves the binary content of a task attachment by task id and attachment id.
id required | string The id of the task. |
attachmentId required | string The id of the attachment to be retrieved. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Gets the comments for a task by id.
id required | string The id of the task to retrieve the comments for. |
[- {
- "id": "commentId",
- "userId": "userId",
- "taskId": "aTaskId",
- "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687",
- "time": "2013-01-02T21:37:03.764+0200",
- "message": "message",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}, - {
- "id": "anotherCommentId",
- "userId": "anotherUserId",
- "taskId": "aTaskId",
- "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687",
- "time": "2013-02-23T20:37:43.975+0200",
- "message": "anotherMessage",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}, - {
- "id": "yetAnotherCommentId",
- "userId": "yetAnotherUserId",
- "taskId": "aTaskId",
- "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687",
- "time": "2013-04-21T10:15:23.764+0200",
- "message": "yetAnotherMessage",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
]
Creates a comment for a task by id.
id required | string The id of the task to add the comment to. |
Note: Only the message
and processInstanceId
properties will be used. Every other property passed to this endpoint will be ignored.
id | string or null The id of the task comment. |
userId | string or null The id of the user who created the comment. |
taskId | string or null The id of the task to which the comment belongs. |
processInstanceId | string or null The id of the process instance the comment is related to. |
time | string or null <date-time> The time when the comment was created.
Default format
|
message | string or null The content of the comment. |
removalTime | string or null <date-time> The time after which the comment should be removed by the History Cleanup job.
Default format
|
rootProcessInstanceId | string or null The process instance id of the root process instance that initiated the process containing the task. |
Array of objects or null (AtomLink) The links associated to this resource, with |
{- "message": "a task comment",
- "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687"
}
{- "links": [
- {
- "method": "GET",
- "rel": "self"
}
], - "id": "aTaskCommentId",
- "userId": "userId",
- "taskId": "aTaskId",
- "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687",
- "time": "2013-01-02T21:37:03.887+0200",
- "message": "comment message",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
Retrieves a task comment by task id and comment id.
id required | string The id of the task. |
commentId required | string The id of the comment to be retrieved. |
{- "id": "aTaskCommentId",
- "userId": "userId",
- "taskId": "aTaskId",
- "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687",
- "time": "2013-01-02T21:37:03.664+0200",
- "message": "comment content",
- "removalTime": "2018-02-10T14:33:19.000+0200",
- "rootProcessInstanceId": "aRootProcessInstanceId"
}
Gets the identity links for a task by id, which are the users and groups that are in some relation to it (including assignee and owner).
id required | string The id of the task to retrieve the identity links for. |
type | string Filter by the type of links to include. |
[- {
- "userId": "userId",
- "groupId": null,
- "type": "assignee"
}, - {
- "userId": null,
- "groupId": "groupId1",
- "type": "candidate"
}, - {
- "userId": null,
- "groupId": "groupId2",
- "type": "candidate"
}
]
Adds an identity link to a task by id. Can be used to link any user or group to a task and specify a relation.
id required | string The id of the task to add a link to. |
userId | string or null The id of the user participating in this link. Either |
groupId | string or null The id of the group participating in this link. Either |
type required | string or null The type of the identity link. The value of the this property can be user-defined. The Process Engine
provides three pre-defined Identity Link
Note: When adding or removing an Identity Link, the |
{- "groupId": "aNewGroupId",
- "type": "candidate"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Removes an identity link from a task by id
id required | string The id of the task to remove a link from. |
userId | string or null The id of the user participating in this link. Either |
groupId | string or null The id of the group participating in this link. Either |
type required | string or null The type of the identity link. The value of the this property can be user-defined. The Process Engine
provides three pre-defined Identity Link
Note: When adding or removing an Identity Link, the |
{- "groupId": "theOldGroupId",
- "type": "candidate"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves all variables of a given task by id.
id required | string The id of the task to retrieve the variables from. |
deserializeValues | boolean Default: true Determines whether serializable variable values (typically variables that store custom Java objects)
should be deserialized on the server side (default If set to If set to Note: While |
{- "aVariableKey": {
- "value": {
- "prop1": "a",
- "prop2": "b"
}, - "type": "Object",
- "valueInfo": {
- "objectTypeName": "com.example.MyObject",
- "serializationDataFormat": "application/xml"
}
}
}
Updates or deletes the variables in the context of a task. Updates precede deletions. So, if a variable is updated AND deleted, the deletion overrides the update.
id required | string The id of the task to set variables for. |
object or null A JSON object containing variable key-value pairs. | |
deletions | Array of strings or null An array of String keys of variables to be deleted. |
Status 204 Response: No content.
{- "modifications": {
- "aVariable": {
- "value": "aValue",
- "type": "String"
}, - "anotherVariable": {
- "value": 42,
- "type": "Integer"
}
}, - "deletions": [
- "aThirdVariable",
- "FourthVariable"
]
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Removes a local variable from a task by id.
id required | string The id of the task to delete the variable from. |
varName required | string The name of the variable to be removed. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a variable from the context of a given task by id.
id required | string The id of the task to retrieve the variable from. |
varName required | string The name of the variable to get |
deserializeValue | boolean Default: true Determines whether serializable variable values (typically variables that store custom Java objects)
should be deserialized on the server side (default If set to If set to Note: While |
{- "value": {
- "prop1": "a",
- "prop2": "b"
}, - "type": "Object",
- "valueInfo": {
- "objectTypeName": "com.example.MyObject",
- "serializationDataFormat": "application/xml"
}
}
Sets a variable in the context of a given task.
id required | string The id of the task to set the variable for. |
varName required | string The name of the variable to set. |
value | any (AnyValue) Can be any value - string, number, boolean, array or object. Note: Not every endpoint supports every type. |
type | string or null The value type of the variable. |
object A JSON object containing additional, value-type-dependent properties. For serialized variables of type Object, the following properties can be provided:
For serialized variables of type File, the following properties can be provided:
The following property can be provided for all value types:
|
Status 204. No content.
{- "value": "someValue",
- "type": "String"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a binary variable from the context of a given task by id. Applicable for byte array and file variables.
id required | string The id of the task to retrieve the variable for. |
varName required | string The name of the variable to retrieve. |
binary variable: Status 200. Content-Type: application/octet-stream
Sets the serialized value for a binary variable or the binary value for a file variable.
id required | string The id of the task to retrieve the variable for. |
varName required | string The name of the variable to retrieve. |
For binary variables a multipart form submit with the following parts:
data | string or null <binary> The binary data to be set. For File variables, this multipart can contain the filename, binary value and MIME type of the file variable to be set Only the filename is mandatory. |
valueType | string or null Enum: "Bytes" "File" The name of the variable type. Either Bytes for a byte array variable or File for a file variable. |
Post binary content of a byte array variable.
``` ------------------------------354ddb6baeff Content-Disposition: form-data; name="data"; filename="image.png" Content-Type: application/octet-stream Content-Transfer-Encoding: binary <<Byte Stream ommitted>> ------------------------------354ddb6baeff Content-Disposition: form-data; name="valueType" Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Bytes ------------------------------1e838f8f632a-- ```
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves all variables visible from the task. A variable is visible from the task if it is a local task variable or declared in a parent scope of the task. See documentation on visiblity of variables.
id required | string The id of the task to retrieve the variables from. |
deserializeValues | boolean Default: true Determines whether serializable variable values (typically variables that store custom Java objects)
should be deserialized on the server side (default If set to Note: While |
{- "aVariableKey": {
- "value": {
- "prop1": "a",
- "prop2": "b"
}, - "type": "Object",
- "valueInfo": {
- "objectTypeName": "com.example.MyObject",
- "serializationDataFormat": "application/xml"
}
}
}
Updates or deletes the variables visible from the task. Updates precede deletions. So, if a variable is updated AND deleted, the deletion overrides the update. A variable is visible from the task if it is a local task variable or declared in a parent scope of the task. See documentation on visiblity of variables.
id required | string The id of the task to set variables for. |
object or null A JSON object containing variable key-value pairs. | |
deletions | Array of strings or null An array of String keys of variables to be deleted. |
Status 204 Response: No content.
{- "modifications": {
- "aVariable": {
- "value": "aValue",
- "type": "String"
}, - "anotherVariable": {
- "value": 42,
- "type": "Integer"
}
}, - "deletions": [
- "aThirdVariable",
- "FourthVariable"
]
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Removes a variable that is visible to a task. A variable is visible to a task if it is a local task variable or declared in a parent scope of the task. See documentation on visiblity of variables.
id required | string The id of the task to delete the variable from. |
varName required | string The name of the variable to be removed. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a variable from the context of a given task. The variable must be visible from the task. It is visible from the task if it is a local task variable or declared in a parent scope of the task. See documentation on visiblity of variables.
id required | string The id of the task to retrieve the variable from. |
varName required | string The name of the variable to get. |
deserializeValue | boolean Default: true Determines whether serializable variable values (typically variables that store custom Java objects)
should be deserialized on the server side (default If set to If set to Note: While |
{- "value": {
- "prop1": "a",
- "prop2": "b"
}, - "type": "Object",
- "valueInfo": {
- "objectTypeName": "com.example.MyObject",
- "serializationDataFormat": "application/xml"
}
}
Updates a process variable that is visible from the Task scope. A variable is visible from the task if it is a local task variable, or declared in a parent scope of the task. See the documentation on variable scopes and visibility.
Note: If a variable doesn't exist, the variable is created in the top-most scope visible from the task.
id required | string The id of the task to set the variable for. |
varName required | string The name of the variable to set. |
value | any (AnyValue) Can be any value - string, number, boolean, array or object. Note: Not every endpoint supports every type. |
type | string or null The value type of the variable. |
object A JSON object containing additional, value-type-dependent properties. For serialized variables of type Object, the following properties can be provided:
For serialized variables of type File, the following properties can be provided:
The following property can be provided for all value types:
|
Status 204. No content.
{- "value": "someValue",
- "type": "String"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Retrieves a binary variable from the context of a given task. Applicable for byte array and file variables. The variable must be visible from the task. It is visible from the task if it is a local task variable or declared in a parent scope of the task. See documentation on visiblity of variables.
id required | string The id of the task to retrieve the variable for. |
varName required | string The name of the variable to retrieve. |
binary variable: Status 200. Content-Type: application/octet-stream
Sets the serialized value for a binary variable or the binary value for a file variable visible from the task. A variable is visible from the task if it is a local task variable or declared in a parent scope of the task. See documentation on visiblity of variables.
id required | string The id of the task to retrieve the variable for. |
varName required | string The name of the variable to retrieve. |
For binary variables a multipart form submit with the following parts:
data | string or null <binary> The binary data to be set. For File variables, this multipart can contain the filename, binary value and MIME type of the file variable to be set Only the filename is mandatory. |
valueType | string or null Enum: "Bytes" "File" The name of the variable type. Either Bytes for a byte array variable or File for a file variable. |
Post binary content of a byte array variable.
``` ------------------------------354ddb6baeff Content-Disposition: form-data; name="data"; filename="image.png" Content-Type: application/octet-stream Content-Transfer-Encoding: binary <<Byte Stream ommitted>> ------------------------------354ddb6baeff Content-Disposition: form-data; name="valueType" Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Bytes ------------------------------1e838f8f632a-- ```
{- "type": "string",
- "message": "string",
- "code": 0
}
Deprecated: The sending telemetry feature is removed. Please remove the endpoint usages as they are no longer needed.
enableTelemetry | boolean or null Specifies if the telemetry data should be sent or not. |
The content of the Request Body
{- "enableTelemetry": true
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Deprecated: Always returns false. The sending telemetry feature is removed. Please remove the endpoint usages as they are no longer needed.
The Response content of a status 200
{- "installation": "8343cc7a-8ad1-42d4-97d2-43452c0bdfa3",
- "product": {
- "name": "Camunda BPM Runtime",
- "version": "7.14.0",
- "edition": "enterprise",
- "internals": {
- "database": {
- "vendor": "h2",
- "version": "1.4.190 (2015-10-11)"
}, - "application-server": {
- "vendor": "Wildfly",
- "version": "WildFly Full 19.0.0.Final (WildFly Core 11.0.0.Final) - 2.0.30.Final"
}, - "jdk": {
- "version": "14.0.2",
- "vendor": "Oracle Corporation"
}, - "commands": {
- "StartProcessInstanceCmd": {
- "count": 40
}, - "FetchExternalTasksCmd": {
- "count": 100
}
}, - "metrics": {
- "process-instances": {
- "count": 936
}, - "flow-node-instances": {
- "count": 6125
}, - "decision-instances": {
- "count": 140
}, - "executed-decision-elements": {
- "count": 732
}
}, - "data-collection-start-date": "2022-11-320T15:53:20.386+0100",
- "camunda-integration": [
- "spring-boot-starter",
- "camunda-bpm-run"
], - "license-key": {
- "customer": "customer name",
- "type": "UNIFIED",
- "valid-until": "2022-09-30",
- "unlimited": false,
- "features": {
- "camundaBPM": "true"
}, - "raw": "customer=customer name;expiryDate=2022-09-30;camundaBPM=true;optimize=false;cawemo=false"
}, - "webapps": [
- "cockpit",
- "admin"
]
}
}
}
Query for a list of tenants using a list of parameters. The size of the result set can be retrieved by using the Get Tenant Count method.
sortBy | string Enum: "id" "name" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
id | string Filter by the id of the tenant. |
name | string Filter by the name of the tenant. |
nameLike | string Filter by the name that the parameter is a substring of. |
userMember | string Select only tenants where the given user is a member of. |
groupMember | string Select only tenants where the given group is a member of. |
includingGroupsOfUser | boolean Select only tenants where the user or one of his groups is a member of.
Can only be used in combination with the |
GET /tenant?name=tenantOne
[- {
- "id": "tenantOne",
- "name": "Tenant One"
}
]
The /tenant
resource supports two custom OPTIONS requests, this one for the resource
as such and one for individual tenant instances. The OPTIONS request
allows checking for the set of available operations that the currently
authenticated user can perform on the /tenant
resource. If the user
can perform an operation or not may depend on various things,
including the users authorizations to interact with this resource and
the internal configuration of the process engine.
OPTIONS /tenant
{- "links": [
]
}
Query for tenants using a list of parameters and retrieves the count.
id | string Filter by the id of the tenant. |
name | string Filter by the name of the tenant. |
nameLike | string Filter by the name that the parameter is a substring of. |
userMember | string Select only tenants where the given user is a member of. |
groupMember | string Select only tenants where the given group is a member of. |
includingGroupsOfUser | boolean Select only tenants where the user or one of his groups is a member of.
Can only be used in combination with the |
GET /tenant/count?name=tenantOne
{- "count": 1
}
Create a new tenant.
id | string or null The id of the tenant. |
name | string or null The name of the tenant. |
{- "id": "tenantOne",
- "name": "Tenant One"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
The /tenant
resource supports two custom OPTIONS requests, one for the resource as such and this one for
individual tenant instances. The OPTIONS request allows checking for the set of available operations that
the currently authenticated user can perform on the /tenant/{id}
resource. If the user can perform an
operation or not may depend on various things, including the users authorizations to interact with this
resource and the internal configuration of the process engine.
id required | string The id of the tenant |
OPTIONS /tenant/tenantOne
{- "links": [
]
}
Updates a given tenant.
id required | string The id of the tenant. |
id | string or null The id of the tenant. |
name | string or null The name of the tenant. |
{- "id": "tenantOne",
- "name": "Tenant One"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
The OPTIONS request allows checking for the set of available operations that the currently authenticated user can perform on the resource. If the user can perform an operation or not may depend on various things, including the users authorizations to interact with this resource and the internal configuration of the process engine.
id required | string The id of the tenant |
OPTIONS /tenant/tenantOne/group-members
{- "links": [
- {
- "method": "DELETE",
- "rel": "delete"
}, - {
- "method": "PUT",
- "rel": "create"
}
]
}
Creates a membership between a tenant and a group.
id required | string The id of the tenant. |
groupId required | string The id of the group. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Creates a membership between a tenant and a group.
id required | string The id of the tenant. |
groupId required | string The id of the group. |
{- "type": "string",
- "message": "string",
- "code": 0
}
The OPTIONS request allows checking for the set of available operations that the currently authenticated user can perform on the resource. If the user can perform an operation or not may depend on various things, including the users authorizations to interact with this resource and the internal configuration of the process engine.
id required | string The id of the tenant |
OPTIONS /tenant/tenantOne/user-members
{- "links": [
- {
- "method": "DELETE",
- "rel": "delete"
}, - {
- "method": "PUT",
- "rel": "create"
}
]
}
Deletes a membership between a tenant and an user.
id required | string The id of the tenant. |
userId required | string The id of the user. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Creates a membership between a tenant and an user.
id required | string The id of the tenant. |
userId required | string The id of the user. |
{- "type": "string",
- "message": "string",
- "code": 0
}
Query for a list of users using a list of parameters. The size of the result set can be retrieved by using the Get User Count method. Get User Count method.
id | string Filter by user id |
idIn | string Filter by a comma-separated list of user ids. |
firstName | string Filter by the first name of the user. Exact match. |
firstNameLike | string Filter by the first name that the parameter is a substring of. |
lastName | string Filter by the last name of the user. Exact match. |
lastNameLike | string Filter by the last name that the parameter is a substring of. |
string Filter by the email of the user. Exact match. | |
emailLike | string Filter by the email that the parameter is a substring of. |
memberOfGroup | string Filter for users which are members of the given group. |
memberOfTenant | string Filter for users which are members of the given tenant. |
potentialStarter | string Only select Users that are potential starter for the given process definition. |
sortBy | string Enum: "userId" "firstName" "lastName" "email" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
[- {
- "id": "jonny1",
- "firstName": "John",
- "lastName": "Doe",
- "email": "anEmailAddress"
}, - {
- "id": "jonny2",
- "firstName": "John",
- "lastName": "Smoe",
- "email": "anotherEmailAddress"
}
]
The /user
resource supports two custom OPTIONS
requests, one for the resource as such
and one for individual user instances. The OPTIONS
request allows checking for the set of
available operations that the currently authenticated user can perform on the /user resource.
If the user can perform an operation or not may depend on various things, including the user's
authorizations to interact with this resource and the internal configuration of the process
engine. OPTIONS /user
returns available interactions on the resource.
{- "links": [
]
}
Queries for the number of deployments that fulfill given parameters. Takes the same parameters as the Get Users method.
id | string Filter by user id |
idIn | string Filter by a comma-separated list of user ids. |
firstName | string Filter by the first name of the user. Exact match. |
firstNameLike | string Filter by the first name that the parameter is a substring of. |
lastName | string Filter by the last name of the user. Exact match. |
lastNameLike | string Filter by the last name that the parameter is a substring of. |
string Filter by the email of the user. Exact match. | |
emailLike | string Filter by the email that the parameter is a substring of. |
memberOfGroup | string Filter for users which are members of the given group. |
memberOfTenant | string Filter for users which are members of the given tenant. |
potentialStarter | string Only select Users that are potential starter for the given process definition. |
{- "count": 2
}
Create a new user.
object (UserProfileDto) | |
object (UserCredentialsDto) |
{- "profile": {
- "id": "jonny1",
- "firstName": "John",
- "lastName": "Doe",
- "email": "anEmailAddress"
}, - "credentials": {
- "password": "s3cret"
}
}
The /user
resource supports two custom OPTIONS
requests, one for the resource as such
and one for individual user instances. The OPTIONS
request allows checking for the set of
available operations that the currently authenticated user can perform on the /user resource.
If the user can perform an operation or not may depend on various things, including the user's
authorizations to interact with this resource and the internal configuration of the process
engine. OPTIONS /user/{id}
returns available interactions on a resource instance.
id required | string The id of the user to be deleted. |
{- "links": [
]
}
Updates a user's credentials (password)
id required | string The id of the user to be updated. |
password | string or null The users new password. |
authenticatedUserPassword | string or null The password of the authenticated user who changes the password of the user (i.e., the user with passed id as path parameter). |
{- "password": "s3cr3t",
- "authenticatedUserPassword": "demo"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Updates the profile information of an already existing user.
id required | string The id of the user. |
id | string or null The id of the user. |
firstName | string or null The first name of the user. |
lastName | string or null The first name of the user. |
string or null The email of the user. |
{- "id": "jonny1",
- "firstName": "John",
- "lastName": "Doe",
- "email": "aNewEmailAddress"
}
{- "type": "string",
- "message": "string",
- "code": 0
}
Query for variable instances that fulfill given parameters. Parameters may be the properties of variable instances, such as the name or type. The size of the result set can be retrieved by using the Get Variable Instance Count method.
variableName | string Filter by variable instance name. |
variableNameLike | string Filter by the variable instance name. The parameter can include the wildcard |
processInstanceIdIn | string Only include variable instances which belong to one of the passed and comma-separated process instance ids. |
executionIdIn | string Only include variable instances which belong to one of the passed and comma-separated execution ids. |
caseInstanceIdIn | string Only include variable instances which belong to one of the passed and comma-separated case instance ids. |
caseExecutionIdIn | string Only include variable instances which belong to one of the passed and comma-separated case execution ids. |
taskIdIn | string Only include variable instances which belong to one of the passed and comma-separated task ids. |
batchIdIn | string Only include variable instances which belong to one of the passed and comma-separated batch ids. |
activityInstanceIdIn | string Only include variable instances which belong to one of the passed and comma-separated activity instance ids. |
tenantIdIn | string Only include variable instances which belong to one of the passed and comma-separated tenant ids. |
variableValues | string Only include variable instances that have the certain values. Value filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Note: Values are always treated as Valid operator values are: |
variableNamesIgnoreCase | boolean Match all variable names provided in |
variableValuesIgnoreCase | boolean Match all variable values provided in |
variableScopeIdIn | string Only include variable instances which belong to one of passed scope ids. |
sortBy | string Enum: "variableName" "variableType" "activityInstanceId" "tenantId" Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |
sortOrder | string Enum: "asc" "desc" Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
deserializeValues | boolean Determines whether serializable variable values (typically variables that
store custom Java objects) should be deserialized on server side (default
If set to If set to Note: While |
GET /variable-instance?processInstanceIdIn=aProcessInstanceId,anotherProcessInstanceId&variableValues=amount_gteq_5,amount_lteq_200
[- {
- "id": "someId",
- "name": "amount",
- "type": "Integer",
- "value": 5,
- "processDefinitionId": "aProcessDefinitionId",
- "processInstanceId": "aProcessInstanceId",
- "executionId": "b68b71c9-e310-11e2-beb0-f0def1557726",
- "taskId": null,
- "batchId": null,
- "activityInstanceId": "Task_1:b68b71ca-e310-11e2-beb0-f0def1557726",
- "caseExecutionId": null,
- "caseInstanceId": null,
- "errorMessage": null,
- "tenantId": null
}, - {
- "id": "someOtherId",
- "name": "amount",
- "type": "Integer",
- "value": 15,
- "processDefinitionId": "aProcessDefinitionId",
- "processInstanceId": "aProcessInstanceId",
- "executionId": "68b71c9-e310-11e2-beb0-f0def1557726",
- "taskId": null,
- "batchId": null,
- "activityInstanceId": "Task_1:b68b71ca-e310-11e2-beb0-f0def1557726",
- "caseExecutionId": null,
- "caseInstanceId": null,
- "errorMessage": null,
- "tenantId": null
}, - {
- "id": "yetAnotherId",
- "name": "amount",
- "type": "Integer",
- "value": 150,
- "processDefinitionId": "aProcessDefinitionId",
- "processInstanceId": "anotherProcessInstanceId",
- "executionId": "68b71c9-e310-11e2-beb0-f0def1557726",
- "taskId": null,
- "batchId": null,
- "activityInstanceId": "Task_2:b68b71ca-e310-11e2-beb0-f0def1557726",
- "caseExecutionId": null,
- "caseInstanceId": null,
- "errorMessage": null,
- "tenantId": null
}
]
Query for variable instances that fulfill given parameters through a JSON object.
This method is slightly more powerful than the
[Get Variable Instances](https://docs.camunda.org/manual/7.22/reference/rest/variable-
instance/get-query/) method because it allows filtering by multiple
variable instances of types String
, Number
or Boolean
.
firstResult | integer Pagination of results. Specifies the index of the first result to return. |
maxResults | integer Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |
deserializeValues | boolean Determines whether serializable variable values (typically variables that
store custom Java objects) should be deserialized on server side (default
If set to If set to Note: While |
variableName | string or null Filter by variable instance name. |
variableNameLike | string or null Filter by the variable instance name. The parameter can include the wildcard |
processInstanceIdIn | Array of strings or null Only include variable instances which belong to one of the passed process instance ids. |
executionIdIn | Array of strings or null Only include variable instances which belong to one of the passed execution ids. |
caseInstanceIdIn | Array of strings or null Only include variable instances which belong to one of the passed case instance ids. |
caseExecutionIdIn | Array of strings or null Only include variable instances which belong to one of the passed case execution ids. |
taskIdIn | Array of strings or null Only include variable instances which belong to one of the passed task ids. |
batchIdIn | Array of strings or null Only include variable instances which belong to one of the passed batch ids. |
activityInstanceIdIn | Array of strings or null Only include variable instances which belong to one of the passed activity instance ids. |
tenantIdIn | Array of strings or null Only include variable instances which belong to one of the passed tenant ids. |
Array of objects or null (VariableQueryParameterDto) An array to only include variable instances that have the certain values.
The array consists of objects with the three properties Valid operator values are: | |
variableNamesIgnoreCase | boolean or null Match all variable names provided in |
variableValuesIgnoreCase | boolean or null Match all variable values provided in |
variableScopeIdIn | Array of strings or null Only include variable instances which belong to one of passed scope ids. |
Array of objects or null An array of criteria to sort the result by. Each element of the array is an object that specifies one ordering.
The position in the array identifies the rank of an ordering, i.e., whether it is primary, secondary, etc.
Sorting has no effect for |
{- "variableValues": [
- {
- "name": "amount",
- "operator": "gteq",
- "value": 5
}, - {
- "name": "amount",
- "operator": "lteq",
- "value": 200
}
], - "processInstanceIdIn": [
- "aProcessInstanceId",
- "anotherProcessInstanceId"
], - "sorting": [
- {
- "sortBy": "variableType",
- "sortOrder": "asc"
}
]
}
POST /variable-instance
[- {
- "id": "someId",
- "name": "amount",
- "type": "Integer",
- "value": 5,
- "processDefinitionId": "aProcessDefinitionId",
- "processInstanceId": "aProcessInstanceId",
- "executionId": "b68b71c9-e310-11e2-beb0-f0def1557726",
- "taskId": null,
- "batchId": null,
- "activityInstanceId": "Task_1:b68b71ca-e310-11e2-beb0-f0def1557726",
- "errorMessage": null,
- "tenantId": null
}, - {
- "id": "someOtherId",
- "name": "amount",
- "type": "Integer",
- "value": 15,
- "processDefinitionId": "aProcessDefinitionId",
- "processInstanceId": "aProcessInstanceId",
- "executionId": "68b71c9-e310-11e2-beb0-f0def1557726",
- "taskId": null,
- "batchId": null,
- "activityInstanceId": "Task_1:b68b71ca-e310-11e2-beb0-f0def1557726",
- "errorMessage": null,
- "tenantId": null
}, - {
- "id": "yetAnotherId",
- "name": "amount",
- "type": "Integer",
- "value": 150,
- "processDefinitionId": "aProcessDefinitionId",
- "processInstanceId": "anotherProcessInstanceId",
- "executionId": "68b71c9-e310-11e2-beb0-f0def1557726",
- "taskId": null,
- "batchId": null,
- "activityInstanceId": "Task_2:b68b71ca-e310-11e2-beb0-f0def1557726",
- "errorMessage": null,
- "tenantId": null
}
]
Query for the number of variable instances that fulfill given parameters. Takes the same parameters as the Get Variable Instances method.
variableName | string Filter by variable instance name. |
variableNameLike | string Filter by the variable instance name. The parameter can include the wildcard |
processInstanceIdIn | string Only include variable instances which belong to one of the passed and comma-separated process instance ids. |
executionIdIn | string Only include variable instances which belong to one of the passed and comma-separated execution ids. |
caseInstanceIdIn | string Only include variable instances which belong to one of the passed and comma-separated case instance ids. |
caseExecutionIdIn | string Only include variable instances which belong to one of the passed and comma-separated case execution ids. |
taskIdIn | string Only include variable instances which belong to one of the passed and comma-separated task ids. |
batchIdIn | string Only include variable instances which belong to one of the passed and comma-separated batch ids. |
activityInstanceIdIn | string Only include variable instances which belong to one of the passed and comma-separated activity instance ids. |
tenantIdIn | string Only include variable instances which belong to one of the passed and comma-separated tenant ids. |
variableValues | string Only include variable instances that have the certain values. Value filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form Note: Values are always treated as Valid operator values are: |
variableNamesIgnoreCase | boolean Match all variable names provided in |
variableValuesIgnoreCase | boolean Match all variable values provided in |
variableScopeIdIn | string Only include variable instances which belong to one of passed scope ids. |
GET /variable-instance/count?processInstanceIdIn=aProcessInstanceId,anotherProcessInstanceId&variableValues=amount_gteq_5,amount_lteq_200
{- "count": 3
}
Query for the number of variable instances that fulfill given parameters. This method takes the same message body as the [Get Variable Instances POST](https://docs.camunda.org/manual/7.22/reference/rest/variable- instance/post-query/) method and therefore it is slightly more powerful than the Get Variable Instance Count method.
variableName | string or null Filter by variable instance name. |
variableNameLike | string or null Filter by the variable instance name. The parameter can include the wildcard |
processInstanceIdIn | Array of strings or null Only include variable instances which belong to one of the passed process instance ids. |
executionIdIn | Array of strings or null Only include variable instances which belong to one of the passed execution ids. |
caseInstanceIdIn | Array of strings or null Only include variable instances which belong to one of the passed case instance ids. |
caseExecutionIdIn | Array of strings or null Only include variable instances which belong to one of the passed case execution ids. |
taskIdIn | Array of strings or null Only include variable instances which belong to one of the passed task ids. |
batchIdIn | Array of strings or null Only include variable instances which belong to one of the passed batch ids. |
activityInstanceIdIn | Array of strings or null Only include variable instances which belong to one of the passed activity instance ids. |
tenantIdIn | Array of strings or null Only include variable instances which belong to one of the passed tenant ids. |
Array of objects or null (VariableQueryParameterDto) An array to only include variable instances that have the certain values.
The array consists of objects with the three properties Valid operator values are: | |
variableNamesIgnoreCase | boolean or null Match all variable names provided in |
variableValuesIgnoreCase | boolean or null Match all variable values provided in |
variableScopeIdIn | Array of strings or null Only include variable instances which belong to one of passed scope ids. |
Array of objects or null An array of criteria to sort the result by. Each element of the array is an object that specifies one ordering.
The position in the array identifies the rank of an ordering, i.e., whether it is primary, secondary, etc.
Sorting has no effect for |
{- "variableValues": [
- {
- "name": "amount",
- "operator": "gteq",
- "value": "5"
}, - {
- "name": "amount",
- "operator": "lteq",
- "value": 200
}
], - "processInstanceIdIn": [
- "aProcessInstanceId",
- "anotherProcessInstanceId"
]
}
POST /variable-instance/count
{- "count": 3
}
Retrieves a variable by id.
id required | string The id of the variable instance. |
deserializeValue | boolean Determines whether serializable variable values (typically variables that store custom Java objects)
should be deserialized on server side (default If set to If set to Note: While |
GET /variable-instance/someId
{- "id": "someId",
- "name": "amount",
- "type": "Integer",
- "value": 5,
- "processDefinitionId": "aProcessDefinitionId",
- "processInstanceId": "aProcessInstanceId",
- "executionId": "b68b71c9-e310-11e2-beb0-f0def1557726",
- "taskId": null,
- "batchId": null,
- "activityInstanceId": "Task_1:b68b71ca-e310-11e2-beb0-f0def1557726",
- "caseExecutionId": null,
- "caseInstanceId": null,
- "tenantId": null,
- "errorMessage": null
}
Retrieves the content of a variable by id. Applicable for byte array and file variables.
id required | string The id of the variable instance. |
{- "type": "string",
- "message": "string",
- "code": 0
}