airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject [50/53] [abbrv] airavata git commit: empty experiment object set
Date Fri, 06 Feb 2015 16:06:03 GMT
empty experiment object set


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

Branch: refs/heads/gfac-storm
Commit: f568594a1771b07ea8304e04f0c22efd11c1c0bd
Parents: d448fd5
Author: Chathuri Wimalasena <kamalasini@gmail.com>
Authored: Thu Feb 5 11:38:13 2015 -0500
Committer: Chathuri Wimalasena <kamalasini@gmail.com>
Committed: Thu Feb 5 11:38:13 2015 -0500

----------------------------------------------------------------------
 .../airavata/persistance/registry/jpa/impl/ExperimentRegistry.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/f568594a/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 352dca6..76495f0 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
@@ -998,7 +998,6 @@ public class ExperimentRegistry {
         try {
             ExperimentResource experiment = (ExperimentResource) gatewayResource.create(ResourceType.EXPERIMENT);
             WorkflowNodeDetailResource workflowNode = (WorkflowNodeDetailResource) experiment.create(ResourceType.WORKFLOW_NODE_DETAIL);
-            experiment = workflowNode.getExperimentResource();
             TaskDetailResource taskDetail = workflowNode.getTaskDetail(taskId);
 //            taskDetail.setWorkflowNodeDetailResource(workflowNode);
             taskDetail.setApplicationId(taskDetails.getApplicationId());
@@ -1007,6 +1006,7 @@ public class ExperimentRegistry {
             taskDetail.setApplicationDeploymentId(taskDetails.getApplicationDeploymentId());
             taskDetail.setEnableEmailNotifications(taskDetails.isEnableEmailNotification());
             taskDetail.save();
+            experiment = taskDetail.getWorkflowNodeDetailResource().getExperimentResource();
 
             List<String> emailAddresses = taskDetails.getEmailAddresses();
             // remove existing emails


Mime
View raw message