Skip to main content



      Home
Home » Modeling » EMF » EMF operation call in ATL
EMF operation call in ATL [message #1075392] Mon, 29 July 2013 06:55 Go to next message
Eclipse UserFriend
Hi there,

rule rule_getDevice{
from
a: source!DeviceItem
to
p:target!Device(
name <- a.Name,
s7DeviceReference<-a.DeviceReference,
isSelectedWithinStep7 <-a.stringToBool(a.IsSelected)
)

}

stringToBool() defined in the source EMF meta-model. I set the Operation Reflection feature of the gen model to True.

I get the following error, When I run this transformation using ATL Run configuration,

org.eclipse.m2m.atl.engine.emfvm.VMException: Operation not found: IN!<unnamed>.stringToBool(java.lang.String)

Any help is appreciated.

Cheers,
Kosala
Re: EMF operation call in ATL [message #1075394 is a reply to message #1075392] Mon, 29 July 2013 06:59 Go to previous messageGo to next message
Eclipse UserFriend
sorry I will post this in ATL group.
Re: EMF operation call in ATL [message #1075413 is a reply to message #1075392] Mon, 29 July 2013 07:32 Go to previous message
Eclipse UserFriend
Kosala,

Comments below.

On 29/07/2013 12:55 PM, Kosala Yapa wrote:
> Hi there,
>
> rule rule_getDevice{
> from
> a: source!DeviceItem to
> p:target!Device(
> name <- a.Name,
> s7DeviceReference<-a.DeviceReference,
> isSelectedWithinStep7 <-a.stringToBool(a.IsSelected)
> )
>
> }
>
> stringToBool() defined in the source EMF meta-model. I set the
> Operation Reflection feature of the gen model to True.
>
> I get the following error, When I run this transformation using ATL
> Run configuration,
> org.eclipse.m2m.atl.engine.emfvm.VMException: Operation not found:
> IN!<unnamed>.stringToBool(java.lang.String)
That's an ATL exception. I don't know how ATL is integrated with EMF's
operation reflection. Best you ask their forum.
>
> Any help is appreciated.
>
> Cheers,
> Kosala
Previous Topic:Ecore->XSD->Ecore roundtrip
Next Topic:Permissions on EMF model classes
Goto Forum:
  


Current Time: Wed Jul 30 11:43:22 EDT 2025

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

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

Back to the top