Method

POST

Parameters

|firstResult|Pagination of results. Specifies the index of the first result to return.
|maxResults|Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left.
|deserializeValues| 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 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.

A JSON object with the following properties:

sortByMandatory. Sort the results lexicographically by a given criterion. Valid values are processInstanceId, variableName, variableType, variableRevision, formPropertyId, time, occurrence and tenantId.
sortOrderMandatory. Sort the results in a given order. Values may be asc for ascending order or desc for descending order.

|sortBy|Mandatory. Sort the results lexicographically by a given criterion. Valid values are processInstanceId, variableName, variableType, variableRevision, formPropertyId, time, occurrence and tenantId.|sortOrder|Mandatory. Sort the results in a given order. Values may be asc for ascending order or desc for descending order.
|sortBy|Mandatory. Sort the results lexicographically by a given criterion. Valid values are processInstanceId, , variableType, variableRevision, formPropertyId, time, occurrence and tenantId.
|sortOrder|Mandatory. Sort the results in a given order. Values may be asc for ascending order or desc for descending order.

Result

A JSON array of historic detail objects.Each historic detail object has the following properties:

  • For further information, please see the .

Depending on the type of the historic detail it contains further properties. In case of an HistoricVariableUpdate the following properties are also provided:

Name Value Description
variableName String The name of the variable which has been updated.
variableInstanceId String The id of the associated variable instance.
variableType String The value type of the variable.
Name Value Description
——-
value String/Number/Boolean/Object


|value|String / Number / Boolean / Object| The variable's value. Value differs depending on the variable's type and on the deserializeValues parameter.|type|String|The value type of the variable.|valueInfo|Object| A JSON object containing additional, value-type-dependent properties.
For variables of type Object, the following properties are returned:

  • serializationDataFormat: The serialization format used to store the variable.
    |Name|Value|Description
    |——-
    |value|String / Number / Boolean / Object| The variable's value. Value differs depending on the variable's type and on the deserializeValues parameter.
    |type|String|The value type of the variable.
    |valueInfo|Object| A JSON object containing additional, value-type-dependent properties.
    For variables of type Object, the following properties are returned:

  • objectTypeName: A string representation of the object's type name.

  • serializationDataFormat: The serialization format used to store the variable.
    |valueInfo|Object|A JSON object containing additional, value-type-dependent properties.
    For variables of type Object, the following properties are returned:

  • objectTypeName: A string representation of the object's type name.

  • serializationDataFormat: The serialization format used to store the variable.
    |revision|number|The revision of the historic variable update.
    |errorMessage|String|An error message in case a Java Serialized Object could not be de-serialized.
  • In case of an HistoricFormField the following properties are also provided:

    Name Value Description
    fieldId String The id of the form field.
    fieldValue String/Number/Boolean/Object The submitted value.

    Response Codes

    Example

    POST /history/detail?firstResult=1&maxResults=10

    1. [
    2. {
    3. "type": "variableUpdate",
    4. "id": "3cd79390-001a-11e7-8c6b-34f39ab71d4e",
    5. "processDefinitionKey": "invoice",
    6. "processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
    7. "activityInstanceId": "StartEvent_1:3cd7456e-001a-11e7-8c6b-34f39ab71d4e",
    8. "executionId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
    9. "caseDefinitionKey": null,
    10. "caseDefinitionId": null,
    11. "caseInstanceId": null,
    12. "caseExecutionId": null,
    13. "taskId": null,
    14. "userOperationId": "3cd76c7f-001a-11e7-8c6b-34f39ab71d4e",
    15. "time": "2017-03-03T15:03:54.000+0200",
    16. "variableName": "amount",
    17. "variableInstanceId": "3cd65b08-001a-11e7-8c6b-34f39ab71d4e",
    18. "variableType": "Double",
    19. "value": 30.0,
    20. "valueInfo": {},
    21. "revision": 0,
    22. "errorMessage": null
    23. },
    24. {
    25. "type": "variableUpdate",
    26. "id": "3cd79392-001a-11e7-8c6b-34f39ab71d4e",
    27. "processDefinitionId": "invoice:1:3c59899b-001a-11e7-8c6b-34f39ab71d4e",
    28. "processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
    29. "activityInstanceId": "StartEvent_1:3cd7456e-001a-11e7-8c6b-34f39ab71d4e",
    30. "executionId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
    31. "caseDefinitionKey": null,
    32. "caseDefinitionId": null,
    33. "caseInstanceId": null,
    34. "caseExecutionId": null,
    35. "taskId": null,
    36. "tenantId": null,
    37. "userOperationId": "3cd76c7f-001a-11e7-8c6b-34f39ab71d4e",
    38. "time": "2017-03-03T15:03:54.000+0200",
    39. "variableName": "invoiceDocument",
    40. "variableInstanceId": "3cd65b0a-001a-11e7-8c6b-34f39ab71d4e",
    41. "variableType": "File",
    42. "value": null,
    43. "valueInfo": {
    44. "mimeType": "application/pdf",
    45. "filename": "invoice.pdf"
    46. },
    47. "revision": 0,
    48. "errorMessage": null