Bpmn.validateModel() is run before deployment and succeeds but then Camunda keeps complaining in the logs:
ENGINE-09004 Warnings during parsing:
* Exclusive Gateway 'Gateway' has outgoing sequence flow 'SequenceFlow_3' without condition which is not the default flow. We assume it to be the default flow, but it is bad modeling practice, better set the default flow in your gateway.
How can the process be checked for warnings like that at deployment time?
Thanks @StephenOTT. I will give this a try, its not clear to me at the moment if this performs the same validation that produces the warnings in the log or if I would have to implement my own parsing rules.
then i would run the validation method (you will see it in the BPMN parsing listener), and then do a check on what errors and warnings are found, and if warnings are found then throw a IllegaState error