cancel
Showing results for 
Search instead for 
Did you mean: 

Custom BPMN Parser not working after 5.15.1 Updates

mittalabhi86
Champ in-the-making
Champ in-the-making
Hi,

In my application, I have written a couple of custom BPMN parsers to validate the bpmn file during deployment.

Those used to work fine till I was running 5.14, but since I have updated the activiti 5.15.1, these aren't working.

What I noticed was BpmnModel.addProblem() has been removed, and addError() of same class is not reporting the errors to client. I mean, errors get added to ErrorMap in BpmnModel, yet the deployment process doesn't fail.

Please suggest, do we have another alternative method on for addProblem() ?

Regards
Abhishek
4 REPLIES 4

trademak
Star Contributor
Star Contributor
Hi,

There's a new module named activiti-process-validation which now centralizes all validation logic. So if you would like to add your own validation logic you should inject your own ProcessValidator instance into the process engine configuration.

Best regards,

mittalabhi86
Champ in-the-making
Champ in-the-making
Hi,
Thanks for reverting back!

Just wanted to check, if there is any user guide/reference material for this new module added.

Regards
Abhishek

mittalabhi86
Champ in-the-making
Champ in-the-making
Also, following is the code snippet that illustrates how I set my custom parse validator. It was working till 5.14.

<code>processEngineConfigurationImpl.setPostBpmnParseHandlers(Lists.newArrayList(topicValidationParser));</code>

Where,

processEngineConfigurationImpl is the instance of Process Engine Configuration,
and topicValidationParser is instance of custom parser validator.

Regards
Abhishek

jbarrez
Star Contributor
Star Contributor
You don't need to inject it in the parse handlers. See ProcessEngineConfigurationImpl.setProcessValidator()