-
1. Re: How to get the bpmn file validation information
xs06974 Dec 25, 2012 11:31 PM (in response to xs06974)Plus: I use below code to validate the bpmn file programmatically and can't find any error in the attached bpmn file. But the Jbpm Console still can's show any process.
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("Test0.bpmn"), ResourceType.BPMN2);
if(kbuilder.hasErrors()){
Iterator itr = kbuilder.getErrors().iterator();
while(itr.hasNext()){
KnowledgeBuilderError error = (KnowledgeBuilderError)itr.next();
System.out.println(error.getMessage());
}
}
-
2. Re: How to get the bpmn file validation information
xs06974 Dec 26, 2012 9:53 PM (in response to xs06974)Hi guys, the question I depicted has been solved by myself. I just give some comments for further reference.
The jbpm version that caused the problem was jbpm 5.3. Once I upgraded to 5.4, the question disappeared. But if you upgrade from 5.3 to 5.4, you need to run ant clean.db firstly. otherwise you will encounter very weird transaction issue.