mule

How do I implement IF in mulesoft

你说的曾经没有我的故事 提交于 2020-07-21 11:19:23
问题 I want to make a decision in a Mulesoft flow, and have looked at the Choice Flow Control. My problem, is that I want to do something if the condition is true, and nothing if it is false, something like: if (condition == true) do some work or, in probably incorrect xml: <choice doc:name="call a subflow if the test is true"> <when expression="#[flowVars.someVariable == True]"> <flow-ref name="doSomething" doc:name="do another thing"/> </when> </choice> no else clause, and no default flow. How

How do I implement IF in mulesoft

 ̄綄美尐妖づ 提交于 2020-07-21 11:18:13
问题 I want to make a decision in a Mulesoft flow, and have looked at the Choice Flow Control. My problem, is that I want to do something if the condition is true, and nothing if it is false, something like: if (condition == true) do some work or, in probably incorrect xml: <choice doc:name="call a subflow if the test is true"> <when expression="#[flowVars.someVariable == True]"> <flow-ref name="doSomething" doc:name="do another thing"/> </when> </choice> no else clause, and no default flow. How

How to loop and combine as one in Mule Dataweave

浪子不回头ぞ 提交于 2020-06-16 18:02:04
问题 I have request of json and expected response one as mentioned below. It need to groupBy clientItemCode and i'm halfway somewhere stuck to loop around in same. Used both MapObject and reduce combination of function. Any help will be appreciated. [ { "ClientCode": "1", "ClientItemCode": "245", "LocationId": "CLOSED" }, { "ClientCode": "1", "ClientItemCode": "245", "LocationId": "OPEN" }, { "ClientCode": "2", "ClientItemCode": "245", "LocationId": "CHECKOUT" }, { "ClientCode": "2",

How to loop and combine as one in Mule Dataweave

梦想与她 提交于 2020-06-16 18:01:07
问题 I have request of json and expected response one as mentioned below. It need to groupBy clientItemCode and i'm halfway somewhere stuck to loop around in same. Used both MapObject and reduce combination of function. Any help will be appreciated. [ { "ClientCode": "1", "ClientItemCode": "245", "LocationId": "CLOSED" }, { "ClientCode": "1", "ClientItemCode": "245", "LocationId": "OPEN" }, { "ClientCode": "2", "ClientItemCode": "245", "LocationId": "CHECKOUT" }, { "ClientCode": "2",