|Re: OCL check [message #557353 is a reply to message #557338]
||Tue, 07 September 2010 05:27
| Ed Willink
Registered: July 2009
I really cannot understand what you are doing, since a variety of your
statements variously do not make sense or seem impossible.
- there is no usecase to be a context
- why are you using Complete OCL in the OCL Console
To see if there is any problem, I created a UML model comprising
I then selected actor a, and evaluated
in the OCL Console against the Ecore or UML M2 meta-model and got 'false'.
I then set a's useCase to be u and evaluated again and got 'true',
which is exactly what I would expect with the expression I suggested.
If you cannot make this work, you must describe what you are doing very
carefully and accurately so that whatever strange things yoiu are doing
can be identified.
On 06/09/2010 22:39, Akhtar wrote:
> Hi Ed,
> I tried to explore your hint, with context usecase as well as with Actor.
> context uml::UseCase
> inv: self.useCase
> This only returns usecase name.
> I am executing queries on UML meta-model M2 layer in eclipse console. I
> have been just stucked with this simple query.
> Is there any other way in OCL to check link between usecase and actor
> exists or not.
> Best regards,
Powered by FUDForum
. Page generated in 0.22716 seconds