Method

POST /condition

Parameters

A JSON object with the following properties:

|value|The variable's value. For variables of type Object, the serialized value has to be submitted as a String value.
For variables of type File the value has to be submitted as Base64 encoded string.
|type|The value type of the variable.|valueInfo| A JSON object containing additional, value-type-dependent properties.
For serialized variables of type Object, the following properties can be provided:

  • objectTypeName: A string representation of the object's type name.
  • serializationDataFormat: The serialization format used to store the variable.
    For serialized variables of type File, the following properties can be provided:

  • mimetype: The MIME type of the file that is being uploaded.
  • encoding: The encoding of the file that is being uploaded.
    The following property can be provided for all value types:

|type|The value type of the variable.
|valueInfo| A JSON object containing additional, value-type-dependent properties.
For serialized variables of type Object, the following properties can be provided:

  • objectTypeName: A string representation of the object's type name.
  • serializationDataFormat: The serialization format used to store the variable.
    For serialized variables of type , the following properties can be provided:

  • mimetype: The MIME type of the file that is being uploaded.
  • encoding: The encoding of the file that is being uploaded.
    The following property can be provided for all value types:

  • transient: Indicates whether the variable should be transient or not. See documentation for more informations.
    |businessKey|Used for the process instances that have been triggered after the evaluation.
    |tenantId|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|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|Used to evaluate conditions of the process definition with the given id.

Result

A JSON array of process instance objects which have been triggered after the evaluation. The array will be empty in case, when no process instances were started.Each process instance object has the following properties:

Response Codes

Example

POST /condition

  1. [{
  2. "links": [],
  3. "id": "aProcInstId",
  4. "definitionId": "aProcDefId",
  5. "businessKey": "aBusinessKey",
  6. "caseInstanceId": null,
  7. "suspended": false,
  8. "tenantId": "aTenantId"
  9. },
  10. {
  11. "links": [],
  12. "id": "anotherId",
  13. "definitionId": "aProcDefId",
  14. "businessKey": "aBusinessKey",
  15. "caseInstanceId": null,
  16. "ended": false,
  17. "suspended": false,
  18. "tenantId": aTenantId