Thanks for the above info.
I tried using the code you have provided but its not adding the custom rules as I am still able to use palette elements with default rules.
import $ from 'jquery';
import BpmnModeler from 'bpmn-js/lib/Modeler';
import CustomRules from './custom-rules';
$(() => {
var modeler = new BpmnModeler({
container: ‘#canvas’,
keyboard: {
bindTo: document
},
additionalModules: [
CustomRules
],
height: “75%”
});
modeler.createDiagram();
});
Anything extra needed to be done here ?