Problem Creating a Dependency relation in UML with ATL [message #1773684] |
Mon, 02 October 2017 21:15 |
Navid Nazarzadeoghaz Messages: 1 Registered: October 2017 |
Junior Member |
|
|
Hi guys!
I have a problem with creating a Dependency using ATL. I'm using UML, and my metamodels are profiles created in papyrus.
In my input profile, I have a Stereotype named "RealizeRelation" which is extending Dependency metaclass. So, I want to create a Dependency in my output model, then create the stereotype, and set the base_Dependency of that stereotype. Here is my sample code:
rule CreateRealizeRelation{
from
in : NFOntology!RealizeRelation
to
out1 : NFOntology!Dependency(
name <- Something
.....
),
out2 : NFOntology!RealizeRelation(
base_Dependency <- out1
)
}
But I get this error: The class 'Dependency' is not a valid classifier
org.eclipse.m2m.atl.engine.emfvm.VMException: The class 'Dependency' is not a valid classifier
at __matchCreateRealizedBy#23(OntologyUpdate.atl[416:3-419:4])
local variables: self=OntologyUpdate : ASMModule, sin=IN!<unnamed>
at __matcher__#3(OntologyUpdate.atl)
local variables: self=OntologyUpdate : ASMModule
at main#40(OntologyUpdate.atl)
local variables: self=OntologyUpdate : ASMModule
Java Stack:
org.eclipse.m2m.atl.engine.emfvm.VMException: The class 'Dependency' is not a valid classifier
at org.eclipse.m2m.atl.engine.emfvm.ASMOperation.exec(ASMOperation.java:643)
at org.eclipse.m2m.atl.engine.emfvm.ASMOperation.exec(ASMOperation.java:388)
at org.eclipse.m2m.atl.engine.emfvm.ASMOperation.exec(ASMOperation.java:388)
at org.eclipse.m2m.atl.engine.emfvm.ASM.run(ASM.java:208)
at org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMLauncher.internalLaunch(EMFVMLauncher.java:170)
at org.eclipse.m2m.atl.engine.emfvm.launch.EMFVMUILauncher.launch(EMFVMUILauncher.java:46)
at org.eclipse.m2m.atl.core.service.LauncherService.launch(LauncherService.java:136)
at org.eclipse.m2m.atl.core.ui.launch.AtlLaunchConfigurationDelegate.launchOrDebug(AtlLaunchConfigurationDelegate.java:300)
at org.eclipse.m2m.atl.core.ui.launch.AtlLaunchConfigurationDelegate.launch(AtlLaunchConfigurationDelegate.java:237)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.IllegalArgumentException: The class 'Dependency' is not a valid classifier
at org.eclipse.emf.ecore.impl.EFactoryImpl.create(EFactoryImpl.java:253)
at org.eclipse.m2m.atl.core.emf.EMFModel.newElement(EMFModel.java:81)
at org.eclipse.m2m.atl.engine.emfvm.lib.ExecEnv.newElement(ExecEnv.java:2364)
at org.eclipse.m2m.atl.engine.emfvm.ASMOperation.exec(ASMOperation.java:537)
... 13 more
Any idea how can I create this dependency?
Thanks in advance
Navid
|
|
|
Powered by
FUDForum. Page generated in 0.03009 seconds