Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: MrDX on September 12, 2007, 09:55:40 pm

Title: How can I add an assignment in a sequence diag.?
Post by: MrDX on September 12, 2007, 09:55:40 pm
Hi,
I need to add an assignment on a lifeline of a sequence diagram (for example bFinished=TRUE). How can I add it to the lifeline?

Example:
A --- calculateSomething ----------> B
A <-- calculateSomething(Result) --- B
bFinshed=TRUE
A --- doSomething -----------------> B
Title: Re: How can I add an assignment in a sequence diag
Post by: Geert Bellekens on September 12, 2007, 10:43:54 pm
You call the setter of bFinished from A to A
So you get:
A --- calculateSomething ----------> B
A <-- calculateSomething(Result) --- B
A -----  
A                       |
A <- SetbFinished(Boolean: True)-
A --- doSomething -----------------> B


Title: Re: How can I add an assignment in a sequence diag
Post by: MrDX on September 12, 2007, 11:11:36 pm
Thank you for the good idea, but it's a model for an embedded system. I am sending signals instead of calling methodes. A setter isn't the right thing, because it isn't object oriented.
Do you have an other nice idea?
Title: Re: How can I add an assignment in a sequence diag
Post by: Geert Bellekens on September 12, 2007, 11:29:01 pm
Then I guess I would document the assignment in the Notes of the return call.
If you want the assignment to be visual on the diagram you can attach a note to the return call and put the assignment there.