A State represents a significant condition in the life of a Block. State Machines describe how a Block transitions from one State to another and defines what logical behaviour (Activities/Actions owned by the Block) are performed when entering or exiting a State. This type of diagram is great for describing an integrated view of a Block’s behaviour because all the individual threads of behaviour, defined for a Block using Activity Diagrams, are integrated into a single executable model using the stm diagram.
An example stm is:
The symbols available in stms are:
If you want to see the referenced element in the EVENT frame follow the steps shown in the following figure.The @REF_ID element is cross referenced to the State element by an item reference relationship. The following figure shows the referenced element in the sidebar and displayed in the bottom compartment of the State symbol.
The symbols along with their default stereotypes, referenced elements, stereotype frames and cross reference link attributes are: