Trying to wrap my head around MEL and so running through a few examples.
I am trying to evaluate multiple MEL expressions as part of the Set Payload component and looks like only the last expression is evaluated by mule. My flow looks like the below
<flow name="dummysoapFlow">
<http:listener config-ref="DummyHttp" path="dummy" doc:name="HTTP" allowedMethods="GET"/>
<set-payload value="#[['name':'Sudarshan']]" doc:name="Set Payload"/>
<set-payload value="#[ ['name':'Fudarshan']; with (payload) {age = 18} ]" doc:name="Set Payload"/>
<logger message="Landed past HTTP #[payload]" level="INFO" doc:name="Logger"/>
</flow>
My Actual result looks the below
Landed past HTTP {age=18, name=Sudarshan}
I expect
Landed past HTTP {age=18, name=Fudarshan}
Can we use multiple expression as part of the Set Payload MP ?, I can see that its possible with the expression component here