Author Topic: How can I add an assignment in a sequence diag.?  (Read 3862 times)

MrDX

  • EA User
  • **
  • Posts: 49
  • Karma: +0/-0
    • View Profile
How can I add an assignment in a sequence diag.?
« 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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How can I add an assignment in a sequence diag
« Reply #1 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



MrDX

  • EA User
  • **
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: How can I add an assignment in a sequence diag
« Reply #2 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?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How can I add an assignment in a sequence diag
« Reply #3 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.