Theme switcher

Get related objects of a process instance

Header Parameters

Authorizationstring

Keycloak access token (OAuth2). Replace [HOST] and [YOUR_REALM] with the values of your installation. OAuth2 flows: Implicit (authorization URL: https://[HOST]/realms/[YOUR_REALM]/protocol/openid-connect/auth)

Query Parameters

formatstring

Only for history:

  • ui: prepares the list for a timeline - the start entry of a gateway is merged into its completed entry (with durationMs); automatic and repeated task steps are hidden; every entry gets an icon; entries of user task nodes get a task summary.
  • not set: raw entries.
includestring

Only for history and tasks. Comma-separated, e.g. data,gateway:

  • data: include business data (variables, custom.data and the business data inside workItem.input and userTask.inputs). Without it, workItem.input is reduced to the task keys Comment, Content, GroupId, NodeName, TaskName, Description, UNIQUE_TASK_ID, and userTask.inputs / inputs are removed.
  • gateway: also include gateways (history only).
  • subprocess: also include sub-processes ...
sortstring

Only for history:

  • desc (default): newest first.
  • asc: oldest first.

timestamp and seq are always sorted in the same direction.

Default value
desc
Enum values:
ascdesc

Path Parameters

processInstanceIdstring Required

processInstanceId of a root process instance.

processObjectstring Required
  • history: history of the case
  • taskinstance: user tasks, live from the BPM engine
  • tasks: user tasks, from the history and the BPM engine
  • diagram: diagrams of the root instance and all sub-processes
Enum values:
historytaskinstancetasksdiagram

Response

200
Object

history: EccProcessHistory[]; taskinstance/tasks: EccTask[]; diagram: EccProcess[].

Response Attributes

_idstring

Technical MongoDB document id. Not a business identifier - do not use it to address objects.

eccTypestring

Object type, e.g. process, task, history, process_history, process_node, event.

eccClassnamestring

Java class name of the object.

eventIdstring

Unique id of the event (also the MongoDB _id).

eventTypestring

Event type: PROCESS_STARTED, PROCESS_COMPLETED, PROCESS_ABORTED, PROCESS_ERROR, ACTIVITY_STARTED, ACTIVITY_COMPLETED, USER_TASK_STATE, USER_TASK_ASSIGNMENT, USER_TASK_VARIABLE, USER_TASK_COMMENT, USER_TASK_ATTACHMENT, USER_TASK_DEADLINE, CUSTOM.

levelstring

History level used for this event: FULL (with variable snapshot) or MINIMAL.

originstring

Engine that produced the event.

processIdstring

processId of the instance the event belongs to.

processInstanceIdstring

processInstanceId of the instance the event belongs to.

rootProcessInstanceIdstring

processInstanceId of the root process.

parentProcessInstanceIdstring

processInstanceId of the calling process.

rootProcessIdstring

processId of the root process.

processNamestring

Process name.

processVersionstring

Version of the process definition.

processStatestring

State of the instance after the event.

businessKeystring

Business key of the instance.

schemaVersioninteger

Version of the history document structure.

seqinteger

Sequence number of the transfer outbox, ascending over all processes of the service. Tie-breaker for events with the same timestamp; not contiguous within one case.

timestampstring

Time the step happened in the engine (start of the instance, entry or exit of the node, task change). Primary sort key.

activityNamestring

Name of the node or user task.

activityTypestring

BPMN type of the node, e.g. userTask, scriptTask, exclusiveGateway, callActivity.

userallof

Reference to a user.

Show child attributes

processInstanceDescriptionstring

Process Instance Description of the process model, evaluated for this instance at the time of the event.

durationMsinteger

Time between entering and leaving the node in milliseconds; set when node.enteredAt and node.leftAt are both present (ACTIVITY_COMPLETED).

iconstring

Suggested icon key (format=ui only), e.g. process_started, custom, userTask-started, userTask-claim, userTask-ready, userTask-user_task_state, exclusiveGateway-split, callActivity-completed.

taskallof

User task summary of a history entry (format=ui only).

Show child attributes

variablesstring

Snapshot of all process variables (level FULL). Without include=data removed for user task entries and entries without workItem.

customstring

Custom entry written from the process model: { type, message, data }. data only with include=data.

changestring

What changed, e.g. { action: claim, from: Ready, to: Reserved }.

Show child attributes

userTaskstring

Full user task state after the change for USER_TASK_* events. Once the task has an owner, actualOwnerUserId (subject) and actualOwnerDisplayName are added. inputs only with include=data.

Show child attributes

nodestring

Node details: id, name, bpmnType, engineType, nodeInstanceId, enteredAt, leftAt.

workItemstring

Work item details: id, name, input, output. Business data in input only with include=data.

eccVersionstring
idstring
namestring
descriptionstring
prioritystring
statestring
actualOwnerstring
potentialGroupsarray

Show child attributes

adminGroupsarray
adminUsersarray
excludedUsersarray

Show child attributes

potentialUsersarray
startedstring
lastUpdatestring
referenceNamestring
outputsstring
eccUiPagestring
eccUiDirectorystring
401
Object

Missing, invalid or expired access token.

Response Attributes

successboolean

true for 2xx responses, false for errors.

httpStatusinteger

HTTP status code, same as the response status.

httpStatusReasonPhrasestring

HTTP reason phrase.

messageCodestring

Message code for application errors with a defined code (EccException), e.g. EAP0001.

messagestring

Message text. Localized for coded application errors, otherwise the technical exception message.

dataTypestring

Simple class name of the error or its data (errors only).

datastring

Payload. Type depends on the endpoint. For coded application errors the EccException.

403
Object

Not Allowed

404
Object

history/tasks/diagram: no root process instance with this id.

Response Attributes

successboolean

true for 2xx responses, false for errors.

httpStatusinteger

HTTP status code, same as the response status.

httpStatusReasonPhrasestring

HTTP reason phrase.

messageCodestring

Message code for application errors with a defined code (EccException), e.g. EAP0001.

messagestring

Message text. Localized for coded application errors, otherwise the technical exception message.

dataTypestring

Simple class name of the error or its data (errors only).

datastring

Payload. Type depends on the endpoint. For coded application errors the EccException.

500
Object

Unknown processObject or backend error.

Response Attributes

successboolean

true for 2xx responses, false for errors.

httpStatusinteger

HTTP status code, same as the response status.

httpStatusReasonPhrasestring

HTTP reason phrase.

messageCodestring

Message code for application errors with a defined code (EccException), e.g. EAP0001.

messagestring

Message text. Localized for coded application errors, otherwise the technical exception message.

dataTypestring

Simple class name of the error or its data (errors only).

datastring

Payload. Type depends on the endpoint. For coded application errors the EccException.

Was this section helpful?

GET

/

Select
1

Response

Was this section helpful?