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 BenedictFriend
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;



	do {
		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 | = '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="" xmlns:ecore="" xmlns: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 Apr 24 14:42:34 GMT 2018

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

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