Build hackable bpmn-js viewer with hardcoded xml model

Hey,

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 https://github.com/bpmn-io/bpmn-js 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,
Chris

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: https://github.com/bpmn-io/bpmn-js-examples/tree/master/simple-commonjs.

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