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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to