Start renderer from scratch

Hi there,

Is anyone here kind enough to give me some bullet points on how I should start developing a new renderer for bpmn? I would like to change colors of tasks dynamically.

Thank you!

Checkout bpmn-js-task-priorities.

Ok… But I run “npm install” and then what? What do I do to make it run on a simple html I have?

In the example the ColorRenderer overrides the BpmnRenderer on certain elements. That is exactly what you’d want to do if you override / replace the default renderer.

You can spin up the tests via

npm run test:watch

and checkout the results at http://localhost:9876/debug.html (karma runner).