Hello everybody,
What's the différrent ways to get opérations object from a message object?
For the moment, i do 3 Whiles to get the operation from an object with this code :
[for (mess : MessageOccurrenceSpecification | i.fragment) ]
[for (l : Lifeline | mess.covered)]
[for ( o : Operation | l.represents.type.ownedElement ) ? (mess.message.name = o.name and mess.event.eClass().name = 'ReceiveOperationEvent')]
self.[o.name/]()
[/for]
[/for]
[/for]
But i think its not the best way to do.
I want to have "directly" the Operation object, with out "whiles" in the "main while"
What's the différence between Messages ( object in the MessageOccurrenceSpecification object ) and MessageOccurrenceSpecification?
Because I don't know what's the "Job" of MessageOccurenceSpecification...
Thank you for your help!
Benoit
[Updated on: Mon, 10 May 2010 11:43] by Moderator