数据编织 - 变压器骡子错误"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'

谢谢。

在不使用"消息"的情况下直接调用,如下所示

test_property: outboundProperties.testProperty

或者定义一个流量变量并将其用作

flowvar1: flowVars.flowvar1

相关内容

最新更新