Author Topic: How to add swimlanes to the activity diagram?  (Read 9600 times)

Kulagin

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
How to add swimlanes to the activity diagram?
« on: June 21, 2019, 10:20:44 pm »
I'm trying to add swimlanes to the activity diagram, like this:

And I don't understand how to do it in EA. I found it in user guide(Swimlanes) but I don't understand how to make it work.

Here's what I tried so far:
https://www.youtube.com/watch?v=Z1OnYUbTfXc

So how do I create swimlanes in EA?
« Last Edit: June 21, 2019, 10:35:46 pm by Kulagin »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to add swimlanes to the activity diagram?
« Reply #1 on: June 21, 2019, 10:25:19 pm »
You don't add swimlanes to an Activity but Activity Partitions.
Simply select it from the toolbox and put it on the diagram.

Swimlanes in EA are a different (only graphical) thing that don't have any "real" model value.
They should only be used to make a diagram visually more attractive, not for anything meaningful.

Geert

Kulagin

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: How to add swimlanes to the activity diagram?
« Reply #2 on: June 21, 2019, 10:54:30 pm »
Ok, thanks. I'll try that.

Kulagin

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: How to add swimlanes to the activity diagram?
« Reply #3 on: July 02, 2019, 01:06:10 am »
You don't add swimlanes to an Activity but Activity Partitions.
Simply select it from the toolbox and put it on the diagram.

Swimlanes in EA are a different (only graphical) thing that don't have any "real" model value.
They should only be used to make a diagram visually more attractive, not for anything meaningful.

Geert
Ok, I did that and here's what I get:


How do I rotate it by 90° clock-wise so text appears at the top and is horizontal? So it looks like on the screenshot below. It also looks like it doesn't add a line at the end of the activity partition? How to add a line at the end of activity partition, so the shape is complete?
I went through every single option in properties of this element and didn't find these options. I just want to make it look normal, like this:

Kulagin

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: How to add swimlanes to the activity diagram?
« Reply #4 on: July 02, 2019, 01:14:10 am »
Ok I found how to rotate it, I had to click on this icon:


But how do I complete the shape? Because without the line at the end it is incomplete.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to add swimlanes to the activity diagram?
« Reply #5 on: July 02, 2019, 01:22:02 am »
An ActivityPartition doesn't have such a line at the end.
The way EA does it is correct (I just checked the UML specs and all the examples there don't have that bottom line either)

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to add swimlanes to the activity diagram?
« Reply #6 on: July 02, 2019, 03:53:59 am »
Just as a side note: your example model from the last picture would never work.

q.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: How to add swimlanes to the activity diagram?
« Reply #7 on: July 02, 2019, 08:14:18 am »
Just as a side note: your example model from the last picture would never work.

Yeah, an Enterprise Architect supporting a project team - it would never happen :-)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to add swimlanes to the activity diagram?
« Reply #8 on: July 02, 2019, 07:17:01 pm »
lol, no. Actually it's semantically incorrect as it has blocking waits. The central Model action has 5 incoming edges but only the start fires a token. None of the others have any token available. This is not an AD but a Powerpoint presentation (aka nonsense or: where came all those Indians from? So many arrows...)!

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: How to add swimlanes to the activity diagram?
« Reply #9 on: July 03, 2019, 05:33:34 pm »
lol, no. Actually it's semantically incorrect as it has blocking waits. The central Model action has 5 incoming edges but only the start fires a token. None of the others have any token available. This is not an AD but a Powerpoint presentation (aka nonsense or: where came all those Indians from? So many arrows...)!
If you read it as BPMN (with lanes) it's worse. Each activity will start for a single incoming event and on completion will activate all outgoing relationships.
Eve

support@sparxsystems.com

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to add swimlanes to the activity diagram?
« Reply #10 on: July 03, 2019, 06:38:09 pm »
The rules for ADs are the same here as in BPMN. That's why I said it's actually Powerpoint.

q.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: How to add swimlanes to the activity diagram?
« Reply #11 on: July 04, 2019, 11:26:19 am »
The rules for ADs are the same here as in BPMN. That's why I said it's actually Powerpoint.

or "an engagement model" <shudders>

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: How to add swimlanes to the activity diagram?
« Reply #12 on: July 04, 2019, 02:05:56 pm »
The rules for ADs are the same here as in BPMN. That's why I said it's actually Powerpoint.
They are very different.

Quote
An ExecutableNode shall not execute until all incoming ControlFlows (if any) are offering tokens.
Quote
Uncontrolled flow means that, for each token arriving on any incoming Sequence Flows into the Activity, the Task
will be enabled independently of the arrival of tokens on other incoming Sequence Flows.
Reading it as a UML Activity Diagram means that nothing ever happens. Reading it as a BPMN Process means unbounded exponentially increasing work.
Eve

support@sparxsystems.com

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to add swimlanes to the activity diagram?
« Reply #13 on: July 04, 2019, 03:56:44 pm »
Well, yes, admittedly I have no big plan of BPMN. Anyhow, the OP is talking about AD (that's what the title says). So telling it would not comply with a BPMN is a bit off. At least.

q.