return wfNodeStatuses;
}
public static WorkflowNodeDetails getWorkflowNodeDetails(WorkflowNodeDetailResource nodeDetailResource) throws RegistryException {
if (nodeDetailResource != null){
WorkflowNodeDetails wfNode = new WorkflowNodeDetails();
wfNode.setNodeInstanceId(nodeDetailResource.getNodeInstanceId());
wfNode.setCreationTime(nodeDetailResource.getCreationTime().getTime());
wfNode.setNodeName(nodeDetailResource.getNodeName());
List<NodeInputResource> nodeInputs = nodeDetailResource.getNodeInputs();
wfNode.setNodeInputs(getNodeInputs(nodeInputs));
List<NodeOutputResource> nodeOutputs = nodeDetailResource.getNodeOutputs();
wfNode.setNodeOutputs(getNodeOutputs(nodeOutputs));
List<TaskDetailResource> taskDetails = nodeDetailResource.getTaskDetails();
wfNode.setTaskDetailsList(getTaskDetailsList(taskDetails));
wfNode.setWorkflowNodeStatus(getWorkflowNodeStatus(nodeDetailResource.getWorkflowNodeStatus()));
List<ErrorDetailResource> errorDetails = nodeDetailResource.getErrorDetails();
wfNode.setErrors(getErrorDetailList(errorDetails));
wfNode.setExecutionUnit(ExecutionUnit.valueOf(nodeDetailResource.getExecutionUnit()));
wfNode.setExecutionUnitData(nodeDetailResource.getExecutionUnitData());
return wfNode;
}
return null;
}