Skip to main content
POST
/
condition
Evaluate
curl --request POST \
  --url http://{host}:{port}/{contextPath}/condition \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "variables": {
    "temperature": {
      "value": 24,
      "type": "Integer",
      "valueInfo": {
        "transient": true
      }
    },
    "city": {
      "value": "Parma",
      "type": "String"
    }
  },
  "businessKey": "aBusinessKey",
  "tenantId": "aTenantId"
}'
[
  {
    "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"
  }
]

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
variables
object | 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 | null

Used for the process instances that have been triggered after the evaluation.

tenantId
string | 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 | 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 | null

Used to evaluate conditions of the process definition with the given id.

Response

Request successful.

id
string | null

The id of the process instance.

definitionId
string | null

The id of the process definition that this process instance belongs to.

businessKey
string | null

The business key of the process instance.

caseInstanceId
string | null

The id of the case instance associated with the process instance.

ended
boolean | null
deprecated

A flag indicating whether the process instance has ended or not. Deprecated: will always be false!

suspended
boolean | null

A flag indicating whether the process instance is suspended or not.

tenantId
string | null

The tenant id of the process instance.

The links associated to this resource, with method, href and rel.