Discussion:
[jboss-user] [jBPM] - Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer..
Tihomir Surdilovic
2013-07-07 23:09:17 UTC
Permalink
Tihomir Surdilovic [https://community.jboss.org/people/tsurdilovic] created the discussion

"Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer.."

To view the discussion, visit: https://community.jboss.org/message/826764#826764

--------------------------------------------------------------
AFAIK this is not currently possible. In jBPM Designer you have the option to save the process SVG representation every time you save a process (or when autosave kicks in) - https://github.com/droolsjbpm/jbpm-designer/blob/master/jbpm-designer-client/src/main/resources/org/jbpm/designer/public/profiles/jbpm.xml#L51 https://github.com/droolsjbpm/jbpm-designer/blob/master/jbpm-designer-client/src/main/resources/org/jbpm/designer/public/profiles/jbpm.xml#L51

with this you can have your svg alongside the process and convert svg->png if needed using batik or some other lib

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/826764#826764]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Thomas Setiabudi
2013-07-08 03:38:11 UTC
Permalink
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion

"Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer.."

To view the discussion, visit: https://community.jboss.org/message/826775#826775

--------------------------------------------------------------
Thanks for your Reply Tiho,

The autosave of SVG maybe is not what I need since I am planning on not using guvnor to store the image.

But if direct conversion from process definition to PNG image is not possible, can we create SVG first from the process definition and then create the PNG using batik or some other lib? I mean programmatically.
How do the Web Designer generate SVG from the uploaded BPMN xml file?


Regards,
Thomas Setiabudi
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/826775#826775]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Tihomir Surdilovic
2013-07-08 05:32:47 UTC
Permalink
Tihomir Surdilovic [https://community.jboss.org/people/tsurdilovic] created the discussion

"Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer.."

To view the discussion, visit: https://community.jboss.org/message/826785#826785

--------------------------------------------------------------
With jBPM and jBPM Designer version 6 you won't be using Guvnor 5.x content repository any more but can hook up to your file system of choice using the VFS (defaults to git).
Svg does not get generated from the bpmn2, in Designer the canvas itself is a svg with javascript api available to get it if needed.

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/826785#826785]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Thomas Setiabudi
2013-07-08 09:27:45 UTC
Permalink
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion

"Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer.."

To view the discussion, visit: https://community.jboss.org/message/826830#826830

--------------------------------------------------------------
ok thank you Tiho..

I will mark this question as assumed answered then, since there is no way to do this programmatically in JBPM 5.4 Final

maybe you have any thought about this https://community.jboss.org/thread/230196 https://community.jboss.org/thread/230196 ?

Regards,
Thomas Setiabudi
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/826830#826830]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...