user226817
user226817

Reputation: 297

how to convert json data into BPMN compatible format?

I am using state chart supported by gojs library.

This library use JSON data to draw the diagram on canvas. Whatever diagram we draw, node and link are getting arranged into JSON data format. I want to convert this data into BMPL to utilize this diagram in another tool.

Upvotes: 4

Views: 5000

Answers (3)

Code Guru
Code Guru

Reputation: 15578

Did not find any parser yet, but there is a library by using that you can dynamically create bpmn components

Upvotes: 0

jobbert
jobbert

Reputation: 3497

I think the format in which BPMN is described is XML. See RedHat for more information about this format. But I don't think you are able a State Chart format easily to BPMN as this is relation based and BPMN also needs the location and waypoints of the objects and references in it's XML.

Upvotes: 0

Fuzzy
Fuzzy

Reputation: 190

I'm really not an expert on BPMN or BPML, but I believe BPML was a proposed standard that never really for off the ground about 11 years ago. I guess there may be some vendors that have something they call BPML that they can import. So... the first thing you need is a detailed specification of what this "other tool" supports.

Now... you don't say whether you want to do this JSON > BPML client or server side. Client side you can handle the JSON with JS easily enough, or just use the GoJS data model directly.

Server side, you'll need a parser like Json.NET or (for Java) see How to parse JSON in Java. Once you have the JSON as objects, it's just a matter of traversing the graph and generating the appropriate BPML.

Upvotes: 1

Related Questions