Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » EOperation at ATL program?
EOperation at ATL program? [message #899986] Fri, 03 August 2012 10:47
Kosala Yapa is currently offline Kosala YapaFriend
Messages: 159
Registered: September 2010
Senior Member
Hi all,

I tried to use an EOperation [ hexToInt(String) defined at the target.ecore ] in an ATL program.


At eclipse run configuration, I set scource.ecore, target.ecore, input.xml and output.xml. I am using EMF-specific VM as ATL Virtual Machine.


lazy rule rule_getModule{
from
b:source!ModuleItem

to
d:target!Module(
s7ModuleReference <- b.ModuleReference,
isSelectedWithinStep7<-b.IsSelected
)

do{
d.deviceID<-d.hexToInt(b.getIdentNumber());
}
}


Error is at hexToInt() operation call,

org.eclipse.m2m.atl.engine.emfvm.VMException: Operation not found: IN!<unnamed>.hexToInt(java.lang.String)
at rule_getModule#40(TPF2PSSu2.atl[87:15-87:45])


I am just wondering, if someone can help me to resolve this issue?

Thanks in advance.
Kosala


[Updated on: Fri, 03 August 2012 10:49]

Report message to a moderator

Previous Topic:Could not debug, because UTFDataFormatException is thrown when reaching breakpoint
Next Topic:Integer.decode(String) ?
Goto Forum:
  


Current Time: Sat Dec 20 01:48:15 GMT 2014

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

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