| name | incidents |
| description | List open incidents with element context and suggested actions. Usage: /bpmnkit:incidents [--process-id X] |
List open incidents: $ARGUMENTS
Steps:
-
Parse $ARGUMENTS: extract --process-id <value> if present.
-
Build command: casen incident list --output json
- If
--process-id given: append --process-definition-key <value>
-
Run via Bash and parse JSON.
-
Display as a table:
| Incident ID | Process | Element | Error Type | Since | Action |
|---|
| 4503... | order-process | validate-order | JOB_NO_RETRIES | 2h ago | Retry or fix worker |
-
Suggested action column logic:
JOB_NO_RETRIES → "Check worker logs, then: casen job fail <key> --retries 3"
UNHANDLED_ERROR_EVENT → "Add error boundary to element, redeploy"
CONDITION_ERROR → "Fix FEEL expression on outgoing flow"
- Other → "Investigate:
casen process-instance get <instance-id>"
-
If zero incidents: "No open incidents."
-
Summary: "X open incidents across Y processes."