cancel
Showing results for 
Search instead for 
Did you mean: 

Task Due Date

walterjs
Champ in-the-making
Champ in-the-making
I see that there is no property for a due date on the task as there was in jBPM 4. Are there any plans to add this in the near future or should this be handled differently?

Usually, a user should be able to sort their tasks by priority and due date, but at the moment I can't see how to do this.

Thanks
Walter
13 REPLIES 13

frederikherema1
Star Contributor
Star Contributor
Currently, there is nothing planned to add the due-date to the Tasks.
Sorting on priority however, is possible.


taskService.createTaskQuery().assignee("kermit").orderByTaskPriority().desc();

tombaeyens
Champ in-the-making
Champ in-the-making
if you want it, please create a jira to add a duedate property to the task.

walterjs
Champ in-the-making
Champ in-the-making
Thanks Tom, actually I'm happy to use something else if there is an alternative. How do you see this working and how is it defined in the BPMN?

jbarrez
Star Contributor
Star Contributor
It's not in the BPMN spec, and thats also the reason why we decided not to implement it in the past.

walterjs
Champ in-the-making
Champ in-the-making
And there is no BPMN construct or concept that can be used as an alternative? If so, I guess the best option is to create an activiti:extension to the userTask, because I cannot see how you would do without it unless you store variables in the process context and display them in the item discriptions or model timers and escalations for each activity.

mproch
Champ in-the-making
Champ in-the-making
Well, I think that BPMN spec does not define any advanced human task handling like escalations, deadlines etc. Such things can be defined using WS-HumanTasks spec.

There is even special enumaration for such tasks in BPMN - implementation="HumanTaskWebService". We are considering using additional component implementing WS-HT for handling human tasks (this is how it's done in JBPM5 I believe), such as  http://incubator.apache.org/hise/  (currently the development slowed down as few core developers left)

walterjs
Champ in-the-making
Champ in-the-making
I've created this JIRA in the meantime: http://jira.codehaus.org/browse/ACT-564

Thanks
Walter

walterjs
Champ in-the-making
Champ in-the-making
Is the setDueDate method missing from TaskService?

frederikherema1
Star Contributor
Star Contributor
Walter,

You should just get the task, set the dueDate and save the task agian. In TaskListeners, you can just do delegateTask.setDueDate().