Hello,
That works thanks. Now my question is, How to end task in Timers? Like the example above
code i get the TaskInstance so that i can end that task when leaving for the next task
during timeout.
| final Collection<TaskInstance> tasks =
context.getTaskMgmtInstance().getTaskInstances();
|
| for(TaskInstance inst : tasks){
| inst.end();
| }
|
this code end the task but proceed to the default transition not to "to approver
B". same behavior occur from below code.
|
| final Collection<TaskInstance> tasks =
context.getTaskMgmtInstance().getTaskInstances();
| final Token token = context.getToken();
|
| //token.signal();
| for(TaskInstance inst : tasks){
|
| inst.end();
| }
|
| context.getJbpmContext().save(token.getProcessInstance());
|
But when there is no ActionHandler attached, i doesnt end the task instead the task
remained on the user and proceed to the next task with different user.
Thanks a lot.
Cheers.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235148#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...