SysML & ACCELEO [message #1007255] |
Tue, 05 February 2013 09:39 |
|
I am defining a M2T transformation through Acceleo from an input SysML model defined via papyrus.
I am having some problem while trying to retrieve SysML stereotypes. For the sake of simplicity I just provide a simplified version of the whole transformation.
[module generate('http://www.eclipse.org/papyrus/0.7.0/SysML','http://www.eclipse.org/uml2/3.0.0/UML')]
[template public generateElement(model : Model) post(trim())]
[comment @main/]
[file ('test.txt',false,'UTF-8')]
[for (c:Block|model.member->selectByType(Block))]
#[c.name/]#
[/for]
[for (c:Class|model.member->selectByType(Class))]
[c.name/] [c.oclIsKindOf(Block)/] [c.oclAsType(Block).base_Class.name/] [c.getAppliedStereotype('SysML::Blocks::Block')->notEmpty()/]
[/for]
[/file]
[/template]
The only output I get for a test model containing just one Block named Block1 is
Block1 false invalid true
which means the Block is not recognized to be an instance of the Block meta-class (see the first for)
it is instead recognized as a stereotyped class.
However I do remember the first for worked in previos Papyrus/Acceleo versions.
Am I doing something wrong?
regards
Follow me on Twitter @andreasindico
[Updated on: Tue, 05 February 2013 10:35] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03447 seconds