Book a Demo

Author Topic: Can't add return messages from a called object  (Read 3840 times)

henke

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Can't add return messages from a called object
« on: June 09, 2004, 06:47:17 am »
Why isn't it possible to have return messages from an object that has been called, see picture?


Here is the link:
http://proplateapps.proplate.se/ProProjekt/call.bmp
« Last Edit: June 09, 2004, 06:47:58 am by henke »

jaimeglz

  • EA User
  • **
  • Posts: 164
  • Karma: +0/-0
    • View Profile
Re: Can't add return messages from a called object
« Reply #1 on: June 09, 2004, 08:09:13 am »
Could you further explain what the problem is?

Jaime

henke

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Can't add return messages from a called object
« Reply #2 on: June 09, 2004, 08:26:34 am »
Should't the return arrow from SalesProjectDALC end at the GetSalesProjects lifeline?

/Henke

pab233

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Can't add return messages from a called object
« Reply #3 on: June 09, 2004, 08:54:32 am »
Henke,

It looks like you've misunderstood the "is return" setting in the same way that I did.

If I'm reading your diagram correctly, you expect the GetAllSalesProjects(Customer) message to return a value (or set of values) back to the GetSalesProject lifeline.

If this is the case, then you don't need the second line returning from SalesProjectDALC.  All you need to do is open the properties for GetAllSalesProjects and check the "is return" box.  This will turn the line from solid into dotted, which implies a message that has a return value.

Seems a bit silly at first, and is very easy to misunderstand, but does make sense after a while!  And reduced the number of lines on my diagrams quite considerably

Of course, if I've read the diagram wrong, then please ignore this message.

cheers
pab

henke

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Can't add return messages from a called object
« Reply #4 on: June 09, 2004, 11:34:43 pm »
Pab,

Thanks for your answer. That explains an the other question I asked the other day, about why life lines are broken. If I do it the way your say the life line on the caller object is solid until the last message on the called object returns.

Thanks,
Henke