Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Example State Machine

The following diagram illustrates some features of State Machines.

Example of a State Machine or State Chart

Composite States:

The chain-link symbol in the bottom right corner of the Saved state indicates that it is a Composite state.

You have two options for exposing the contents of a composite State. Firstly, you can double-click on the element to display its child diagram separately, as shown below:

compstate

 

Alternatively, you can right-click on the composite element and select the Advanced | Show Composite Diagram context menu option, which displays the child diagram in the context of the parent diagram.

StateMachineContext

Notes:

  • State elements can display either with or without a line across them; the line - as shown above - displays when the element has features such as attributes (which could be hidden) or when the Show State Compartment checkbox is selected in the Objects page of the Options dialog

Learn more: