首页 > 解决方案 > 骡子4中的Dataweave2.0

问题描述

   notes=(payload.examples if payload.examples != null else “ “) ++ (\n\n**column1:\ntest: “ ++ vars.name) ++ ( “\n column2: “ ++ vars.date) ++ (“\n column3: “ ++ attributes.headers.speech)

这是 DataWeave 2.0,但错误提示输入无效。有人知道如何在mule 4中解决这个问题吗?

标签: muledataweave

解决方案


您使用 if 执行条件检查的部分,即 '=!' 应该是'!='。如果这对你有帮助,请告诉我。


推荐阅读