Creating a Textual State Machine
You can create a textually defined state machine by converting an existing graphically defined state machine. Follow these steps:
- Right-click on a capsule state machine in the Project Explorer and perform the command Refactor - Create Fragment.
- A dialog appears. Select the option to save the state machine in an .srt file.

- Press OK and confirm the update of references to the state machine in the workspace. The state machine diagram will be replaced with a text file that contains a textual definition of the state machine.
To create a new capsule with a textual state machine, first create the capsule as usual. It will get a minimal state machine defined with a diagram. Then follow the above steps to convert it into a textual state machine.
