Wednesday, February 6, 2019

Indicate a decision in an activity diagram

Indicate a decision in an activity diagram

  1. In an activity diagram, drag the Decision shape onto the drawing page.

  2. Double-click the Decision shape to add a name and other property values.

  3. Use a Control Flow shape to connect the action state that produced the decision with the Decision shape. Glue the Control Flow shape's endpoint without an arrowhead to a connection point Connection point image - blue X on the Action State shape and glue the Control Flow endpoint with an arrowhead to a connection point on the Decision shape.

  4. Use Control Flow shapes to connect the Decision shape to the possible actions resulting from the decision. Glue the Control Flow shape endpoints without arrowheads to connection points on the Decision shape and the Control Flow shape endpoints with arrowheads to connection points on the resulting action states.

  5. Double-click each control flow resulting from the decision. In the UML Transition Properties dialog box, click Transition. Select Guard, select a language, and in Body type a guard condition. Click OK.

Use the diamond shape to indicate a decision point

Guard conditions indicate the conditions that produce each resulting action state.

No comments:

Post a Comment