Support of arrays in the TBEL script node
This commit is contained in:
parent
9bb4497f58
commit
b1cdfefecc
@ -124,7 +124,7 @@ public class RuleNodeTbelScriptEngine extends RuleNodeScriptEngine<TbelInvokeSer
|
|||||||
protected Object[] prepareArgs(TbMsg msg) {
|
protected Object[] prepareArgs(TbMsg msg) {
|
||||||
Object[] args = new Object[3];
|
Object[] args = new Object[3];
|
||||||
if (msg.getData() != null) {
|
if (msg.getData() != null) {
|
||||||
args[0] = JacksonUtil.fromString(msg.getData(), Map.class);
|
args[0] = JacksonUtil.fromString(msg.getData(), Object.class);
|
||||||
} else {
|
} else {
|
||||||
args[0] = new HashMap<>();
|
args[0] = new HashMap<>();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user