<?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>
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.]
<transition to="end"></transition>
I forget to say that I use jbpm-jpdl-3.2.2.