Book a Demo

Author Topic: Re-use of swimlanes  (Read 12839 times)

bullet

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • providentia per vinum...
    • View Profile
Re-use of swimlanes
« on: January 25, 2007, 08:13:28 am »
any help on how to re-use already defined swimlanes from one diagram to the other?
Couldn't find any topic in the forum nor on the cfm

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Re-use of swimlanes
« Reply #1 on: January 26, 2007, 12:55:44 am »
Swimlanes are not re-usable, but UML 2.0 presents partitions - these may help you. In UML words ActivityPartition is a NamedElement. And is reusable. In EA words is in repository.
Jan 'Bary' Glas

bioform

  • EA User
  • **
  • Posts: 230
  • Karma: +0/-0
  • Forty-Two?
    • View Profile
Re: Re-use of swimlanes
« Reply #2 on: January 30, 2007, 11:29:10 am »
If you WANT to re-use the swimlane from another diagram (e.g., say the activity diagram for a UC has a swimlane that corresponds to the UC's Loan Officer), just select that object from the Project Browser and drag it onto the new diagram (then select the option to LINK.)  That way if you "rename" the original swimlane, the change will propgate through your other diagrams... I do this for activities, actions, etc.

Say UC A ends with an action that would start UC B, then the last activity/action from UC A, I copy and past as a link to be the START of UC B...
Time is what keeps everything from happening at once, Space is what keeps it all from happening to you. <unknown>

bullet

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • providentia per vinum...
    • View Profile
Re: Re-use of swimlanes
« Reply #3 on: February 01, 2007, 01:51:24 am »
Thnx for the hints.
Don't use a db yet. I am having a hard time understanding where the swimlanes are in model or .eap in order to drag 'em

bioform

  • EA User
  • **
  • Posts: 230
  • Karma: +0/-0
  • Forty-Two?
    • View Profile
Re: Re-use of swimlanes
« Reply #4 on: February 02, 2007, 01:34:58 am »
The swimlanes are located as objects UNDERNEATH the activity diagram in the "Project" tab ((displayed in a heriachy".

The project tab is usually visible to the right of the diagram windows. Find the activity diagram, then you should see the "swimlanes" located as "children" of the diagram, also the activities, actions, decisions, etc. are also located there...

So IF you wanted to "share/re-use" the swimlane... either from the first activity diagram, click the swimlane to select it, then Ctrl-C to copy it to the clipboard. Then click the background of the second diagram, and using the menu selection Edit|Paste Elements|as Link (or just press Shift+Insert) and they will appear on the diagram (linked to the original object)

Once you have done, that go back to the first diagram, rename the swimlane, check the second diagram and you should see that the swimlane name changed automatically...

Hope that helps...
Time is what keeps everything from happening at once, Space is what keeps it all from happening to you. <unknown>

bullet

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • providentia per vinum...
    • View Profile
Re: Re-use of swimlanes
« Reply #5 on: February 02, 2007, 01:49:30 am »
thnx. It seems to me, that it must be a display issue since I do NOT see the swimlanes as "childs" in the project browser. Any thoughts?

bioform

  • EA User
  • **
  • Posts: 230
  • Karma: +0/-0
  • Forty-Two?
    • View Profile
Re: Re-use of swimlanes
« Reply #6 on: February 02, 2007, 01:53:49 am »
I believe they are located underneath the object that you created the activity diagram for (if you used the object's context menu) or in the package that you created the diagram in...
Time is what keeps everything from happening at once, Space is what keeps it all from happening to you. <unknown>

bioform

  • EA User
  • **
  • Posts: 230
  • Karma: +0/-0
  • Forty-Two?
    • View Profile
Re: Re-use of swimlanes
« Reply #7 on: February 02, 2007, 01:55:04 am »
Another way to find them, is just click the swimlane, then Alt-G, and it will highlite the item in the project tab heirarchy!
Time is what keeps everything from happening at once, Space is what keeps it all from happening to you. <unknown>

bullet

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • providentia per vinum...
    • View Profile
Re: Re-use of swimlanes
« Reply #8 on: February 02, 2007, 01:59:45 am »
 ???
nope, doesn't show. I tried to search for the objects in the proj. browser, too, without any luck.
I am pretty sure to have a display setting, that is not check or so, but can't find it, yet. (no luck via the 'view' settings and richt click
???

I would 've expected this in -> diagram -> configure swimlane  :-/
« Last Edit: February 02, 2007, 02:02:08 am by bullet »

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Re-use of swimlanes
« Reply #9 on: February 02, 2007, 04:41:05 am »
I think the issue here is that you're using swimlanes which are effectively attributes of the diagram itself (configure swimlanes appears on the diagram menu), rather than the partitions which have been mentioned which are elements on the diagram and so appear in the project browser and have their own element menu.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Re-use of swimlanes
« Reply #10 on: February 02, 2007, 04:57:21 am »
I think Graham has hit the nail on the head.  Swimlanes are UML 1.x constructs and EA implemented them in a certain way - such that they are nested within a non-UML construct (the Diagram).

Partitions, on the other hand, are UML 2.x constructs and as Graham says are first-class (named) elements in their own right.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

bullet

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • providentia per vinum...
    • View Profile
Re: Re-use of swimlanes
« Reply #11 on: February 02, 2007, 05:43:11 am »
 :-X

BIIIIG tomatoes on my eyes!
Now the penny has dropped, finally. Thnx.

Hopefully that post will help other, who might be as blind as I was, freshly hitting EA.

cheers

bioform

  • EA User
  • **
  • Posts: 230
  • Karma: +0/-0
  • Forty-Two?
    • View Profile
Re: Re-use of swimlanes
« Reply #12 on: February 02, 2007, 07:58:58 am »
I checked with my model, and my "swimlanes" are in fact partitions (thus the reason they exist as their own objects), but when I create one... they are in fact placed under the object that the activity diagram is associated with (in my case a Use Case.)

Another one of the advantages of "re-using" a partition would be the ability to "list" all of the activities or actions associated with it. So if my UC activity diagram includes partitions that represent two actors (say a contributor & a editior), and these partitions are linked across several use cases, you would then be able to list the actions and activities that a contributor participates in and those that a editor does.

This seems to me to be VERY VERY helpful in the generation of both training material, operational docuements, etc. As a BIG part of my effort is toward generation of system documentation from the model (Sys Req Spec, External Sys Interface Spec, High-level Design Documents, Test Plans, etc. THIS IS VERY POWERFUL... Take the time to model well upstream during req. engineering effort, and reap the benefits downstream in Design, Test, Training, & Deployment/Operations documentation...
=========================================================
How do you create "Swimlanes" as part of a diagram? NOT that I want to... but trying to understand HOW the problem was created in the first place?
Time is what keeps everything from happening at once, Space is what keeps it all from happening to you. <unknown>

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Re-use of swimlanes
« Reply #13 on: February 02, 2007, 08:55:58 am »
Right-click on the diagram and choose Configure Swimlanes.
No, you can't have it!

bioform

  • EA User
  • **
  • Posts: 230
  • Karma: +0/-0
  • Forty-Two?
    • View Profile
Re-use of swimlanes (Partitions)
« Reply #14 on: February 02, 2007, 09:14:19 am »
Just a question about organizing my partitions...

I have a use case model view, that contains an Actor Package, which a diagram that displays my Actor relationships (generalizations). Since for my UC activity diagrams, they contain one or more human actors, I have placed the corresponding partion under the actor (owns) and created an association...

Questions:
1.) Anything "syntactically" incorrect in this?
2.) SHOULD I create the association between the partition and the corresponding actor? (I believe it would be helpful to achieve some of what I posted earlier) And what should the assoication type be? Trace, Dependency, or?

Thanks ahead of time for your thoughts and comments...
Time is what keeps everything from happening at once, Space is what keeps it all from happening to you. <unknown>