06-30-2016 03:12 AM
Start —–> JiraService —–> ClearQuest Service —>……—> n—-> End
public ProcessInstance startProcess(String productLine, Map<String, Object> processVariables, String comment) {
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("almAdminPro", processVariables);
taskService.addComment(null, processInstance.getId(), "test");
return processInstance;
}
public void completeTask(Map<String, Object> taskVariables, String processInstanceId, String currentApprover) {
Task task = taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee(currentApprover).singleResult();
if(task != null) {
taskService.complete(task.getId(), taskVariables);
}
}
07-01-2016 02:43 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.