Historic Variable Instance

Get Variable Instances (POST)

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.

post/history/variable-instance

Request

  • Base URL: http://localhost:8080/engine-rest
  • URL: http://localhost:8080/engine-rest/history/variable-instance
  • Auth: HTTP basic

Query parameters

firstResultinteger

Pagination of results. Specifies the index of the first result to return.

maxResultsinteger

Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left.

deserializeValuesboolean

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.

Request body

variableNamestring nullable

Filter by variable name.

variableNameLikestring nullable

Restrict to variables with a name like the parameter.

variableValueobject

Filter by variable value. May be String, Number or Boolean.

variableNamesIgnoreCaseboolean nullable

Match the variable name provided in variableName and variableNameLike case- insensitively. If set to true variableName and variablename are treated as equal.

variableValuesIgnoreCaseboolean nullable

Match the variable value provided in variableValue case-insensitively. If set to true variableValue and variablevalue are treated as equal.

variableTypeInstring[] nullable

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'.

includeDeletedboolean nullable

Include variables that has already been deleted during the execution.

processInstanceIdstring nullable

Filter by the process instance the variable belongs to.

processInstanceIdInstring[] nullable

Only include historic variable instances which belong to one of the passed process instance ids.

processDefinitionIdstring nullable

Filter by the process definition the variable belongs to.

processDefinitionKeystring nullable

Filter by a key of the process definition the variable belongs to.

executionIdInstring[] nullable

Only include historic variable instances which belong to one of the passed and execution ids.

caseInstanceIdstring nullable

Filter by the case instance the variable belongs to.

caseExecutionIdInstring[] nullable

Only include historic variable instances which belong to one of the passed and case execution ids.

caseActivityIdInstring[] nullable

Only include historic variable instances which belong to one of the passed and case activity ids.

taskIdInstring[] nullable

Only include historic variable instances which belong to one of the passed and task ids.

activityInstanceIdInstring[] nullable

Only include historic variable instances which belong to one of the passed and activity instance ids.

tenantIdInstring[] nullable

Only include historic variable instances which belong to one of the passed and comma- separated tenant ids.

withoutTenantIdboolean nullable

Only include historic variable instances that belong to no tenant. Value may only be true, as false is the default behavior.

variableNameInstring[] nullable

Only include historic variable instances which belong to one of the passed variable names.

Response

Request successful.

idstring nullable

The id of the variable instance.

namestring nullable

The name of the variable instance.

processDefinitionKeystring nullable

The key of the process definition the variable instance belongs to.

processDefinitionIdstring nullable

The id of the process definition the variable instance belongs to.

processInstanceIdstring nullable

The process instance id the variable instance belongs to.

executionIdstring nullable

The execution id the variable instance belongs to.

activityInstanceIdstring nullable

The id of the activity instance in which the variable is valid.

caseDefinitionKeystring nullable

The key of the case definition the variable instance belongs to.

caseDefinitionIdstring nullable

The id of the case definition the variable instance belongs to.

caseInstanceIdstring nullable

The case instance id the variable instance belongs to.

caseExecutionIdstring nullable

The case execution id the variable instance belongs to.

taskIdstring nullable

The id of the task the variable instance belongs to.

tenantIdstring nullable

The id of the tenant that this variable instance belongs to.

errorMessagestring nullable

An error message in case a Java Serialized Object could not be de-serialized.

statestring nullable

The current state of the variable. Can be 'CREATED' or 'DELETED'.

createTimestring date-time nullable

The time the variable was inserted. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ.

removalTimestring date-time nullable

The time after which the variable should be removed by the History Cleanup job. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ.

rootProcessInstanceIdstring nullable

The process instance id of the root process instance that initiated the process containing this variable.

valueunknown
typestring nullable

The value type of the variable.

valueInfoobject

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:

  • filename: The name of the file. This is not the variable name but the name that will be used when downloading the file again.
  • 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. (Not applicable for decision-definition, /process-instance/variables-async, and /migration/executeAsync endpoints)

Changes

No recorded changes to this operation across all 1 revision of this API.