1 Reply Latest reply on Jul 31, 2008 11:51 PM by jiang wei

    I have a very simple processdefinition, but it doesn't work.

    jiang wei Newbie

       

      <?xml version="1.0" encoding="UTF-8"?>
      
      <process-definition
       xmlns="http://jbpm.org/3/jpdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://jbpm.org/3/jpdl http://docs.jboss.org/jbpm/xsd/jpdl-3.0.xsd"
       name="paidan">
      
       <start-state name="start">
       <transition to="task"></transition>
       </start-state>
      
      
       <task-node name="task" create-tasks="false">
       <event type="node-enter">
       <action name="createInstance" class="com.sample.action.CreateTask"></action>
       </event>
       <transition to="end"></transition>
       </task-node>
      
      
       <end-state name="end"></end-state>
      
      </process-definition>
      

      errors is below:
      org.jbpm.jpdl.JpdlException: [[ERROR] line 21: cvc-complex-type.2.4.a: Invalid content was found starting with element 'transition'. One of '{"http://jbpm.org/3/jpdl":event, "http://jbpm.org/3/jpdl":timer, "http://jbpm.org/3/jpdl":exception-handler}' is expected.]
      

      line 21 is
      <transition to="end"></transition>


      I need some help, thank you!