bpmn-io / bpmnlint

Validate BPMN diagrams based on configurable lint rules.
MIT License
123 stars 36 forks source link

Be able to hook up custom moddle extension #8

Open nikku opened 6 years ago

nikku commented 6 years ago

For improved validation of extended BPMN models it would be beneficial to be able to register a custom moddle extension so that we can do the following, i.e. as part of rules:

function check(node, reporter) {
  if (is(node, 'camunda:Callable')) {
    // custom check, 1212
  }
}
Fektoer commented 2 years ago

Any update on this? This would be some nice functionality that we could use. Right now some of our nodes have some extended properties that won't show up.

nikku commented 2 years ago

Happy to take a contribution to add this behavior.

ahumellihuk commented 10 months ago

I would also like to see this. It appears that all that is needed is to pass the extensions schema to the BpmnModdle constructor here: https://github.com/bpmn-io/bpmnlint/blob/77b77bd0087af2a610ece67d8a2d4303b3d8c76a/bin/bpmnlint.js#L56