airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject git commit: temperory fix for AIRAVATA-1073
Date Tue, 11 Mar 2014 20:33:16 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 86bf411da -> 258b5a7dc


temperory fix for AIRAVATA-1073


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/258b5a7d
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/258b5a7d
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/258b5a7d

Branch: refs/heads/master
Commit: 258b5a7dc00eb6bf4975f55ccbe747d37155fcdf
Parents: 86bf411
Author: chathuri <chathuri@apache.org>
Authored: Tue Mar 11 16:33:11 2014 -0400
Committer: chathuri <chathuri@apache.org>
Committed: Tue Mar 11 16:33:11 2014 -0400

----------------------------------------------------------------------
 .../registry/jpa/impl/ExperimentRegistry.java   | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/258b5a7d/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
----------------------------------------------------------------------
diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
index ffd7670..5ce3855 100644
--- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
+++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/impl/ExperimentRegistry.java
@@ -1250,15 +1250,17 @@ public class ExperimentRegistry {
             WorkflowNodeDetailResource workflowNode;
             // figure out the id is an experiment, node task or job
             if (id instanceof String) {
-                if (isExperimentExist((String) id)) {
-                    experiment = gatewayResource.getExperiment((String) id);
-                    errorResource = (ErrorDetailResource) experiment.create(ResourceType.ERROR_DETAIL);
-                } else if (isWFNodeExist((String) id)) {
-                    experiment = (ExperimentResource) gatewayResource.create(ResourceType.EXPERIMENT);
-                    workflowNode = experiment.getWorkflowNode((String) id);
-                    errorResource = (ErrorDetailResource) workflowNode.create(ResourceType.ERROR_DETAIL);
-                    errorResource.setExperimentResource(workflowNode.getExperimentResource());
-                } else if (isTaskDetailExist((String) id)) {
+                // FIXME : for .12 we only save task related errors
+//                if (isExperimentExist((String) id)) {
+//                    experiment = gatewayResource.getExperiment((String) id);
+//                    errorResource = (ErrorDetailResource) experiment.create(ResourceType.ERROR_DETAIL);
+//                } else if (isWFNodeExist((String) id)) {
+//                    experiment = (ExperimentResource) gatewayResource.create(ResourceType.EXPERIMENT);
+//                    workflowNode = experiment.getWorkflowNode((String) id);
+//                    errorResource = (ErrorDetailResource) workflowNode.create(ResourceType.ERROR_DETAIL);
+//                    errorResource.setExperimentResource(workflowNode.getExperimentResource());
+//                } else
+                  if (isTaskDetailExist((String) id)) {
                     experiment = (ExperimentResource) gatewayResource.create(ResourceType.EXPERIMENT);
                     workflowNode = (WorkflowNodeDetailResource) experiment.create(ResourceType.WORKFLOW_NODE_DETAIL);
                     taskDetail = workflowNode.getTaskDetail((String) id);


Mime
View raw message