We are having severe issues with performance of bpmn-io at frontend.
We are trying an approach of parsing the xml at backend and put definitions directly at
bpmn-js:BpmnModdle.
I was wondering if we can use BpmnModelInstance.definitions as is at frontend and save time of xml parsing.
Bottom line question:
Is java class BpmnModelInstance::Definition same class as used at bpmn-js:BpmnModdle::Definition
I will try to clarify my question.
Today we are using Viewer.importXML(‘input.bpmn’);
First this this method does is parsing the xml and creates definitions model out of it.
(The parsing takes few seconds in some cases).
We are thinking to perform the parsing at backend(our java camunda service).
Send to front end ready model.
Instead of using Viewer.importXML(), use Viewer.prototype.importDefinitions(definitions)
Does it make sense?
Is there out of the shelf java library?
If I understand you correctly, you suggest to pre-render SVG using bpmn-io and then using just this static SVG for user to view it.
We do need performance boost for rendering at this point.
However, we use ElementRegistry, overlays and other bpmn-io features at run time according to user clicks on diagram.
It seems like a big change for us at this point…