03-18-2011 05:16 AM
03-18-2011 07:27 AM
final TaskService taskService = activitiRule.getTaskService();
final TaskQuery taskQuery = taskService.createTaskQuery();
taskQuery.taskName("nameOfMyTask");
List<Task> tasks = taskQuery.list();
assertEquals(1, tasks.size());
String taskId = tasks.get(0).getId();
Map<String,Object> taskVars = new HashMap<String,Object>();
taskVars.put("amount", 5);
taskVars.put("customerName", "John Doe");
taskVars.put("type", "iPhone");
taskService.complete(taskId, taskVars);
tasks = taskQuery.list();
assertEquals(0, tasks.size());
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.