Exception during invocation of operation applyStereotype [message #980194] |
Sun, 11 November 2012 07:40  |
Eclipse User |
|
|
|
Hi there,
I'm trying to do a transformation from EAST-ADL to Paryrus UML.
When I apply the Stereotype I get the the exception "Exception during invocation of operation applyStereotype".
Find below the details of the Exception and ATL file.
Could someone please help us with this matter?
profiles: Sequence {IN1!EAST-ADL2}
stereotype: IN1!AnalysisLevel
Exception during invocation of operation applyStereotype on (name: BBW_AnalysisLevel, visibility: <unset>)...
-- @path EA=/Test/domainmodel.ecore
-- @nsURI U/M/L/=/h/t/t/p/://///w/w/w/./e/c/l/i/p/s/e/./o/r/g///u/m/l/2//3.0.0/UML
-- @nsURI profile=/h/t/t/p/://///w/w/w/./p/a/p/y/r/u/s/u/m/l/./o/r/g//EAST-ADL2/1
module fifth;
create OUT : UML from IN : EA, IN1 : profile;
rule topLevelPackage {
from
s : EA!EAXML,
s2 : EA!AnalysisLevel
to
t1 : UML!Model (
name <- s.topLevelPackage->asSequence().first().shortName
),
t2 : UML!Package (
nestingPackage <- t1,
name<- s.topLevelPackage->asSequence().first().subPackage->asSequence().first().shortName
),
t3 : UML!Package(
nestingPackage <- t2,
name <- s2.shortName )
do {
t1.applyProfile(profile!Profile.allInstances().asSequence().first());
-- store stereotype for later application
thisModule.stereo <- profile!Stereotype.allInstances()
-> any( e | e.name = 'AnalysisLevel');
t3.getAllAppliedProfiles().debug('profiles');
thisModule.stereo.debug('stereotype');
--apply stereotype to target model element
t3.applyStereotype(thisModule.stereo);
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03637 seconds