Task

User Task

User Task

Creates a task item waiting for a human to complete it. The engine pauses the token here until your application calls the complete endpoint.

Properties

PropertyTypeRequiredDescription
IDstringyesUnique element identifier
NamestringyesTask name shown to users
AssigneestringnoUser ID or expression for auto-assignment
Candidate GroupsstringnoComma-separated group names
Due DatestringnoISO 8601 datetime or FEEL expression
PriorityintegernoNumeric priority (higher = more urgent)

XML Example

<bpmn:userTask id="review_order" name="Review Order">
  <bpmn:incoming>flow_to_review</bpmn:incoming>
  <bpmn:outgoing>flow_to_approve</bpmn:outgoing>
</bpmn:userTask>

API Integration

Poll for pending tasks:

GET /api/v1/tasks?org_id={org_id}

Response includes all waiting user tasks with their instance variables.

Complete a task:

POST /api/v1/tasks/{task_id}/complete
Content-Type: application/json

{
  "variables": [
    { "name": "approved", "value": true },
    { "name": "reviewNote", "value": "Looks good" }
  ]
}

Variables submitted at completion are merged into the process instance and available to all subsequent elements. The token advances immediately after the call returns.