how to use the context expressions in OCL [message #851735] |
Sat, 21 April 2012 04:34  |
Eclipse User |
|
|
|
I just wondering how to use the context & inv expression in OCL specification in Helios Packages. I try several times, but the result suggests it's a error expresions with misplace with struct (s) or sth. like that. Who can give a simple example or give me some suggestions on reference books? Thanks sincerely.
|
|
|
|
|
|
|
Re: how to use the context expressions in OCL [message #851942 is a reply to message #851912] |
Sat, 21 April 2012 09:36   |
Eclipse User |
|
|
|
But what tool? Sample Ecore Editor, Genmodel Editor, Console View,
OCLinEcore editoir, Complete OCL editor, Acceleo, QVTo, ....
Your attachment has no "context ComponentInstance inv Login:
self.multiplicity>0"
so what are you doing?
Regards
Ed Willink
On 21/04/2012 13:56, Lucy Chan wrote:
> the tool I'm using is Helios Packages for Eclipse Modeling Tools. The attachment is my file. I just want to verify if the number of the attribute multiplicity in Login ComponentInstance is>0, so I wrote the expression:
> context ComponentInstance inv Login: self.multiplicity>0
> but it has some errors '1:1:1:4 "inv:" misplaced construct(s)' canyou help figure out where I made mistakes?
> Thanks for your help sincerely.
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04583 seconds