When to use
- Debug a workflow execution that failed or returned unexpected results
- Inspect node-level input/output for a specific execution
- Fetch sub-workflow execution details recursively
- Analyze execution timing and identify bottlenecks
Prerequisites
codika-helperCLI installed and authenticated- A deployed and triggered workflow
- An execution ID (from the
triggercommand response)
Typical debugging flow
Command
Arguments
| Argument | Description |
|---|---|
<executionId> | Codika execution ID from trigger response |
Options
| Option | Description | Default |
|---|---|---|
--process-instance-id <id> | Explicit process instance ID | Auto from project.json |
--path <path> | Path to folder with project.json | Current directory |
--deep | Recursively fetch sub-workflow executions | Off |
--slim | Strip noise (pairedItem, workflowData) | Off |
-o, --output <path> | Save to file instead of stdout | stdout |
--json | JSON output | — |
Recommended flags
For most debugging, use both flags together:--deepgives you the complete execution tree including sub-workflows--slimremoves noisy metadata for cleaner, more readable output
Examples
Process instance ID resolution
--process-instance-idflagdevProcessInstanceIdin project.json at--pathdevProcessInstanceIdin project.json in current directory
Output
Deep mode details
When--deep is enabled, the CLI:
- Fetches the main execution
- Identifies nodes that called sub-workflows (Execute Workflow nodes)
- Recursively fetches each sub-workflow execution
- Attaches results as
_subExecutionson the parent node
Exit codes
| Code | Meaning |
|---|---|
0 | Success |
1 | API error or execution not found |