Validating diagram process

Hi, i want to know if there is a way to validate a process created in a diagram. In my case I have a diagram embedded into a ui, and I want to validate when I press a button if the process created at that time is not empty and at least have a start - user task - end sequence.

Thanks in advance for any suggestion.

Hi @frmancil,

maybe the BPMN linter helps you out: https://github.com/bpmn-io/bpmnlint?

Hope this helps, Ingo

1 Like

Hi Ingo,

thanks for your fast response, I’m gonna check it to see if I can achieve what i’m trying to do.

I added the bpmnlint into my ui and actually it shows the errors and warnings that came by default, but what I need is to catch this validations outside the diagram, so when I click on a button, if there is a lint advice inside the diagram the button action cannot be triggered. I don´t know if bpmnlint exposes some methods to achieve this.

Any suggestions are welcomed.

bpmnlint itself can be used as modular command line tool which uses the linting API, so that you can validate any diagram wherever you want, also outside of the Modeler itself. Maybe the way the command line tool is built helps you.

1 Like

Thanks a lot for your answer, I’m gonna check that out.