I want to apply a profile to my generated UML to apply some stereotypes. There is a given profile which I have to use.
The problem now is that the profile seems not to be applied to my uml model.
My ATL code looks like the following.
create OUT: UML from IN: HL7, PRO: UML;
thisModule.debug(UML!Profile.allInstancesFrom('PRO') ); -- i get [org.eclipse.uml2.uml.internal.impl.ProfileImpl@2c826b (name: XOEV-Profil, visibility: <unset>)]: HL7toUML : ASMModule
->select(p | p.name = 'XOEV-Profil').first()); -- no exception is thrown
thisModule.debug(m.getApplicableStereotypes()); -- i get : HL7toUML : ASMModule
m.applyStereotype(m.getApplicableStereotype('Data::XOEV-Profil::xsdSchema')); -- the following exception is thrown org.eclipse.m2m.atl.engine.emfvm.VMException: Operation not found: OUT!COCT_HD080000UV09.applyStereotype(org.eclipse.m2m.atl.engine.emfvm.lib.OclUndefined)
The profile header looks like the following.
<uml:Profile xmi:version="2.1" xmlns:xmi="...schema.omg.org/spec/XMI/2.1" xmlns:ecore="...www.eclipse.org/emf/2002/Ecore" xmlns:uml="....eclipse.org/uml2/3.0.0/UML" xmi:id="xoev_uml_profile_1_1_0" name="XOEV-Profil" metamodelReference="xoev_uml_profile_1_1_0_packageImportcreatedOnLoad">
Does anybody have an idea why this error occurs and why the profile isn't applied?
I think the metamodels are the same, so this shouldn't be the problem, isn't?
I would be happy, if there are some suggestions. Thanks in advance.