【问题标题】:Nested While looping in mule Dataweave在 mule Dataweave 中嵌套 While 循环
【发布时间】:2016-02-03 16:45:27
【问题描述】:

如何在 mule dataweave 中编写嵌套循环

我有这样的代码,

 (UnitMeasureVal:"EACH") when ($.@attribute-id) == "UnitMeasure"
 and ($ is :empty or ($ =="N/A" or $ =="NA")) otherwise  (UnitMeasureVal: $),

但它给出错误,我无法在此添加其他条件。我想在其他部分分配 $ 值

【问题讨论】:

  • 你遇到了什么错误?
  • 它不接受我发布的表达式.. 给出像 Invalid input 'ot' 这样的错误

标签: mule mule-studio mule-component mule-el dataweave


【解决方案1】:

我们可以在 Mule Dataweave 中进行嵌套循环。只需要照顾括号就可以了。

这是我上面表达的正确表达:

(UnitMeasureVal:$ unless ($ is :empty or $ =="N/A" or $ =="NA") else "EACH") when $.@attribute-id == "UnitMeasure"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-02
    • 2020-10-09
    • 2013-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多