EOperation defined at ecore need to be called at atl ? [message #900529] |
Tue, 07 August 2012 08:09  |
Eclipse User |
|
|
|
Hi All,
I defined a hexToInt(String) method(EOperation) in the target.ecore. Then i call that method in the following rule.
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());
}
}
Then at run configuration, I set two ecore files providing explicit paths to ecore file, then I get an error
org.eclipse.m2m.atl.engine.emfvm.VMException: Operation not found: OUT!<unnamed>.hexToInt(java.lang.String)
Then i set URI of the target ecore(nsURI="model") for ther target meta model, then i get an error
Error loading platform:/resourcensURI="model": java.net.MalformedURLException: Invalid URL "platform:/resourcensURI="model""
Can someone help me to resolve this issue?
I just need to call an EOperation (defined in ecore) in an ATL program. Any approach is higherly appriciated.
Thanks a million.
Kosala
[Updated on: Tue, 07 August 2012 08:13] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03143 seconds