Continuing the discussion from Some questions about some specific needs and whether bpmn-js can ensure them:
and
Continuing the discussion from Add custom rules:
I tried adding this custom rules example on my angular app everything seems fine, but I’m not sure if it works or not, as I’m quite not sure what this custom rules is supposed to do exactly.
I used the exact same code (same custom rule provider) added it to my bpmn modeler:
import * as BpmnJS from 'bpmn-js/dist/bpmn-modeler.production.min.js';
//import * as customRules from './customRule';
import CustomRules from './customRuleProvider';
...
constructor(private http: HttpClient) {
//console.log(CustomRules);
this.bpmnJS = new BpmnJS({
additionalModules:[
CustomRules
]
});
}
I’m loading this xml bpmn file at start:
https://github.com/bpmn-io/bpmn-js-examples/blob/master/custom-modeling-rules/test/spec/diagram.bpmn
I tried removing and readding the attribute vendor:allowDrop=“bpmn:Task” but I can’t see any difference.