Check activity diagram text
check_activity_diagramUse this when the user wants activity diagram text checked without a drawing, for example "is my flow valid?" or "which steps are not reachable?". Takes the same diagram text as make_activity_diagram. Returns ready true or false; when a line breaks the grammar or a block is not closed, the line number, the token and the reason; otherwise the counts, the steps with their block path, steps that are not reachable (found by a breadth-first search from the start), and empty branches. Does not draw the diagram or make files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram | Yes | The activity in this line grammar, one statement per line, up to 40,000 characters, 2,000 lines and 400 characters per line (comments included): start | stop | end | :Action text; | if (condition) then (label) ... elseif (condition) then (label) ... else (label) ... endif | while (condition) is (label) ... endwhile (label) | fork ... fork again ... end fork | note: text | # comment. Labels are optional; conditions and labels must not contain ( or ). Example: "start\n:Receive order;\nif (in stock?) then (yes)\n:Ship it;\nelse (no)\n:Refund;\nendif\nstop". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | Yes | ||
| nodes | Yes | ||
| ready | Yes | ||
| shown | No | ||
| counts | No | ||
| limits | Yes | ||
| grammar | Yes | ||
| analysis | No |