A user task is used to model work that needs to be done by a human actor. When the process execution arrives at such a user task, a new job similar to a service task is created. The process instance stops at this point and waits until the job is completed.
Applications like Tasklist can be used by humans to complete these tasks.
Alternatively, a job worker can subscribe to the job type
io.camunda.zeebe:userTask to complete the job manually.
When the job is completed, the user task gets completed and the process instance continues.
User tasks support specifying a
formKey attribute, using the
zeebe:formDefinition extension element. The form key can be used to specify
an identifier to associate a form to the user task. Tasklist supports
embedded Camunda Forms,
these can be embedded into the BPMN process XML as a
extension element of the process element.
By default, all job variables are merged into the process instance. This behavior can be customized by defining an output mapping at the user task.
Input mappings can be used to transform the variables into a format that is accepted by the job worker.
A user task can define an arbitrary number of
taskHeaders. They are static
metadata that are handed to workers along with the job. The headers can be used
as configuration parameters for the worker.
A user task with a user task form: