7 Replies Latest reply on Apr 6, 2009 7:24 PM by kukeltje

    Process Definition XML Validation Problems

    caleb.powell1

      Hi,

      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:

      org.jbpm.jpdl.JpdlException: [[ERROR] line 366: cos-ct-extends.1.4.2.2.2.2.1: 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?

      Thanks,

      Caleb