This content has been marked as final.
Show 5 replies
-
1. Re: How to get TaskInstance in a ActionHandler
freak182 Jun 3, 2009 6:18 AM (in response to freak182)
btw, im using db persistence -
3. Re: How to get TaskInstance in a ActionHandler
kukeltje Jun 3, 2009 6:57 AM (in response to freak182)sorry, part fell off... use the context.getTaskManagementInstance()....
-
4. Re: How to get TaskInstance in a ActionHandler
freak182 Jun 4, 2009 12:00 AM (in response to freak182)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. -
5. Re: How to get TaskInstance in a ActionHandler
kukeltje Jun 4, 2009 6:01 AM (in response to freak182)New questions in new topics please with correct subjects so everything is relevant