Field value in action request change from Map<String,String> to Map<String,Object>

This commit is contained in:
daprog
2017-08-03 00:18:33 +02:00
committed by Dave Syer
parent 592eef9d52
commit 2644ab3178
2 changed files with 4 additions and 4 deletions

View File

@@ -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");
}

View File

@@ -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;
}
}