return workflowNodeDetailsList;
}
public static TaskDetails getTaskDetail (TaskDetailResource taskDetailResource) throws RegistryException {
if (taskDetailResource != null){
TaskDetails taskDetails = new TaskDetails();
String taskId = taskDetailResource.getTaskId();
taskDetails.setTaskID(taskId);
taskDetails.setApplicationId(taskDetailResource.getApplicationId());
taskDetails.setApplicationVersion(taskDetailResource.getApplicationVersion());
List<ApplicationInputResource> applicationInputs = taskDetailResource.getApplicationInputs();
taskDetails.setApplicationInputs(getApplicationInputs(applicationInputs));
List<ApplicationOutputResource> applicationOutputs = taskDetailResource.getApplicationOutputs();
taskDetails.setApplicationOutputs(getApplicationOutputs(applicationOutputs));
taskDetails.setApplicationDeploymentId(taskDetailResource.getApplicationDeploymentId());
if (taskDetailResource.isExists(ResourceType.COMPUTATIONAL_RESOURCE_SCHEDULING, taskId)){
ComputationSchedulingResource computationScheduling = taskDetailResource.getComputationScheduling(taskId);
taskDetails.setTaskScheduling(getComputationalResourceScheduling(computationScheduling));
}
if (taskDetailResource.isExists(ResourceType.ADVANCE_INPUT_DATA_HANDLING, taskId)){
AdvanceInputDataHandlingResource inputDataHandling = taskDetailResource.getInputDataHandling(taskId);
taskDetails.setAdvancedInputDataHandling(getAdvanceInputDataHandling(inputDataHandling));
}
if (taskDetailResource.isExists(ResourceType.ADVANCE_OUTPUT_DATA_HANDLING, taskId)){
AdvancedOutputDataHandlingResource outputDataHandling = taskDetailResource.getOutputDataHandling(taskId);
taskDetails.setAdvancedOutputDataHandling(getAdvanceOutputDataHandling(outputDataHandling));
}
taskDetails.setTaskStatus(getTaskStatus(taskDetailResource.getTaskStatus()));
List<JobDetailResource> jobDetailList = taskDetailResource.getJobDetailList();
taskDetails.setJobDetailsList(getJobDetailsList(jobDetailList));
taskDetails.setErrors(getErrorDetailList(taskDetailResource.getErrorDetailList()));
taskDetails.setDataTransferDetailsList(getDataTransferlList(taskDetailResource.getDataTransferDetailList()));
return taskDetails;
}
return null;
}