airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r1484828 - /airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
Date Tue, 21 May 2013 14:55:22 GMT
Author: chathuri
Date: Tue May 21 14:55:22 2013
New Revision: 1484828

URL: http://svn.apache.org/r1484828
Log:
fixing error data not retrieving issue

Modified:
    airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java?rev=1484828&r1=1484827&r2=1484828&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/AiravataJPARegistry.java
Tue May 21 14:55:22 2013
@@ -1979,7 +1979,7 @@ public class AiravataJPARegistry extends
             return provenanceRegistry.getExperimentExecutionErrors(experimentId);
         }
 		List<ExperimentExecutionError> result=new ArrayList<ExperimentExecutionError>();
-		List<ExecutionErrorResource> executionErrors = jpa.getWorker().getExperiment(experimentId).getData().getExecutionErrors(Source.GFAC.toString(),
experimentId, null, null, null);
+		List<ExecutionErrorResource> executionErrors = jpa.getWorker().getExperiment(experimentId).getData().getExecutionErrors(Source.EXPERIMENT.toString(),
experimentId, null, null, null);
 		for (ExecutionErrorResource errorResource : executionErrors) {
 			ExperimentExecutionError error = new ExperimentExecutionError();
 			setupValues(errorResource, error);
@@ -1997,7 +1997,7 @@ public class AiravataJPARegistry extends
             return provenanceRegistry.getWorkflowExecutionErrors(experimentId, workflowInstanceId);
         }
 		List<WorkflowExecutionError> result=new ArrayList<WorkflowExecutionError>();
-		List<ExecutionErrorResource> executionErrors = jpa.getWorker().getExperiment(experimentId).getData().getExecutionErrors(Source.GFAC.toString(),
experimentId, workflowInstanceId, null, null);
+		List<ExecutionErrorResource> executionErrors = jpa.getWorker().getExperiment(experimentId).getData().getExecutionErrors(Source.WORKFLOW.toString(),
experimentId, workflowInstanceId, null, null);
 		for (ExecutionErrorResource errorResource : executionErrors) {
 			WorkflowExecutionError error = new WorkflowExecutionError();
 			setupValues(errorResource, error);
@@ -2015,7 +2015,7 @@ public class AiravataJPARegistry extends
             return provenanceRegistry.getNodeExecutionErrors(experimentId, workflowInstanceId,
nodeId);
         }
 		List<NodeExecutionError> result=new ArrayList<NodeExecutionError>();
-		List<ExecutionErrorResource> executionErrors = jpa.getWorker().getExperiment(experimentId).getData().getExecutionErrors(Source.GFAC.toString(),
experimentId, workflowInstanceId, nodeId, null);
+		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);
@@ -2168,7 +2168,7 @@ public class AiravataJPARegistry extends
 		if (provenanceRegistry != null){
             return provenanceRegistry.addNodeExecutionError(error);
         }
-		ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,ExecutionErrors.Source.WORKFLOW);
+		ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,
Source.NODE);
 		executionError.setWorkflowDataResource(jpa.getWorker().getExperiment(error.getExperimentId()).getData().getWorkflowInstance(error.getWorkflowInstanceId()));
 		executionError.setNodeID(error.getNodeId());
 		executionError.save();
@@ -2181,7 +2181,7 @@ public class AiravataJPARegistry extends
 		if (provenanceRegistry != null){
             return provenanceRegistry.addGFacJobExecutionError(error);
         }
-		ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,ExecutionErrors.Source.WORKFLOW);
+		ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,
Source.GFAC);
 		executionError.setWorkflowDataResource(jpa.getWorker().getExperiment(error.getExperimentId()).getData().getWorkflowInstance(error.getWorkflowInstanceId()));
 		executionError.setNodeID(error.getNodeId());
 		executionError.setGfacJobID(error.getGfacJobId());



Mime
View raw message