01-11-2014 12:28 AM
01-13-2014 09:18 AM
before starting the process, how to retrieve all the activities (user task, sub process, email task) for this process and allow admin of our application to assign custom role for each one. during execution use this custom role and allow users having this role from my database to claim and complete the task. how to achieve this.You can start process with variables and use variables in candidateGroups for tasks.
Also want to understand how to achieve below -What is it a maker?
a maker
multiple reviewers
multiple approvers
01-13-2014 12:54 PM
01-14-2014 03:11 AM
Anish: Is it possible to provide a sample example for this?
01-22-2014 10:52 AM
01-23-2014 05:36 AM
Say I have a multi instance activity to which I want to assign a custom role and multiinstances should be created for each user having this role. Please let me know how to achieve the same.
02-26-2014 11:03 PM
02-27-2014 01:46 AM
@Deployment
public void testParallelUserTasksBasedOnCollection() {
List<String> assigneeList = Arrays.asList("kermit", "gonzo", "mispiggy", "fozzie", "bubba");
String procId = runtimeService.startProcessInstanceByKey("miParallelUserTasksBasedOnCollection",
CollectionUtil.singletonMap("assigneeList", assigneeList)).getId();
List<Task> tasks = taskService.createTaskQuery().orderByTaskAssignee().asc().list();
assertEquals(5, tasks.size());
assertEquals("bubba", tasks.get(0).getAssignee());
assertEquals("fozzie", tasks.get(1).getAssignee());
assertEquals("gonzo", tasks.get(2).getAssignee());
assertEquals("kermit", tasks.get(3).getAssignee());
assertEquals("mispiggy", tasks.get(4).getAssignee());
// Completing 3 tasks will trigger completioncondition
taskService.complete(tasks.get(0).getId());
taskService.complete(tasks.get(1).getId());
taskService.complete(tasks.get(2).getId());
assertEquals(0, taskService.createTaskQuery().count());
assertProcessEnded(procId);
}
Process definition02-27-2014 02:53 AM
06-02-2015 04:44 PM
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.