cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti validation

foxter
Champ in-the-making
Champ in-the-making
Hi

Does Activiti engine have some validation methods for bpmn model (BpmnModel class, BPMN 2.0 xml-parsing and others)?
Checkup flows directions and objects/process settings (tasks, gateways etc).
6 REPLIES 6

jbarrez
Star Contributor
Star Contributor
Yes: the bpmn xml is checked against the BPMN 2.0 xsd for obvious xml errors and then there is validation on sequenceflow reaching a correct target, correct boundary event connections, etc.

jbarrez
Star Contributor
Star Contributor
You could use the BpmnXmlConverter class. It has a validate method.

frederikherema1
Star Contributor
Star Contributor
All validation is in the BPMNParse, obtained from a BPMNParser. If you can get hold of the BPMNDeployer(), you can get the BPMNParser and request this to parse. After parsing, all "problems" are exposed on the BPMNModel that rolls out of it.

beligiordano
Champ in-the-making
Champ in-the-making
Hi,

how can I call validation from BpmnParse? I have an xml file I want to validate

jbarrez
Star Contributor
Star Contributor
processEngineConfiguration.getProcessValidator().validate(bpmnModel)

marksierikov
Champ in-the-making
Champ in-the-making
Hi. I think i have related question. What if i want to validate certian FlowElement. If somebody changes FlowElement properties from UI i want to validate only this FlowElement. As i understand we can validate only entire BpmnModel. What can i do in my case?