astah professional logo

Content

Back

Tutorial List

Next

Tutorial - [State Transition Path]

[State Transition Table] Create and refine a Statemachine diagram

We'll show you basic operations that you can do with State Transition Table using sample Statemachine diagram.

    1. Start Astah Professional and create a Statemachine diagram
    2. Find omissions in State Transition Table
    3. Refine diagram using State Transition Table (State-Event) style
    4. Export the State Transition Table to Excel

1. Start Astah Professional and create a Statemachine diagram

Download Astah Professional and install State Transition Table Plug-in (See how to install). To create a Statemachine Diagram, go to [Diagram] - [Statemachine Diagram].

Astah Professional sample Statemachine Diagram

Then draw a Statemachine diagram as figure below.
Astah Professional sample Statemachine Diagram

2. Find omissions in State Transition Table

Let's open the State Transition Table. If the State Transition Table Plug-in is installed correctly, [State Transition Table] tab should appear in the bottom pane just below the Diagram Editor.

Astah Professional sample Statemachine Diagram

Update the table by clicking [Update] button.

Astah State Transition Table

This table tells the transitions of states via each event. Let's see if there are any omissions from this table. You can see that the final state does not exist in the model. So let's add it in the statemachine diagram and define the "Turn off" event for the transition from Idle to final state.

Astah Professional sample Statemachine Diagram3

The State Transition Table will be updated automatically its table if the Auto-update mode is ON.
Astah Professional sample Statemachine Diagram3

3. Refine diagram using State Transition Table (State-Event) style

Now let's switch the State Transition Table view to (State-Event) from the combo box.

Astah Professional sample Statemachine Diagram3

Let's make the specification more clear by defining that nothing does happen when "Call Receiving" event happens while "Connected". Select the cell with "Connected" and "Call Receiving" and then select "ignore" from its combo box.

Astah Professional sample Statemachine Diagram3

4. Export State Transition Table to Excel

You can export the table to Excel and use it on your hand.

Astah Professional sample Statemachine Diagram3

Click "Export to Excel" and then specify where you want it to be exported.

Astah State Transition Table Export to Excel2

Two different views (Both State-State and State-Event) are exported into one excel file.

Astah State Transition Table Export to Excel3

Note

Exporting to Excel file would be very effective when the Statemachine complex and has much information in.