Java model validation using camunda libraries

I am using to generate XML, I want to write java code to validate this XML against common issues in the diagram (missing start, missing end, disconnected nodes, …)
What I could find that BpmnModelInstance.validate(ModelElementValidator collection) should do this, but I can’t find any implementations of this interface to choose what I need from.
Are there any implementation of this validator interface implemented by camunda or the community than I can use to make diagram validation ?

If you are interested just in BPMN validation and it doesn’t need to be Java code, you could make use of bpmnlint and write custom rules for it.

Otherwise, I would like you to ask this question on Camunda forum instead. There you can meet Java experts who should be able to help you.

1 Like

Thank you for your recommendation
I already asked the same question on camunda forum, and it seems also that they already recommend using bpmnlint

1 Like