tinyactors states
List each chart's states as a tree in document order.
Usage
tinyactors states [options] INPUT...Lists each chart's states as a tree in document order: id, kind, parent, depth and initial targets. Counts each state's transitions, invokes and data. Reads one image (.tai), one snapshot, one system manifest or SCXML charts, compiled together into one image first. --segment picks a snapshot's image, and - reads standard input.
Options
-W, --warnings-as-errorsRefuse a chart that compiles with a warning.-I, --include DIRSearchDIRfor a src that is not beside the file naming it, in the order given. Repeatable.-c, --chart NAMELook at the chart namedNAMEonly. Repeatable.-s, --segment NRead the image that segment N of a snapshot runs. Default: the newest live segment.
Configure output formats like -f json using the shared options on the command reference.
Examples
tinyactors states order.scxml# States
## Charts
### Chart 1: order
- **Name**: order
#### States
| Index | ID | Kind | Parent | Depth | Initial | Transitions | Invokes | Data | On entry | On exit | Done event |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 0 | /scxml | compound | | 0 | open | 0 | 0 | 3 | no | no | |
| 1 | open | atomic | /scxml | 1 | | 3 | 0 | 0 | no | no | |
| 2 | paying | atomic | /scxml | 1 | | 3 | 0 | 0 | yes | yes | |
| 3 | paid | atomic | /scxml | 1 | | 1 | 0 | 0 | no | no | |
| 4 | shipped | final | /scxml | 1 | | 0 | 0 | 0 | no | no | |
| 5 | cancelled | final | /scxml | 1 | | 0 | 0 | 0 | no | no | |List the states of a chart.
tinyactors states --chart payment system.tai# States
## Charts
### Chart 1: payment
- **Name**: payment
#### States
| Index | ID | Kind | Parent | Depth | Initial | Transitions | Invokes | Data | On entry | On exit | Done event |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 0 | /scxml | compound | | 0 | pending | 0 | 0 | 1 | no | no | |
| 1 | pending | atomic | /scxml | 1 | | 2 | 0 | 0 | no | no | |
| 2 | authorized | atomic | /scxml | 1 | | 2 | 0 | 0 | no | no | |
| 3 | settled | final | /scxml | 1 | | 0 | 0 | 0 | no | no | |
| 4 | declined | final | /scxml | 1 | | 0 | 0 | 0 | no | no | |List the states of one chart of an image.
tinyactors states --segment 1 shop.snapshot# States
## Charts
### Chart 1: order
- **Name**: order
#### States
| Index | ID | Kind | Parent | Depth | Initial | Transitions | Invokes | Data | On entry | On exit | Done event |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 0 | /scxml | compound | | 0 | open | 0 | 0 | 4 | no | no | |
| 1 | open | atomic | /scxml | 1 | | 3 | 0 | 0 | no | no | |
| 2 | paying | atomic | /scxml | 1 | | 3 | 0 | 0 | yes | yes | |
| 3 | paid | atomic | /scxml | 1 | | 2 | 0 | 0 | no | no | |
| 4 | shipped | final | /scxml | 1 | | 0 | 0 | 0 | no | no | |
| 5 | refunded | final | /scxml | 1 | | 0 | 0 | 0 | no | no | |
| 6 | cancelled | final | /scxml | 1 | | 0 | 0 | 0 | no | no | |List the states in the image of a snapshot's segment 1.
Exit status
1An input is refused: it does not compile or verify, or it is damaged or of an unknown format.3A file cannot be read or written, or memory runs out.
Related pages
tinyactors transitionsList each chart's transitions with events, conditions and targets.tinyactors eventsList every event name and the transitions, raises and sends using it.tinyactors dataList each chart's data declarations.tinyactors expressionsList each chart's expressions and scripts with where they are.tinyactors pathFind the shortest path to a state: events, conditions and transitions.tinyactors graphDraw each chart, or list its boxes and edges.tinyactors disassembleList each chart's executable content instruction by instruction.tinyactors inspectShow what an image, a snapshot or a blob holds.