Updated SDC listener and dependent bundles
[appc.git] / appc-sequence-generator / appc-sequence-generator-bundle / src / main / java / org / onap / appc / seqgen / objects / Constants.java
index 476c5b7..c648c97 100644 (file)
@@ -67,7 +67,7 @@ public class Constants {
     }
 
     public enum ResponseAction{
-        STOP("stop"),RETRY("retry"),IGNORE("ignore"),WAIT("wait"),CONTINUE("Continue");
+        STOP("stop"),RETRY("retry"),IGNORE("ignore"),WAIT("wait"),CONTINUE("Continue"),JUMP("jump");
 
         ResponseAction(String action) {
             this.action=action;
@@ -101,9 +101,18 @@ public class Constants {
         ActionLevel(String action){
             this.action=action;
         }
+
         public String getAction() {
             return action;
         }
+
+        public static ActionLevel findByString(String actoinLevel) {
+            for (ActionLevel acnlevel : ActionLevel.values()) {
+                if (acnlevel.name().equals(actoinLevel))
+                    return acnlevel;
+            }
+            return  null;
+        }
     }
 
     public enum PreCheckOperator{