Add 'redirectUrl' property to ShowPromptNode.java
@@ -33,6 +33,7 @@ public class ShowPromptNode extends DynamicDecisionNode implements AuthGraphNode
private static final long serialVersionUID = -5644595996095910601L;
private String templateId;
+ private String redirectUrl;
private Map<String, Serializable> data;
private Map<String, Object> parameters;
private Map<String, SerializableJsFunction> handlerMap = new HashMap<>();
@@ -47,6 +48,16 @@ public class ShowPromptNode extends DynamicDecisionNode implements AuthGraphNode
this.templateId = templateId;
}
+ public String getRedirectUrl() {
+
+ return redirectUrl;
+ }
+
+ public void setRedirectUrl(String redirectUrl) {
+
+ this.redirectUrl = redirectUrl;
+ }
+
public Map<String, Serializable> getData() {
return data;
@@ -78,6 +89,7 @@ public class ShowPromptNode extends DynamicDecisionNode implements AuthGraphNode
}
public void addHandler(String outcome, SerializableJsFunction function) {
+
handlerMap.put(outcome, function);
}
