State Diagrams

Business process models do not lend themselves to implementation in an object-oriented way. If you go the UML way, you will break down the business process and express it in terms of states for each object involved in the process. State diagrams are used to illustrate the possible states of an object and the causes and effects of those state changes within the object.

Let's take a short look at the States themselves. In the diagram toolbar you find three different symbols:

Figure 10-4. A State diagram

Editing States

Actions and activities are added from within the state's Property tab using the 'Add' button. Whenever you add an action or activity, Poseidon will automatically navigate to the new element. Upon return to the parent element, the 'Add' button will no longer be visible, rather it will be the 'Delete' button, indicating that the element has been successfully added.

To remove an existing element, use the 'Delete' button. Note that this will delete the element entirely from the model.

Some items within the Property tab will appear in blue - these are in effect hyperlinks to the element. Clicking on them will navigate to the element named.

Editing Actions and Activities

Actions and Activities are elements in themselves, just like any other part of the model. As such, editing them is done in the same way as any other element - just like an attribute is a part of a class.

For more information about the specific fields, see the Element section the Section called States in Chapter 12.

Diagram Elements

Toolbar

Select

Simple State

Composite State

Concurrent State

Transition

Initial State

Final State

Synchronization State

Deep History

Shallow History

Choice

Junction

Fork

Join

Comment

Connect Comment to Element

Text

Circle

Rectangle

Polygon

Polyline

Repaint