Build hackable bpmn-js viewer with hardcoded xml model


I’ve set up your project with the shell script, everything worked fine (except a grunt error in bpmn-moddle, Error: JAVA_HOME is not defined).

Now I want to set up the bpmn-viewer with a hardcoded xml-file in a html page, to be able to change the rendering of symboles.

I’ve put your code from into the index.js, browserifyed it to a bundle and than provided it as a dependency in the html file, but references (bpmnViewer) were undefined.

Could you give me a hint how to proceed?

Thanks in advance,

Hi hoZeh, welcome to our forum,

if you want to include the viewer into a HTML website you could take a look at the following example, which shows how to integrate bpmn-js into a node-style application:

If you have questions, please don’t hesitate to ask :wink:

Hey pedesen,

thank you for your quick and helpful answer, it helped a lot! :relaxed:

best regards!

1 Like