Chapter 5 Building Dynamic Diagrams


Conditional branches

A conditional branch joins multiple transitions. It is a place within an activity diagram where a specific event leads to more than one possible outcome, each of which has an associated guard condition or the keyword ELSE.

Symbol


Factorizing conditions

If you are working with a conditional branch, it is useful to write a condition on the decision in order to factorize the conditions attached to the transitions, it allows you to simplify the process whenever you are using long and complex conditions.

Example


Use the Condition tab in the decision property sheet to write the following condition: Total * NB + VAT > 10.000. Then use the Condition tab in both transitions property sheet: enter True in one and False in the other.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.