I am using the Eclipse Interactive OCL console to test the OCL examples from this document. For testing, the example(Tutorial.xmi) provided with the link is used. The tried expressions are given below.
Evaluating:
self.name
Results:
'tutorial'
Evaluating:
context Book
Results:
2:1:2:7 "context" unexpected token(s)
Evaluating:
context Book inv:self.name
Results:
1:1:1:4 "inv:" misplaced construct(s)
Here the changes in context always shows error. Also whenever I specify inv, the same "misplaces constructs" message is shown.