2015-11-03 62 views
1

循環怎麼寫嵌套而騾子dataweave循環利用嵌套雖然騾子Dataweave

我有這樣的代碼,

(UnitMeasureVal:"EACH") when ([email protected]) == "UnitMeasure" 
and ($ is :empty or ($ =="N/A" or $ =="NA")) otherwise (UnitMeasureVal: $), 

但它給錯誤,我無法在此添加,否則條件。我想在其他部分分配$值

+1

你得到什麼錯誤? – Arcath

+0

它不接受我發佈的表達式。給錯誤如無效輸入'ot' –

回答

2

我們可以在Mule Dataweave中進行嵌套循環。只需要照顧括號就可以了。

這是我的上述表達正確的表達:

(UnitMeasureVal:$除非($是:空或$ == 「N/A」 或$ == 「NA」),否則 「每個」)當$。@ attribute-id ==「UnitMeasure」