Process preview - svg format

Hello,
I am thinking about doing something similar to what I saw on the
Camunda --> Cockpit --> Preview section of the engine UI.

It seems like dynamic transformation from bpm xml file into svg one.
I saw that the bpm parts for constructing it via svg are available but I was wondering if there is a clear section in the open source code from which I can reuse the logic which being responsible for the dynamic creation itself?

You can pass the XML into the BPMNJ library to render:

So you can use the Get XML api to get the process definition XML, and then render that.

2 Likes