Add custom rules


Hello dear friends.
I’m new in programming and I try to add custom rules to modeler.
I read documentation but I don’t understand how can I do it.
Please tell me in easy steps how can I add rules to modeler.
Thanks you very much.


The example shows you exactly what to do in order to add you custom rules

  1. Create a custom RuleProvider
  2. Add your custom rules

All that’s left to do is to use your custom rules in the modeler.

var customRulesModule = require('./custom-rules');

var modeler = new BpmnModeler({
  container: '#canvas',
  additionalModules: [