[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.ocl] Re: OCL in Transition's Guard to access trigger properties

Hi Timothy

Please ask UML questions on the UML newsgroup.

You will need to privide much more context to identify 'self' to allow anyone not teleppathic to understand. The use of Transition.Trigger.Signal looks really wierd. They look like class not property names, but what is 'self'? Also do you mean to do so many implicit collects?

	Regards

		Ed Willink

Timothy Marc wrote:
Hi all,

i have a problem concerning guards and transitions and triggers. The semnatics of an UML StateMachine is, that it is possible to access the information carried by an event within the expression of a guard. In my case, i want to compare a signal value with a value of the context classifier of my transition's guard. My current approach is

self.data = self.Transition.Trigger.Signal.data

But i think this is not correct. Unfortunately, there is no convenient example for this, mostly the example state only pseudo-ocl.

Thanks

Timothy