Author Topic: 2 copies of Activty or Action on Activity diagram  (Read 5222 times)

Igor173

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
2 copies of Activty or Action on Activity diagram
« on: March 27, 2007, 10:34:24 pm »
I've tried to put 2 copies of Activity on Activity Diagram but I've got and error -
"The diagram already contains an instance.... Currently only one instance is supported..."
The same error occure when I've tried to add copy of the Action.
Why I can't just copy an Activity I need to show Activity and activity parameters few times on the same diagram.

What can I do ?

Regards,
Igor
« Last Edit: March 27, 2007, 10:41:02 pm by Igor173 »

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: 2 copies of Activty or Action on Activity diag
« Reply #1 on: March 28, 2007, 12:08:27 am »
Think of (and study) UML 2.0 Interaction Overview diagrams. I use it in similar situations.
Hope the picture will help - it is just about actions and activities.

Jan 'Bary' Glas

robsch

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: 2 copies of Activty or Action on Activity diag
« Reply #2 on: April 11, 2007, 10:42:22 pm »
Hi,

you can drag and drop your activity from the project browser
into the diagram as "invocation of activity(action)".

The issue for me is to visualize in an activity,
that it was called with different parameters.
Does anybody know, how to do that?
I created a new thread for that.

robsch

robsch

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: 2 copies of Activty or Action on Activity diag
« Reply #3 on: April 11, 2007, 10:42:54 pm »
Hi,

you can drag and drop your activity from the project browser
into the diagram as "invocation of activity(action)".

The issue for me is to visualize in an activity,
that it was called with different parameters.
Does anybody know, how to do that?
I created a new thread for that.

robsch

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: 2 copies of Acti or Action on Activity diagram
« Reply #4 on: April 12, 2007, 02:35:38 am »
Hi robsch,

If I understand you correctly, you want to indicate which set of paths through an activity might be invoked if a particular parameter is allocated a particular value.

I would draw an object flow from the action pin which corresponds to the  parameter to the action that (first) uses it and set the name of the flow to a convention of {<value>} - where the value is enclosed in braces.  The subsequent pathing should reflect that value.

Does that help?

Paolo

It would be preferable if the Action Pin allowed an initial value which could be used for this purpose.

Votes?
[size=0]©2007 Paolo Cantoni, -Semantica-[/size]
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

robsch

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: 2 copies of Activty or Action on Activity diag
« Reply #5 on: April 12, 2007, 05:09:16 am »
Hi Paolo,

thank you for your reply.

i tried to use action pins, here is the example:
http://
http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=suggestions;action=display;num=1175067264


but i was not sure, if action pins correspond to the activity parameters.

Could you explain, what you mean with 'convention of {<value>}'
Wich painting do you mean?

Regards,

robsch



robsch

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: 2 copies of Activit or Action on Activity diag
« Reply #7 on: April 12, 2007, 05:38:13 am »
Quote
but i was not sure, if action pins correspond to the activity parameters.

I believe so, but I can't state that definitively.  Perhaps someone can confirm or refute?
Quote
Could you explain, what you mean with 'convention of {<value>}'
Which painting do you mean?
Since there's no way to formally assign the value of the parameter, you need some other convention to signify that.  The convention can be of your own making, just be consistent :).

I was really talking about what happens inside Custom Activity (in your example).  After seeing your example, I see I wasn't quite understanding your need.  However, you could still use the same idea.  In your Activity Test activity, you could have two actions that replace the red:Color and black:Color objects - called set Normal Priority Color and Set High Priority Color  you could then have an Object Flow from each to the relevant input pin of :CustomActivity and set the name of that flow to the (Enumerative Literal) value of the colour.

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