Activity and BPMN diagrams are not generated [message #1733848] |
Wed, 01 June 2016 13:09  |
Eclipse User |
|
|
|
Hi All,
I am generating a document from a papyrus model containing a package that is containing use case diagrams, activity diagrams and BPMN diagrams.
When generating the document, use case diagrams are generated, but activity and BPMN diagrams are not.
This is the code:
[for (elt0 : Element | self.getOwnedElements()->filter(Package))]<drop/>
[let p : Package = elt0.oclAsType(Package)]<drop/>
[if (p.getPapyrusDiagrams()->size()>0)]<drop/>
[for (diag : Diagram | p.getPapyrusDiagrams())]<drop/>
<image object='[diag.getDiagram()/]' maxW='true' keepH='false'><drop/>
</image><drop/>
[clean(diag.name)/]
[/for]<drop/>
[/if]<drop/>
[/let]
[/for]
|
|
|
Re: Activity and BPMN diagrams are not generated [message #1733860 is a reply to message #1733848] |
Wed, 01 June 2016 13:57   |
Eclipse User |
|
|
|
Hello
use case diagrams are linked to package and activity diagrams are linked to Activity in Papyrus.
That's why you don't have activity diagrams.
If your activities are contained inside the package, something like that should work :
p.eContents()->filter(uml::Activity).getPapyrusDiagrams()
Regards
|
|
|
Re: Activity and BPMN diagrams are not generated [message #1734047 is a reply to message #1733860] |
Fri, 03 June 2016 10:34   |
Eclipse User |
|
|
|
Hi Tristan,
The activity diagram are placed in the same level than the activity. Their root element is the activity and their owner is the package containing the activity.
I tested your code but no diagram is generated, even when I move the diagram inside the activity (ie. its owner becomes the activity).
|
|
|
|
Powered by
FUDForum. Page generated in 0.06409 seconds