10-11-2012 04:23 AM
// case 1
Task myTask = lstCandidateTask.get(0);
myTask.setAssignee(myUser);
List<Task> lstTask = taskServ.createTaskQuery().taskAssignee(myUser).list();
// case 2
Task myTask = lstCandidateTask.get(0);
taskServ.claim(myTask.getId(), myUser);
List<Task> lstTask = taskServ.createTaskQuery().taskAssignee(myUser).list();
10-11-2012 06:31 AM
Task myTask = lstCandidateTask.get(0);
myTask.setAssignee(myUser);
taskServ.saveTask(myTask);
List<Task> lstTask = taskServ.createTaskQuery().taskAssignee(myUser).list();
10-11-2012 08:32 AM
10-11-2012 08:40 AM
10-11-2012 09:25 AM
It's a simple principle IMHO. All operations you perform on the task-service (e.g.. setAssignee and claim) are persisted immediately.
Everything you do on the Task object, should be applied by saving that object, using saveTask().
10-11-2012 10:17 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.