Book a Demo

Author Topic: Sequence Diagram Craziness  (Read 3420 times)

danS

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Sequence Diagram Craziness
« on: February 20, 2006, 08:11:41 pm »
Hello!

I have been screwing around with a sequence diagrams trying to get it right, but EA is not cooperating. Whenever I use the new and delete messages I get really odd behavior with the length of lifelines and the X at the end of the line.

For example, Object A creates B using the new lifecycle stereotype. Object C sends a normal sychronous message to B, and B all the sudden decides to destroy itself. The lifeline ends and I see an X.

Another example is C sends itself an self-message with a lifecycle stereotype of delete. The lifeline ends but there is no X. After screwing around a little bit, it see the X is underneath the lifeline for the self-message.

Has anyone else experienced these things?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Sequence Diagram Craziness
« Reply #1 on: February 20, 2006, 08:58:35 pm »
Try Tools | Options | Sequence and clear the option labelled "Garbage Collect (auto delete)".
The Sparx Team
[email protected]

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Sequence Diagram Craziness
« Reply #2 on: February 20, 2006, 09:48:06 pm »
No KP - he's right there are problems with all these things with the "new" message re lifelines. I have sent in some bug reports a loooong time ago but they dont seem to have made the fix list yet.

Dan, its even worse than you think.  Try adding some alt fragements, if the constructor is called in each of the alternate groups, the lifeline goes completely wacko.  In fact, at the end of the day, OMG haven't really thought about the impact of alt fragements on constructors etc.  Its a shame really because one day soon someone may come up with an idea like constructor overrides...


:(
bruce

p.s I dont use seq diags too much so I haven't persued these UI issues as much as <<someone from WA>> might have.

(22/2 Minor updates and completion from where I got interrupted.)
« Last Edit: February 21, 2006, 02:42:20 pm by sargasso »
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

rpbostock

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Sequence Diagram Craziness
« Reply #3 on: August 11, 2006, 05:55:59 am »
Is there a bug tracking number for this problem? I am having the same problem.

PS My problem is bizarre:

1) Create B from A.
2) A calls a function in B
3) Function in B calls functions in C
4) Function in B creates D.

Problem: As soon as (4) is done then it is disassociated from the rest of the sequence.

If you merely have A create B, then B creates C then this disassociation does not occur.
BAE Systems UK

pablo

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Sequence Diagram Craziness
« Reply #4 on: August 11, 2006, 06:29:38 am »

Hi,

I've only just started using EA and whenever I add a message to a timeline it's creating a new timeline.  I've tried removing the grabage collecting flag as suggested, but this made no difference (I prefer to state instance creation and destruction anyway).

Further to this, if I start moving the messages around the whole diagram goes bezerk.   ???

I have also found that the connector in use case diagrams don't connect properly and you land up with a tangled mess.

I suspect I'm missing something, but I'm not sure I have the time, energy or patience to persist with this.

cheers...P