cancel
Showing results for 
Search instead for 
Did you mean: 

Process definition file validation prior to deployment

limcheekin
Champ on-the-rise
Champ on-the-rise
Hi there,

May I know activiti engine has a way to validate the process definition file prior to deployment? By looking at the javadoc: http://activiti.org/javadocs/org/activiti/engine/repository/DeploymentBuilder.html, I doesn't aware this feature is supported.

If the activiti engine perform validation when calling DeploymentBuilder.deploy(), may I know what did it check and what happen when the process definition file is invalid?

Please advice.

Thanks,
Chee Kin
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
When a process definition is deployed, it goes through our BpmnParser.
There, all elements of the process will be parsed. If there are errors, these are all accumulated in a list and thrown as an exception when all the elements have been looked at.

You can check the BpmnParse file for all the lines that contain addError(…), those are validation errors.