Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Why isn't my profile applied?
Why isn't my profile applied? [message #882571] Wed, 06 June 2012 18:45
Martin Benedict is currently offline Martin Benedict
Messages: 22
Registered: June 2012
Junior Member
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.

module HL7toUML;
create OUT: UML from IN: HL7, PRO: UML;

....

rule....

	do {
	
		thisModule.debug(UML!Profile.allInstancesFrom('PRO') ); -- i get [org.eclipse.uml2.uml.internal.impl.ProfileImpl@2c826b (name: XOEV-Profil, visibility: <unset>)]: HL7toUML : ASMModule

		m.applyProfile(UML!Profile.allInstancesFrom('PRO') 
			->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.
Previous Topic:xmi:type instead of xsi:type
Next Topic:m2m.atl.core.IModel- How to pull out objects?
Goto Forum:
  


Current Time: Tue Sep 23 22:44:43 GMT 2014

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

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