Book a Demo

Author Topic: Multiple combined fragment instances per diagram  (Read 6035 times)

jamessher

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Multiple combined fragment instances per diagram
« on: March 27, 2008, 01:26:22 am »
Hi,

I have defined a 'seq' combined fragment in a sequence diagram as a way to capture a reusable piece of sequence. I can use it other diagrams but only once per diagram. I need it to appear multiple times in the same sequence diagram but when I try to add 'as Simple Link' I get the error

'The diagram already contains an instance of the element you are trying to paste. Currently, only one instance is supported, so you cannot paste the element there'

If I try to add 'as Instance of Element (Object)' I get the same error !

Surely this should be possible. It should be OK to show a 'seq' more than once in a sequence diagram. Note that I don't want to show a loop here - only the fact that a piece of sequence is repeated later in the sequence diagram.

I am using EA 7.0.

Any help or guidance would be appreciated.

Thanks
    James

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Multiple combined fragment instances per diagr
« Reply #1 on: March 31, 2008, 04:54:21 pm »
Hmm, I'm guessing you bumped into one of the most annoying "features" of EA. You cannot add an representation of an element on a diagram twice.
This is once more an example of why Sparx should fix this ASAP.
I'm afraid however that this fix might take a while as I except that allowing multiple instances of the same object on a diagram would lead to major design changes in the software. (probably even a database change)

jamessher

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Multiple combined fragment instances per diagr
« Reply #2 on: April 01, 2008, 07:35:42 pm »
Hi Geert, I can see why having multiple occurrences of same classifier on one diagram could be confusing or problematic from UML point of view, but surely a fragment of a sequence diagram is not a classifier and it should be fine to have multiple occurrences in a sequence diagram. EA won't even allow me to add a new instance of the fragment !
This is a big nuisance for us. We have sequences where we want to illustrate the same fragment in multiple places but EA doesn't let me.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Multiple combined fragment instances per diagr
« Reply #3 on: April 01, 2008, 10:39:10 pm »
From an UML point of view I don't see why having two instances of the same classifier on a diagram should be problematic.
As far as I can see there is nothing in UML that forbids that.
I believe this is a design decision by Sparx that is in no way supported by some sort of UML restriction.

MaXyM

  • EA User
  • **
  • Posts: 120
  • Karma: +8/-0
    • View Profile
Re: Multiple combined fragment instances per diagram
« Reply #4 on: February 23, 2019, 01:01:57 am »
11 years later, this issue remains unresolved.
Putting the same Interaction Occurrence element on the diagram twice is not possible.

Is there any other way to depict usage of the same subsequence multiple times on the same sequence diagram?

BTW, in EA14.1 I cannot draw message from lifeline to Interaction Occurrence using quick linker. I have to chose Message from toolbox. Is it expected behavior? Interesting is I can drag the message from Int Occ to the lifeline and then reverse the message direction.
« Last Edit: February 23, 2019, 01:05:34 am by MaXyM »

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Multiple combined fragment instances per diagram
« Reply #5 on: February 25, 2019, 07:44:07 am »
11 years later, this issue remains unresolved.

If you have a problem please create your own post.  We don't need the reanimated corpses of old posts stumbling about.  This is a user forum; what ever clever point you think you are making to Sparx just comes across as snide and a waste of viewing time for other users.

MaXyM

  • EA User
  • **
  • Posts: 120
  • Karma: +8/-0
    • View Profile
Re: Multiple combined fragment instances per diagram
« Reply #6 on: February 27, 2019, 01:14:45 am »
It seems you end reading after the first line. Next ones reveal some questions you missed. Questions related to OP.
I don't think it would be good idea to scatter the same subject across multiple threads.