Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Model-to-Model Transformation » error in if condition
error in if condition [message #1754501] Sun, 19 February 2017 06:52 Go to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
Hi,

If I write the below ATL code, I have the error "org.eclipse.m2m.atl.engine.emfvm.VMException: Feature method does not exist on PropertyCallExpression".
helper context MM_ETL!Expression def : collectWithFeatureFollowing() : Boolean =
if ((self.oclIsTypeOf(MM_ETL!PropertyCallExpression) or thisModule.isAHelper(self)) and not self.oclIsKindOf(MM_ETL!FOLMethodCallExpression).oclIsUndefined())
then if (self.method.name = 'collect')

if I change the code to the below code, I have the error "org.eclipse.m2m.atl.engine.emfvm.VMException: java.lang.Boolean does not have properties".
helper context MM_ETL!Expression def : collectWithFeatureFollowing() : Boolean =
if ((self.oclIsTypeOf(MM_ETL!PropertyCallExpression) or thisModule.isAHelper(self)) and not self.oclIsKindOf(MM_ETL!FOLMethodCallExpression).oclIsUndefined())
if (self.oclIsKindOf(MM_ETL!FOLMethodCallExpression).method.name = 'collect')


what can I do to access method?

[Updated on: Sun, 05 March 2017 20:45]

Report message to a moderator

Re: error in if condition [message #1755569 is a reply to message #1754501] Sun, 05 March 2017 20:45 Go to previous messageGo to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
would you please help me?
Re: error in if condition [message #1755570 is a reply to message #1755569] Sun, 05 March 2017 21:09 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5883
Registered: July 2009
Senior Member
Hi

It seems the wonderful FUDforum software is selective in its RSS notifications, so good that you pinged.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=513124 raised.

But providing partial examples is not going to allow anyone to offer much sensible help. I can only suggest you read the error message and selectively simplify.

Regards

Ed Willink

Re: error in if condition [message #1755806 is a reply to message #1755570] Wed, 08 March 2017 10:44 Go to previous messageGo to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
As this forum doesn't have delete, I edited my old empty question instead of creating new topic.
Re: error in if condition [message #1755812 is a reply to message #1755806] Wed, 08 March 2017 11:02 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5883
Registered: July 2009
Senior Member
Hi

So what is the question and what is the topic?

Regards

Ed Willinjk
Previous Topic:refImmediateComposite() when two composits are available
Next Topic:XSLT vs ATL
Goto Forum:
  


Current Time: Sun May 20 12:25:46 GMT 2018

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

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

Back to the top