For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.11 (unreleased)

Look up an active user task (alpha) Added in 8.11 Physical tenant

POST 

/user-tasks/:userTaskKey/lookup

Strongly Consistent About endpoint data consistency

Returns an active user task together with the variables visible to it, read from the engine's state instead of secondary storage. The task and its variables are read at the same point in processing, so they are consistent with each other and with any command the engine has already processed, for example the completion of a previous task.

The response includes the task's lifecycle state. Use it to interpret the returned values: while a change to the task is in progress, the task fields and variables are the ones from before the change, and state names the pending change. For example, with ASSIGNING the returned assignee is still the previous one, because task listeners can deny the new assignment; with COMPLETING the variables don't include the ones sent with the completion yet.

Only active tasks can be looked up. The lookup returns 404 when the task doesn't exist, when it was already completed or canceled (use the user task search for those), or when it belongs to a tenant the caller isn't assigned to. It returns 409 when the task's process instance is banned: an instance that hit an unrecoverable error and can only be canceled.

Each lookup is processed by the engine. Use it when a task is opened, not for polling.

note

This endpoint is an alpha feature and may be subject to change in future releases.

Required permissions​

When authorization is enabled, this endpoint requires the following permission. See resources and permissions to learn more.

Resource typePermission
PROCESS_DEFINITION · READ_USER_TASK or USER_TASK · READ

Request​

Responses​

The user task and its variables are returned.