Book a Demo

Author Topic: Unable to change lifecycle  (Read 5726 times)

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Unable to change lifecycle
« on: November 19, 2007, 07:54:47 am »
Hi

I have an already elaborate sequence diagram.
When I try to add a "new" message between 2 existing lifelines (ie. so that the source object "creates" the destination object), I typically get the following error message:

Message Validation Error : Unable to change lifecycle

It's not very useful.
Does someone know what the problem is?
Is there another solution than to start the diagram from scratch!?

Thanks

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Unable to change lifecycle
« Reply #1 on: November 20, 2007, 12:10:32 am »
Just drag the new message to the top (so it's the first message going to the lifeline to be created), and then you can select the "New" option in the "Lifecycle" combo.

If you want a message which is not the first one to create a lifeline, this means that you think of your target lifeline not representing an instance of a class but multiple instances, which is not in accordance with the OMG UML Specification. You would have to add a second lifeline for the second instance.

Unfortunately, EA will give you a stupid message if you drag a class from the Project Browser to your diagram a second time ("This diagram already contains an instance blah blah blah"). You will have to use the "Advanced - Convert to Instance" context menu on your first target lifeline first.

ocroquette

  • EA User
  • **
  • Posts: 93
  • Karma: +0/-0
    • View Profile
Re: Unable to change lifecycle
« Reply #2 on: November 20, 2007, 01:51:11 am »
OK, I will describe the problem better:

I create a new message at the top:



If I choose "New" in the opening dialog related to the new message, I get the error message.

If I close the dialog, I can see that a new message has been created anyway (however, not a "new", rather a normal one):



If I open again the properties of this message, and then set it to "New", then it works:



That it doesn't work in the first place seems to me as a bug.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Unable to change lifecycle
« Reply #3 on: November 20, 2007, 03:02:24 am »
You're right. It looks like only the first message to a lifeline can be created with the "New" option, while for all messages created later you have to close the dialog first, reopen it and then choose "New".

If this not a bug, then it's at least a nuisance. They probably never tested it that way, but always drew the initializing message first. Maybe we're supposed to know from the start when our objects will be created. But then if we new everything from the start, we wouldn't really need a modelling tool at all...

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Unable to change lifecycle
« Reply #4 on: November 20, 2007, 05:17:38 am »
I've got to agree with Frank here.

As long as we're using EA for modeling, this needs to be reported as a bug.

David
No, you can't have it!