Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Problem Creating a Dependency relation in UML with ATL
Problem Creating a Dependency relation in UML with ATL [message #1773684] Mon, 02 October 2017 21:15
Navid Nazarzadeoghaz is currently offline Navid NazarzadeoghazFriend
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
Previous Topic:Plugin ATL
Next Topic:Manage custome UML stereotypes out of Eclipse in ATL transformations
Goto Forum:
  


Current Time: Tue Apr 24 09:06:55 GMT 2018

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

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