[jboss-user] [JBoss jBPM] - Re: how to implement co-sign a task by several person?

aspider do-not-reply at jboss.com
Thu Dec 4 04:35:17 EST 2008


Based on codes mentioned above, i have been confused by this problem for several days, who can tell me how to write 'task-end' action.
Test the process, i always get this error:


  | org.jbpm.JbpmException: this token is locked by token[0]
  | 	at org.jbpm.graph.exe.Token.signal(Token.java:182)
  | 	at org.jbpm.graph.exe.Token.signal(Token.java:140)
  | 	at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:479)
  | 	at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:393)
  | 	at com.sample.action.CosignTaskEndHandler.execute(CosignTaskEndHandler.java:37)
  | 	at org.jbpm.graph.def.Action.execute(Action.java:122)
  | 	at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)
  | 	at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:215)
  | 	at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:185)
  | 	at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:198)
  | 	at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:169)
  | 	at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:452)
  | 	at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:393)
  | 	at com.sample.action.CosignTaskEndHandler.execute(CosignTaskEndHandler.java:37)
  | 	at org.jbpm.graph.def.Action.execute(Action.java:122)
  | 	at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)
  | 	at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:215)
  | 	at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:185)
  | 	at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:198)
  | 	at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:169)
  | 	at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:452)
  | 	at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:393)
  | 	at com.sample.SimpleProcessTest.testSimpleProcess(SimpleProcessTest.java:59)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	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 junit.framework.TestSuite.runTest(TestSuite.java:208)
  | 	at junit.framework.TestSuite.run(TestSuite.java:203)
  | 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
  | 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  | 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
  | 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
  | 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
  | 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
  | 
  | 

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

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



More information about the jboss-user mailing list