Wednesday, February 21, 2007

Creating a partition in Activity Diagram

Today I get some free time, so I am trying to learn ways to create models in RSA, and really want to get on the boat of Model Driven Development. I am following a pretty neat tutorial, and at a point I was doing an exercise which helps me create an Activity Diagram.

There are differences in naming between UML 1.4 and UML 2.0, one of the differences is Swimlane vs Activity Partition in Activity Diagram. In RSA, when I create a partition, the default "ActivityX" partition will always show on the left side:
Which is really annoying. I was looking up google and could not find a single clue (did find one blog somewhere, but the author removed the flash clip he created himself).

Finally I had to go through trials and errors, and found out this little trick:

1. Right Click on the label Activity1 under the Activity1 "Tab" (with the blue color rounded rectangle)
2. Select Filters -> Show Compartment Title to shrink the column.
3. If you want to hide the column totally , do Filters -> Show Activity Compartment

To re-enable the column and the compartment title:
1. Right Click on the Activity1 "Tab" this time
2. Select Filters -> Show Activity Compartment to enable the column
3. Right Click on the column under the Activity1 "Tab"
4. Select Filters -> Show Compartment Title to enable the column title

Hope this helps!

1 comment:

puika said...

wow~ amazing.
I have been struggling with this for a long time. Now I found out the solution.
Thanks geek