cmmn-execute_task
cmmn-execute_taskExecute a task directly. Automatic tasks run instantly; human tasks need confirmation. If a prompt appears, the LLM must execute it and call cmmn-complete_task with the result.
Instructions
Executes a single task directly. Process/decision/case tasks execute automatically. Human tasks return an error (use update_task_status instead). IMPORTANT: When the result contains action_required='llm_execute' or a 'prompt' field, YOU (the calling LLM) MUST execute the prompt immediately, then call cmmn-complete_task with the task_id and your result. You are the executor — do the work, don't just report it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm_human | No | Required to execute a task with task_type='human'. Default false: human tasks halt with action_required='user_confirmation'. Set to true ONLY after the user has explicitly confirmed. | |
| context | No | Additional context for execution | |
| force | No | Bypass completion gates: skip the human-task confirmation AND the entry-sentry check. Use when the user has explicitly asked to skip workflow gating. (default: false) | |
| inline | No | For ai_agent tasks: return prompt to calling LLM instead of queuing work item. The LLM executes inline and calls cmmn-complete_task with result. (default: false) | |
| task_id | Yes | Task ID to execute (@rid format) |