Package org.apache.airavata.registry.api.workflow

Examples of org.apache.airavata.registry.api.workflow.NodeExecutionError


            return provenanceRegistry.getNodeExecutionErrors(experimentId, workflowInstanceId, nodeId);
        }
    List<NodeExecutionError> result=new ArrayList<NodeExecutionError>();
    List<ExecutionErrorResource> executionErrors = jpa.getWorker().getExperiment(experimentId).getData().getExecutionErrors(Source.NODE.toString(), experimentId, workflowInstanceId, nodeId, null);
    for (ExecutionErrorResource errorResource : executionErrors) {
      NodeExecutionError error = new NodeExecutionError();
      setupValues(errorResource, error);
      error.setExperimentId(errorResource.getExperimentDataResource().getExperimentID());
      error.setNodeId(errorResource.getNodeID());
      error.setWorkflowInstanceId(errorResource.getWorkflowDataResource().getWorkflowInstanceID());
      result.add(error);
    }
    return result;
  }
View Full Code Here


            return provenanceRegistry.getNodeExecutionErrors(experimentId, workflowInstanceId, nodeId);
        }
    List<NodeExecutionError> result=new ArrayList<NodeExecutionError>();
    List<ExecutionErrorResource> executionErrors = jpa.getWorker().getExperiment(experimentId).getData().getExecutionErrors(Source.NODE.toString(), experimentId, workflowInstanceId, nodeId, null);
    for (ExecutionErrorResource errorResource : executionErrors) {
      NodeExecutionError error = new NodeExecutionError();
      setupValues(errorResource, error);
      error.setExperimentId(errorResource.getExperimentDataResource().getExperimentID());
      error.setNodeId(errorResource.getNodeID());
      error.setWorkflowInstanceId(errorResource.getWorkflowDataResource().getWorkflowInstanceID());
      result.add(error);
    }
    return result;
  }
View Full Code Here

            return provenanceRegistry.getNodeExecutionErrors(experimentId, workflowInstanceId, nodeId);
        }
    List<NodeExecutionError> result=new ArrayList<NodeExecutionError>();
    List<ExecutionErrorResource> executionErrors = jpa.getWorker().getExperiment(experimentId).getData().getExecutionErrors(Source.NODE.toString(), experimentId, workflowInstanceId, nodeId, null);
    for (ExecutionErrorResource errorResource : executionErrors) {
      NodeExecutionError error = new NodeExecutionError();
      setupValues(errorResource, error);
      error.setExperimentId(errorResource.getExperimentDataResource().getExperimentID());
      error.setNodeId(errorResource.getNodeID());
      error.setWorkflowInstanceId(errorResource.getWorkflowDataResource().getWorkflowInstanceID());
      result.add(error);
    }
    return result;
  }
View Full Code Here

            }
        } else if (type == EventType.RECEIVED_FAULT
                || type == EventType.SENDING_FAULT || type == EventType.SENDING_RESPONSE_FAILED) {
            //Constructing NodeExecutionError with required data...
            logger.error(event.getMessage());
            NodeExecutionError nodeExecutionError = new NodeExecutionError();
            nodeExecutionError.setExperimentId(event.getExperimentID());
            nodeExecutionError.setNodeId(event.getNodeID());
            nodeExecutionError.setWorkflowInstanceId(event.getExperimentID());
            nodeExecutionError.setErrorMessage(event.getMessage());
            nodeExecutionError.setErrorDescription(event.getMessage());
            nodeExecutionError.setErrorTime(event.getTimestamp());
            this.workflowInterpreterConfiguration.getAiravataAPI().getExecutionManager().addNodeExecutionError(nodeExecutionError);
            if (node == null) {
              if (nodeID!=null && !nodeID.equals("")) {
          logger.warn("There is no node that has ID, " + nodeID);
        }
View Full Code Here

            return provenanceRegistry.getNodeExecutionErrors(experimentId, workflowInstanceId, nodeId);
        }
    List<NodeExecutionError> result=new ArrayList<NodeExecutionError>();
    List<ExecutionErrorResource> executionErrors = jpa.getWorker().getExperiment(experimentId).getData().getExecutionErrors(Source.NODE.toString(), experimentId, workflowInstanceId, nodeId, null);
    for (ExecutionErrorResource errorResource : executionErrors) {
      NodeExecutionError error = new NodeExecutionError();
      setupValues(errorResource, error);
      error.setExperimentId(errorResource.getExperimentDataResource().getExperimentID());
      error.setNodeId(errorResource.getNodeID());
      error.setWorkflowInstanceId(errorResource.getWorkflowDataResource().getWorkflowInstanceID());
      result.add(error);
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of org.apache.airavata.registry.api.workflow.NodeExecutionError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.