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 Azizi is currently offline Banafsheh AziziFriend
Messages: 328
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?


Member of MDSE Research Group
http://mdse.ui.ac.ir

[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 Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
would you please help me?

Member of MDSE Research Group
http://mdse.ui.ac.ir
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: 7655
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 Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
As this forum doesn't have delete, I edited my old empty question instead of creating new topic.

Member of MDSE Research Group
http://mdse.ui.ac.ir
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: 7655
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: Tue Apr 23 09:01:28 GMT 2024

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

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

Back to the top