-
1. Re: Is there any API to convert bpmn2 xml to svg xml in jbpm5.4 ?
swiderski.maciej Aug 28, 2014 1:44 AM (in response to hari6025)there is no public api for that but you might look at designer source to see if there is anything you could make use of.
HTH
-
2. Re: Is there any API to convert bpmn2 xml to svg xml in jbpm5.4 ?
hari6025 Aug 28, 2014 7:39 AM (in response to swiderski.maciej)Thanks for your reply Macieji.
We were using RuleFlowProcessFactory API for creating workflow and same will be updated in guvnor repository using rest API's. we are not going to use designer for designing an workflow. Thought of using api to create it through our own screen.
The problem we are facing is like on successful creation and updation of process to guvnor repository , We would like to create SVG file for the respective process.
We are having application like order management system for each order one work flow will get triggered , on successful creation of order we would like to use SVG images to track an order. To get SVG images for the workflow we are using guvnor rest API’s.
The designer version we are using is 2.4.1.final.In this version after opening an process in designer on click of save process svg file is getting created automatically and stored in guvnor repository.i have Referred code from main.js file which is converting bpmn2 canvas object into svg : jbpm-designer/main.js at 2.6.x · droolsjbpm/jbpm-designer · GitHub
" var formattedSvgDOM = DataManager.serialize(ORYX.EDITOR.getCanvas().getSVGRepresentation(false));" we would like to achieve above one without using designer.
It will be helpful if we have any API or tool to create it similar to RuleFlowProcessFactory from bpmn2 file.
Ref link : [JBPM-3635] Automatic creation of the process image in designer - JBoss Issue Tracker
Thanks and Regards,
Harikumar A