[jboss-user] [JBoss jBPM] - Re: Task timer and TaskInstance.dueDate field
do-not-reply at jboss.com
Thu Sep 11 04:37:20 EDT 2008
Allthough it has been a while since the post below was posted, I am
facing a somewhat simular dilemma...
Basically I also have a timer asociated on a task node. Seems to be
working just fine, but when i get a tasklist the task duedate is not set
to the timer and I agree with the poster of the original message that
the task duedate really should be the Timer duedate wich was asociated
with this task to begin with. Obviously I could 'kludge' some db calls
to fill my own task objects, go through the jobs of the processInstance
and add the timers to my own custom task objects... Dont really want
to do that however since I feel the aproach below makes sense.
Any of the jBPM gurus like to comment ?
Greetings and thanks upfront for your time,
Leo de Blaauw
"p4elka" wrote : Hello
| JBPM allow to use timers with task instance, where timer has it's own due date not related to task due date. Timer's due date cannot be changed after timer is created (at least using API provided i.e SchedulerService or JobSession).
| Sometimes it is required to change due date for timer associated with task instance after task instance is created, and I haven't found standard way of doing this in JBPM.
| Here is how I think this could be implemented and I would be glad to get your opinion on this.
| I believe that link between task instance due date and task timer due date is missing in current JBPM implementation.
| Task due date should be ignored when timer is associated with task, and task instance should be initialized with timer due date.
| Upon change of task due date, we should look whether task has timer associated and if yes, timer instance should be found and updated with new due date value.
| Another approach could be not to change dates in existing timers but cancel timer and create new one using existing timer declaration.
| What do you think ?
| Thanks a lot !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175787#4175787
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175787
More information about the jboss-user