Please note : This help page is for an older version of Enteprise Archtiect. The latest help can be found here.

Topic
Prev Next

Insert New State

Options

Action

Description

Insert a new State in the StateMachine table

You can insert a new State in the StateMachine table, using one of these methods:

1  In the top left cell in the StateMachine table, move the cursor to the word State to display a + at the end of the word; click on the + to create a new State

2  Right-click in the top left cell in the StateMachine table and select 'Add State'

3  Right-click on an existing State cell in the StateMachine table and select:

     -  'Insert New State Before' to insert a new State before the current State, or

     -  'Insert New State After' to insert a new State after the current State

4  Click on an existing State cell in the StateMachine table, and press the Insert key to create and insert a new State above the selected State

5  In the Toolbox, on the 'State Elements' page, click on an element and then click on:

     -  The diagram background to add a new State to the end of the table, or

     -  An existing State cell to add the new State just above it

From the 'State Elements' page of the Toolbox you can insert State, Initial, Final, Entry, Exit and Terminate elements.

Add a Substate to a selected State

To add a Substate to a selected State, right-click on the required State cell in the StateMachine table, and select 'Add Substate'; Enterprise Architect adds the Substate to the State.

If the selected State does not allow a Substate, the 'Add Substate' option is grayed out.

You can also drag one existing State over another; if the second State allows Substates, the dragged State then becomes its Substate.

Similarly, you can change the parent State of a Substate by dragging the Substate from the original parent State to a different State.

Remove the parent relation of a Substate and make it a separate State

To remove the parent relation of a Substate and make it a separate State, right-click on the Substate in the StateMachine table and select 'Remove Parent Relation'; the Substate cell becomes a State cell.

You can also drag and drop the Substate onto the top left cell of the StateMachine table; the dragged Substate again becomes a State cell.