bpmn_history
Reverse or re-apply edits to a BPMN diagram using the bpmn-js command stack, including multiple undo/redo steps. Note: layout operations bypass the stack and cannot be undone.
Instructions
Undo or redo changes on a BPMN diagram. Uses the bpmn-js command stack to reverse or re-apply operations. Supports multiple steps. Note: layout operations (layout_bpmn_diagram) bypass the command stack for boundary event repositioning and the normaliseOrigin fallback — these specific changes cannot be undone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Number of steps to undo/redo (default: 1). | |
| action | Yes | The history action to perform: 'undo' to reverse, 'redo' to re-apply. | |
| diagramId | Yes | The diagram ID |