How to verify whether the deployment file format is correct

How to verify whether the deployment file format is correct

If you’re using the Java client, you automatically have access to the io.camunda.zeebe.model.bpmn.Bpmn class, which provides a validateModel method.

For example, you can validate a generated model

Bpmn.validateModel(Bpmn.createProcess().startEvent().endEvent().done());

Or you can validate a bpmn file:

Bpmn.validateModel(Bpmn.readModelFromFile(file));
1 Like