Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Error executing link validation between EMF models
Error executing link validation between EMF models [message #1748380] Tue, 22 November 2016 15:34 Go to next message
Marcelo Rodrigues is currently offline Marcelo RodriguesFriend
Messages: 21
Registered: November 2016
Junior Member
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 15:51]

Report message to a moderator

Re: Error executing link validation between EMF models [message #1748401 is a reply to message #1748380] Tue, 22 November 2016 19:04 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 470
Registered: January 2010
Senior Member
Your EVL code doesn't seem to have any syntax errors (just tried copying and pasting it on an .evl file). Are you sure you are using an EVL launch configuration, and not an EOL one? I can only guess you're using an EOL one and Epsilon is getting confused trying to parse your EVL as EOL.

If you're using an EVL one and it still doesn't work, attach it over here and I'll have a quick look.
Re: Error executing link validation between EMF models [message #1748472 is a reply to message #1748401] Wed, 23 November 2016 12:54 Go to previous messageGo to next message
Marcelo Rodrigues is currently offline Marcelo RodriguesFriend
Messages: 21
Registered: November 2016
Junior Member
Hi,

Yes, I'm sure I'm using the EVL launch configuration.

Take the look:

https://drive.google.com/open?id=0B-VOehfmRw4dTk0xZkVwOHJ5Rmc
Re: Error executing link validation between EMF models [message #1748488 is a reply to message #1748472] Wed, 23 November 2016 15:02 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 470
Registered: January 2010
Senior Member
That screenshot shows you're using an EPL (Epsilon *Pattern* Language) configuration, not an EVL (Epsilon *Validation* Language) configuration :-/. You should use an "EVL Validation" one.

[Updated on: Wed, 23 November 2016 15:03]

Report message to a moderator

Re: Error executing link validation between EMF models [message #1748489 is a reply to message #1748488] Wed, 23 November 2016 15:05 Go to previous message
Marcelo Rodrigues is currently offline Marcelo RodriguesFriend
Messages: 21
Registered: November 2016
Junior Member
OK, thank you!
Previous Topic:Change UMl model
Next Topic:Record change
Goto Forum:
  


Current Time: Mon Jan 22 22:35:50 GMT 2018

Powered by FUDForum. Page generated in 0.02002 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software