Field value in action request change from Map<String,String> to Map<String,Object>
This commit is contained in:
@@ -84,7 +84,7 @@ public class ActionController extends FunctionInitializer {
|
||||
return Flux.just(input);
|
||||
}
|
||||
|
||||
protected Object convertEvent(Map<String, String> event) {
|
||||
protected Object convertEvent(Map<String, Object> event) {
|
||||
// just expecting "payload" for now
|
||||
return event.get("payload");
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ public class ActionRequest {
|
||||
|
||||
private String namespace;
|
||||
|
||||
private Map<String, String> value;
|
||||
private Map<String, Object> value;
|
||||
|
||||
public String getActionName() {
|
||||
return actionName;
|
||||
@@ -80,11 +80,11 @@ public class ActionRequest {
|
||||
this.namespace = namespace;
|
||||
}
|
||||
|
||||
public Map<String, String> getValue() {
|
||||
public Map<String, Object> getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(Map<String, String> value) {
|
||||
public void setValue(Map<String, Object> value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user