|
|
Add Swimlanes to Diagram |
This helper adds swimlanes to an activity diagram based on the parts of the owner.
|
Applicable To |
Activity
Diagram |
|
Menu
Entry |
Power
Pack Diagram Tools Add Swimlanes to Diagram |
|
Demonstration |
The helper first checks there are swimlanes already on the diagram (swimlanes may only be added to a diagram with no swimlanes). The helper then checks the owner of the activity and looks for any parts it has. If the owner has more than one part typed by the same classifier then for each part, a new swimlane is added to the diagram and the swimlane is mapped to the part. If each part is unique (that is the same classifier is not used more than once) then a swimlane is generated for each classifier and is mapped to the classifier that types the part.
In addition, the swimlane name is modified to reflect the classifier (classiferNameSwimlane).


Unique Classifiers


Valve Classifier Used More Than Once