Question & Answer
Question
How can you use TOKEN with parallel activity diagram flows?
Cause
You want to have multiple inputs to an activity diagram via activity Parameters, but you are not sure how to use the TOKEN attribute for multiple parameters.
Answer
"TOKEN" is a member attribute of any class that contains an Activity Diagram.
Therefore, it can be used safely at multiple points throughout the diagram.
This example shows how the TOKEN can be used to evaluate parallel decision nodes.
To use this example (attached below):
1. GMR the project
2. Press Go idle in the animation toolbar.
3. Pause execution in the animation toolbar.
4. Open the animated activity diagram for "actLogic" (via "actRun")
5. Generate event with arguments
6. Use Go Step in animation toolbar to step through execution.
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg22017026