[jboss-user] [jBPM] - Re: How to get the bpmn file validation information
xin sun
do-not-reply at jboss.com
Tue Dec 25 23:31:22 EST 2012
xin sun [https://community.jboss.org/people/xs06974] created the discussion
"Re: How to get the bpmn file validation information"
To view the discussion, visit: https://community.jboss.org/message/784915#784915
--------------------------------------------------------------
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());
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/784915#784915]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121225/92e6e38f/attachment-0001.html
More information about the jboss-user
mailing list