[jboss-user] [JBoss jBPM] - Process Definition XML Validation Problems

caleb.powell@intelliware.c do-not-reply at jboss.com
Fri Dec 14 11:13:37 EST 2007


we are trying to parse a very simple process definition xml file. We are using the following environment:

-jbpm 3.2.2ga
-XercesImpl 2.2.1 paser on the Classpath
-Java 1.4.2_13

When we attempt to load the xml, the validation is failing. We suspect that there is nothing wrong with our xml file, and in fact, the problem lies with the xsd. This is the xml we are trying to parse:

<process-definition xmlns="urn:jbpm.org:jpdl-3.2">
  | <start-state>
  | <transition to='s' />
  | </start-state>
  | <state name='s'>
  | <transition to='end' />
  | </state>
  | <end-state name='end' />
  | </process-definition>

We get the following exception from jBPM:

anonymous wrote : org.jbpm.jpdl.JpdlException: [[ERROR] line 366: cos-ct-extends. Error for type '#AnonType_assignment'.  The content type of a derived type and that of its base must both be mixed or element-only., [ERROR] line 1: cvc-complex-type.4: Attribute 'name' must appear on element 'process-definition'.]
  |  at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:172)
  |  at org.jbpm.graph.def.ProcessDefinition.parseXmlString(ProcessDefinition.java:151)

We've seen this problem posted before with no responses. Does anyone know why this is happening? Is it a problem with the xsd or are we doing something wrong?



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112995#4112995

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112995

More information about the jboss-user mailing list