IBM Support

Using TOKEN with parallel activity diagram flows

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":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1;8.1.1;8.1.2;8.1.2.1;8.1.3;8.1.4;8.1.5;8.2;8.2.1;8.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg22017026