|UML profile and Acceleo issue [message #1759530]
||Wed, 12 April 2017 14:58
| Guillaume Dupont
Registered: April 2017
I am currently testing out the DSL capabilities of Papyrus in combination with Acceleo and I am currently encountering a problem.|
I created a simple relational database metamodel using UML 2 profiles with Papyrus:
I then created a gruesome library model using the meta-model defined:
Then I created a very very simple Acceleo template file, in which I try to print some elements' stereotypes :
[template public generateElement(p : Package)]
[file (p.name.concat('_debug.txt'), false, 'UTF-8')]
Creating file for package [p.name/]
Stereotypes: [for (st : Stereotype | p.getAppliedStereotypes()) separator(',')][st.name/][/for]
When I use the OCL console on my model, "getAppliedStereotypes()" works just fine. But when I run my Acceleo, there is nothing behind "Stereotypes", even though the generator terminates without any error code...
Do you have any idea what is going on ?
Powered by FUDForum
. Page generated in 0.01775 seconds