cmmn-execute_stage
cmmn-execute_stageExecute a CMMN stage by traversing tasks depth-first; human tasks can be paused, skipped, or queued. LLM must handle 'llm_execute' prompts immediately by completing tasks.
Instructions
Executes a stage by traversing its task tree depth-first. Human tasks pause execution. IMPORTANT: When the result contains next_actions with action_required='llm_execute', YOU (the calling LLM) MUST process each prompt immediately. Read the 'prompt' field, execute the work it describes, then call cmmn-complete_task with the task_id and your result. Do NOT just report these back to the user — you are the executor. The stage is not complete until all llm_execute actions have been processed and their tasks completed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Additional context for process tasks | |
| human_task_mode | No | How to handle human tasks: 'pause' (default), 'skip', 'queue' | |
| max_depth | No | Max nesting depth for nested stages (default: 5) | |
| max_items | No | Max items to execute before returning (default: 10) | |
| stage_id | Yes | Stage ID to execute (@rid format) |