Hello,
I have this process:
<task-node name="Investigate"> <task name="INV_LOAN"> .............. </task> <timer duedate="1 minute" name="task_timer" transition="End Application"> <action class="org.wicket.jbpm.engine.handlers.TimerAction"></action> </timer> <transition to="fork1" name="Loan Review"></transition> <transition to="End Loan Application" name="End Application"></transition> </task-node>
public void execute(ExecutionContext context) throws Exception { jbpmEngine.endTimerTask(context); } @Override protected void initialiseHandler(BeanFactory factory) { jbpmEngine = (JbpmCoreEngine) factory.getBean("wf_core_engine"); }
public void endTimerTask(ExecutionContext context) throws WicketJbpmException { try { final Collection<TaskInstance> tasks = context .getTaskMgmtInstance().getTaskInstances(); for (TaskInstance tasksInts : tasks) { if (!tasksInts.hasEnded()) { tasksInts.end(); log.info("task name: " + tasksInts.getName() + " has ended."); } } // finally save the process instance contain here in timers context.getJbpmContext().save( context.getToken().getProcessInstance());
What happens when you remove the action attached to the timer?