Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gendoc » Activity and BPMN diagrams are not generated
Activity and BPMN diagrams are not generated [message #1733848] Wed, 01 June 2016 13:09 Go to next message
saadia dhouib is currently offline saadia dhouibFriend
Messages: 11
Registered: April 2016
Junior Member
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 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
saadia dhouib is currently offline saadia dhouibFriend
Messages: 11
Registered: April 2016
Junior Member
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).
Re: Activity and BPMN diagrams are not generated [message #1734079 is a reply to message #1734047] Fri, 03 June 2016 14:54 Go to previous message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
OK it is strange
can you open a bug with a sample model / template, we will analyse it

Regards
Tristan FAURE




Previous Topic:Dynamic context setting?
Next Topic:Empty image generation after Bug 492264 fix
Goto Forum:
  


Current Time: Fri Apr 26 00:46:24 GMT 2024

Powered by FUDForum. Page generated in 0.03200 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top