-
1. Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer..
tsurdilovic Jul 7, 2013 7:09 PM (in response to thomas.setiabudi)1 of 1 people found this helpfulAFAIK 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
with this you can have your svg alongside the process and convert svg->png if needed using batik or some other lib
HTH
-
2. Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer..
thomas.setiabudi Jul 7, 2013 11:38 PM (in response to tsurdilovic)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
-
3. Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer..
tsurdilovic Jul 8, 2013 1:32 AM (in response to thomas.setiabudi)1 of 1 people found this helpfulWith 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
-
4. Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer..
thomas.setiabudi Jul 8, 2013 5:27 AM (in response to tsurdilovic)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 ?
Regards,
Thomas Setiabudi
-
5. Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer..
fbimage Sep 10, 2013 11:54 PM (in response to thomas.setiabudi)those programme are not the only way to create png images,cause i haven't download the two application before. google around you will find many image processing tool that can do the job. also you can generate various formats as well. hope it is helpful for you.
-
6. Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer..
arronlee Oct 28, 2013 4:18 AM (in response to fbimage)Thanks for your nice info. I have only tried to create png image with the help of some free trials of the 3rd party tools. I will try it later.
Best regards,
Arron
-
7. Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer..
cathyhill Jan 25, 2014 10:45 PM (in response to arronlee)Actually, you can create png image file with free sources, try to use free class like itext.
-
8. Re: How to generate PNG image of Process Definition programmatically from KnowledgeBase? Without using Web Designer or Eclipse Designer..
gulamnadim Feb 26, 2014 8:51 AM (in response to cathyhill)I have same question but with JBPM 6, Where it store bpmn process and how to retrieve it? If it store in Table so what is the table name. I have tried with ProcessInstanceLog table but return image is corrupted and I am not able to Open. So any kind of help is appreciable.
Nadim