09-19-2014 01:59 AM
<userTask id="auditPhase1" name="Audit Phase 1">
<extensionElements>
<activiti:field name="actions" stringValue="Approve,Reject,Reprocess" />
</extensionElements>
</userTask>
ProcessInstance processInstance = getProcessInstance(dataId);
BpmnModel model = getBpmnModelForProcessDefinition(processInstance.getProcessDefinitionId());
List<TaskDetail> taskDetails = Lists.newArrayList();
for(Object obj : model.getMainProcess().getFlowElements()) {
if(obj instanceof ServiceTask) {
ServiceTask serviceTask = (ServiceTask)obj;
taskDetails.add(new TaskDetail(serviceTask));
} else if(obj instanceof UserTask) {
UserTask userTask = (UserTask)obj;
taskDetails.add(new TaskDetail(userTask));
}
}
09-27-2014 11:17 AM
09-29-2014 03:10 AM
09-29-2014 04:33 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.