cmmn-complete_task
cmmn-complete_taskComplete a CMMN task by storing the result, marking it completed, and evaluating sentries. Optionally bypass human or entry gates with force=true.
Instructions
Completes a task. Stores result in task.data.result, sets status to completed, and evaluates sentries. Pre-flight gates: human tasks require confirm_human=true; tasks in 'available' state with unsatisfied entry sentries return 'blocked_by'; tasks with acceptance_criteria require the judge-layer evidence path — call cmmn-claim_complete_with_evidence instead, OR use force=true here to bypass. Use force=true to bypass any gate when the user has explicitly confirmed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm_human | No | Required to complete a task with task_type='human'. Default false: human tasks halt with action_required='user_confirmation' and the agent must surface the task to the user. Set to true ONLY after the user has explicitly confirmed. | |
| force | No | Bypass all completion gates (human-task confirmation AND entry-sentry check). Use when the user has explicitly asked to skip workflow gating. Default false. | |
| result | No | Optional result data to store as a map or JSON string (e.g., {client_id: '#16:0', notes: 'Selected NASTF'}) | |
| task_id | Yes | Task ID (@rid format) |