This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0e2918a  IRAVATA-2668 Using addExperimentProcessOutputs to update 
outputs
0e2918a is described below

commit 0e2918aff74858e6380b17dbb59ce12121c9484d
Author: Marcus Christie <machris...@apache.org>
AuthorDate: Fri Feb 2 17:33:38 2018 -0500

    IRAVATA-2668 Using addExperimentProcessOutputs to update outputs
---
 .../src/main/java/org/apache/airavata/gfac/core/GFacUtils.java      | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java
 
b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java
index 7f8ea27..f3b4a3e 100644
--- 
a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java
+++ 
b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java
@@ -979,10 +979,10 @@ public class GFacUtils {
 
                         String productUri = 
registryClient.registerDataProduct(dataProductModel);
                         expOutput.setValue(productUri);
+                        
registryClient.addExperimentProcessOutputs(GFacConstants.EXPERIMENT_OUTPUT, 
Arrays.asList(expOutput), experimentId);
                     }
                 }
             }
-            registryClient.updateExperiment(experimentId, experiment);
         } catch (Exception e) {
             String msg = "expId: " + processContext.getExperimentId() + " 
processId: " + processContext.getProcessId()
                     + " : - Error while updating experiment outputs";
@@ -997,12 +997,10 @@ public class GFacUtils {
             for (OutputDataObjectType processOutput : processOutputs){
                 if (processOutput.getName().equals(outputName)){
                     processOutput.setValue(outputVal);
+                    
registryClient.addExperimentProcessOutputs(GFacConstants.PROCESS_OUTPUT, 
Arrays.asList(processOutput), processId);
                 }
             }
         }
-        ProcessModel processModel = processContext.getProcessModel();
-        processModel.setProcessOutputs(processOutputs);
-        registryClient.updateProcess(processModel, processId);
     }
 
     public static void saveExperimentError(ProcessContext processContext, 
RegistryService.Client registryClient, ErrorModel errorModel) throws 
GFacException, TException {

-- 
To stop receiving notification emails like this one, please contact
machris...@apache.org.

Reply via email to