Support for composite states
The model tooling provides support for composite states. A composite state is a state that contains other states. Composite states are used to simplify the model diagrams and minimize the number of errors. Existing states can be combined into a composite state by using the refactoring aggregate function.
The following list shows the composite state scenarios that the extractor supports.
- If a composite state contains a self-referencing event transition, it is applied to all of its internal states.
- If a composite state contains an event transition to another external state, it is applied to all of its internal states.
- If a composite state contains an event transition to one of its internal states, it is applied to that internal state from all of the other internal states.
The following figure shows these scenarios:
The following figure shows how the model extractor views this composite state and will generate the scripts
accordingly.