Hi all,
I'm trying to apply the UTP to an UML model.
My starting point is the transformation rule:
-- @nsURI UML=hxxp://www.eclipse.org/uml2/2.1.0/UML
module AddObj;
create OUT: UML from IN: UML, UTP: UML;
rule ApplyProfile {
from
i: UML!Model
to
o: UML!Model (
name <- i.name
)
do {
-- apply profile to target model element
o.applyProfile(UTP!Profile.allInstances().asSequence().first());
}
}
In input I put the source uml model and the UTP.xmi from omg specification site. This xmi requires a simple modification to work.
When I start the transformation I get this error:
Error loading platform:/resource/UTP_xmi/Utp.xmi: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'hxxp://schema.omg.org/spec/XMI/2.1' not found. (platform:/resource/UTP_xmi/Utp.xmi, 8, 70)
Any suggestion?
Thanks in advance
PS: hxxp=http