This content has been marked as final.
Show 1 reply
-
1. Re: Timer Issue
pganesh81 May 19, 2006 1:51 AM (in response to pganesh81)I solved the problem.
I used a node whose actionhandler will create a timer. Below is the code for actionhandler and the process definition.This is the actionHandler creating Timer public void execute(ExecutionContext executionContext){ //executionContext.getJbpmContext().getGraphSession().saveProcessInstance(executionContext.getProcessInstance() ); try{ jbpmContext = executionContext.getJbpmContext(); jbpmContext.save(executionContext.getProcessInstance() ); CreateTimerAction cta = new CreateTimerAction(); cta.setTimerName("myTimer"); cta.setDueDate("1 minutes"); cta.setTransitionName("myTransition" ); cta.execute(executionContext); } catch(Exception ex){ ex.printStackTrace(); } } This is the description of Node in process-definition.xml <node name="node1"> <action class="org.jbpm.webapp.bean.savePersistence"></action> <transition name="myTransition" to="salefork"></transition> </node>