bpmn_build
Lay out and validate a BPMN diagram from a JSON spec, then write SVG, PNG, and .bpmn files with error checks for Camunda import.
Instructions
Lay out and check a diagram, and write the files.
spec: the diagram as a JSON object (see bpmn_spec_guide). name: file name without extension (letters, digits, - and _). out_dir: folder under the current working folder for the outputs. stage: "svg" = checks plus SVG only (use while drafting); "all" = also PNG, .bpmn and the Camunda import check (use only after the user approved the drawing). preview: also write a look-at-it PNG (svg stage) or a Camunda preview (all stage).
Returns ok, errors (fix every one and build again), warnings, files (relative paths) and the log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | diagram | |
| spec | Yes | ||
| stage | No | svg | |
| out_dir | No | bpmn-output | |
| preview | No |