09-01-2011 06:25 AM
<userTask id="renew_request"
name="Renew Request(${requestNumber})"
activiti:assignee="${assignee}" activiti:dueDate="${dueDate}">
tasks = getActivitiEngine().getTaskService().createTaskQuery().taskAssignee(userID).orderByTaskPriority().asc().orderByTaskCreateTime().asc().list();
09-01-2011 08:39 AM
<if test="dueBefore != null">
and T.DUE_DATE_ < #{dueBefore}
</if>
09-01-2011 08:48 AM
private List<Task> removeDueTask(List<Task> list) {
List<Task> newList = new ArrayList<Task>();
Date now = new Date();
for(Task t : list){
if(t.getDueDate() != null && t.getDueDate().before(now)){
getActivitiEngine().getTaskService().complete(t.getId());
}else{
newList.add(t);
}
}
return list;
}
09-02-2011 03:34 AM
RuntimeService
void deleteProcessInstance(String processInstanceId, String deleteReason);
09-02-2011 05:40 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.