airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject airavata git commit: set error id
Date Tue, 08 Sep 2015 20:03:54 GMT
Repository: airavata
Updated Branches:
  refs/heads/master bd94e0df0 -> d6315966e


set error id


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

Branch: refs/heads/master
Commit: d6315966e4c7e3804b55c4d8aa7807bb11fa2fed
Parents: bd94e0d
Author: Chathuri Wimalasena <chathuri@apache.org>
Authored: Tue Sep 8 16:03:49 2015 -0400
Committer: Chathuri Wimalasena <chathuri@apache.org>
Committed: Tue Sep 8 16:03:49 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/airavata/gfac/core/GFacUtils.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/d6315966/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java
----------------------------------------------------------------------
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 fe125b8..57e64a2 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
@@ -1097,6 +1097,7 @@ public class GFacUtils {
         try {
             ExperimentCatalog experimentCatalog = processContext.getExperimentCatalog();
             String experimentId = processContext.getExperimentId();
+            errorModel.setErrorId(AiravataUtils.getId("EXP_ERROR"));
             experimentCatalog.add(ExpCatChildDataType.EXPERIMENT_ERROR, errorModel, experimentId);
         } catch (RegistryException e) {
             String msg = "expId: " + processContext.getExperimentId() + " processId: " +
processContext.getProcessId()
@@ -1108,6 +1109,7 @@ public class GFacUtils {
     public static void saveProcessError(ProcessContext processContext, ErrorModel errorModel)
throws GFacException {
         try {
             ExperimentCatalog experimentCatalog = processContext.getExperimentCatalog();
+            errorModel.setErrorId(AiravataUtils.getId("PROCESS_ERROR"));
             experimentCatalog.add(ExpCatChildDataType.PROCESS_ERROR, errorModel, processContext.getProcessId());
         } catch (RegistryException e) {
             String msg = "expId: " + processContext.getExperimentId() + " processId: " +
processContext.getProcessId()
@@ -1120,6 +1122,7 @@ public class GFacUtils {
         try {
             ExperimentCatalog experimentCatalog = taskContext.getParentProcessContext().getExperimentCatalog();
             String taskId = taskContext.getTaskId();
+            errorModel.setErrorId(AiravataUtils.getId("TASK_ERROR"));
             experimentCatalog.add(ExpCatChildDataType.TASK_ERROR, errorModel, taskId);
         } catch (RegistryException e) {
             String msg = "expId: " + taskContext.getParentProcessContext().getExperimentId()
+ " processId: " + taskContext.getParentProcessContext().getProcessId() + " taskId: " + taskContext.getTaskId()


Mime
View raw message