DataWeave - Transformer Mule 错误 "There is no variable named 'message'"
DataWeave - Transformer Mule error "There is no variable named 'message'"
如何通过 DataWeave 转换器在 mule 中显示出站属性?
我试过这个:
%dw 1.0
%output application/json skipNullOn="everywhere"
---
{
test_property: message.outboundProperties.testProperty
}
但我收到此错误:There is no variable named 'message'
。
谢谢。
不使用'message'直接调用如下图
test_property: outboundProperties.testProperty
或者定义一个流变量并如下使用它
flowvar1: flowVars.flowvar1
如何通过 DataWeave 转换器在 mule 中显示出站属性?
我试过这个:
%dw 1.0
%output application/json skipNullOn="everywhere"
---
{
test_property: message.outboundProperties.testProperty
}
但我收到此错误:There is no variable named 'message'
。
谢谢。
不使用'message'直接调用如下图
test_property: outboundProperties.testProperty
或者定义一个流变量并如下使用它
flowvar1: flowVars.flowvar1