1 Reply Latest reply on Oct 29, 2009 7:21 AM by jbarrez

    timer not signalling to right transition

      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>
      


      TimerAction is:
       public void execute(ExecutionContext context) throws Exception
       {
      
       jbpmEngine.endTimerTask(context);
       }
      
       @Override
       protected void initialiseHandler(BeanFactory factory)
       {
       jbpmEngine = (JbpmCoreEngine) factory.getBean("wf_core_engine");
       }
      


      CoreEngine is:
       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());
      


      when the time is up it always take the: Loan Review transition.
      am i missing something?

      im using 3.3.1.GA

      thanks a lot.
      cheers.