ibm Rational Rhapsody 7.5 — Drawing decision nodes

Create flow chart elements Drawing merge nodes A merge node combines different flows to a common target. To draw a merge node: 1. Click the MergeNode button on Diagram Tools . 2. Click in the flow chart to place the junction where you want it. 3. Draw flows going into, and one flow going out of the junction. 4. Label the flows if you want. For more information on merge nodes, see Statecharts . Drawing decision nodes Decision Nodes show branching conditions. A decision node can have only one incoming activity and two or more outgoing activity flows. The outgoing action flows are labeled with a distinct guard condition.

A predefined guard, denoted [else] , can be used for no more than one outgoing flow. A decision node appears as a diamond shape on a flow chart. To draw a decision node: 1. Click the DecisionNode button on Diagram Tools . 2. Click, or click-and-drag, in the flow chart to position the decision node where you want it. 3. Draw at least two actions that will become targets of the outgoing action flows. 4. Draw an incoming action flow from the source action to the decision node. 5. Draw and label the outgoing action flows from the decision node to the target actions. This flow chart shows the following behavior:

When the phone rings, if someone picks up on the other end, you can talk; otherwise, you must leave a message. The decision node represents the decision point. In other words, after the PhoneRings() operation, if SomeonePicksUp resolves to True , the Talk() operation is called. Otherwise, the LeaveMessage() operation is called. Use the Display Options window for the decision node to determine whether to display its name, label, or nothing. Rational Rhapsody 665