[jboss-user] [jBPM Users] - timer not signalling to right transition
freak182
do-not-reply at jboss.com
Tue Oct 20 04:35:27 EDT 2009
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.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261195#4261195
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261195
More information about the jboss-user
mailing list