Error executing link validation between EMF models [message #1748380] |
Tue, 22 November 2016 10:34  |
Eclipse User |
|
|
|
Hi,
I'm getting the following error when trying to perform a link check between EMF models: 'Line: 1, Reason: mismatched input: 'context' '
Can anybody help me?
I'm trying to follow this tutorial: https://www.youtube.com/watch?v=6bS1mxGrPIM
Follows the contents of the EVL file:
context personhouses{
constraint DoNotLetTheirOwnHouse {
guard : self.type = PersonHouseRelationshipType#Lets
check : not self.person.owns(self.house)
message : 'Person' + self.person.name + ' appears to let'
+ self.house.address + 'while (s)he owns it'
}
}
operation Person owns (house : House) : Boolean {
return PersonHouseRelationship.allInstances.
exists(phr|phr.person = self and phr.house = house
and phr.type = PersonHouseRelationshipType#Owns);
}
[Updated on: Tue, 22 November 2016 10:51] by Moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25225 seconds