[jboss-user] [JBoss jBPM] - I have some problems Help!

achui_1980 do-not-reply at jboss.com
Wed Nov 15 03:37:12 EST 2006


hi 
i'm using jbpm to test a process,but when i add a even "node-leave",jbpm always tell some exceptions like this 

org.jbpm.jpdl.JpdlException: [[ERROR] line 20: 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., [WARNING] warning: no swimlane or assignment specified for task '
         
            
            
         
      ']
	at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
	at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
	at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
	at com.sample.SimpleProcessTest.testSimpleProcess(SimpleProcessTest.java:15)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

when i remove the event it run successful

here is my processdefinition

<?xml version="1.0" encoding="UTF-8"?>

<process-definition 
  name="simple" xmlns="http://jbpm.org/3/jpdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd ">
   <start-state name="start">
     
         
            
            
         
      
      
   </start-state>
   <end-state name="end"></end-state>
   <task-node name="TN_WriteRequest">
      
         
      
      
      
      
   </task-node>
   <task-node name="TN_TotalPart">
      
         
      
   </task-node>
   <task-node name="TN_Manager">
      
         
      
   </task-node>
   
   
      
         
      
      
   
</process-definition>

please help me ,thanks


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

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



More information about the jboss-user mailing list