[jboss-dev-forums] [Design of JBoss jBPM] - processInstance.signal DelegationException in a Servlet

bgphp do-not-reply at jboss.com
Fri Mar 9 13:15:37 EST 2007


I am trying to test a simple processDefinition in servlet...i always get  ' DelegationException in processInstance.signal();'


org.jbpm.graph.def.DelegationException
org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:352)
org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:346)
org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:249)
org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:212)
org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:182)
org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:166)
org.jbpm.graph.def.Node.enter(Node.java:301)
org.jbpm.graph.def.Transition.take(Transition.java:119)
org.jbpm.graph.def.Node.leave(Node.java:383)
org.jbpm.graph.node.StartState.leave(StartState.java:70)
org.jbpm.graph.exe.Token.signal(Token.java:178)
org.jbpm.graph.exe.Token.signal(Token.java:123)
org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:217)
org.example.web.WorkflowExcecuteServlet.SimpleNodeActionsFlow(WorkflowExcecuteServlet.java:162)



Servlet code  looks like this..

DefnString is   :

<process-definition>
<start-state>
<transition to=\'start\'/>
</start-state>
<state name=\'start\'>
<event type=\'node-enter\'>
<action class=\'org.example.web.MyActionHandler\'/>

<event type=\'node-leave\'>
<action class=\'org.example.web.MyActionHandler\'/>

<transition to=\'end\'/>


<end-state name=\'end\' />
</process-definition>


ProcessDefinition processDefinition = ProcessDefinition.parseXmlString( defnString  );
	    
	    ProcessInstance processInstance = 
	      new ProcessInstance(processDefinition);
	    
	
	    // The next signal will cause the execution to leave the start 
	    // state and enter the state 's'.  So the state 's' is entered
	    // and hence the action is executed.
	    processInstance.signal();


Can you someone help me ..what is wrong with this code?


thanks
BG

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

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



More information about the jboss-dev-forums mailing list