I have a model with a class called Tag and within this class an
attribute with an ELong type called idNumber.
In the generated model Editor using the OCL Interpreter with the Tag
class as context I can do:
Evaluating:
idNumber
Results:
1234
Would eventually like to put a constraint on this attribute to keep it
below a certain size. So I've tried unsuccessfully to do a less than on
it like:
Evaluating:
idNumber <10000
Results:
Invalid Class
?? So I tried:
Evaluating:
1<2
Results:
true
Which works as expected. Perhaps I am confused about OCL syntax and I
am not specifying this correctly? Any ideas or pointers about how I
should specify this?