[jbpm-users] [JBoss jBPM] - task due date

frinux do-not-reply at jboss.com
Tue Jul 28 09:37:36 EDT 2009


Hi,
I'm trying to set a due date to a task, so that when the due date happends, the task ends and one transition is taken.

Here is what I tried :

Collection<TaskInstance> tasks = processInstance.getTaskMgmtInstance().getTaskInstances();
  | 				for (TaskInstance taskInstance : tasks) {
  | 					if(taskInstance.getName().equals("valider_demande"))
  | 					{
  | 						taskInstance.setDueDate(demande.getAbsenceDateDebut());
  | 						jbpmContext.save(taskInstance);
  | 					}
  | 				}

Nothing happens when the due date expires, so I wonder how to make it work...

Thanks

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246444#4246444

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246444


More information about the jbpm-users mailing list