What is the scope of variables in Scatter Gather component of Mule 4?
Scope of variables in Scatter Gather router of Mule 3
The final values after aggregation of Scatter Gather router:
{choice1: "India", choice2: "Australia", choice3: ["USA, UK, UAE"], choice4: "Germany"}
When Scatter Gather is used inside For Each scope:
If a variable is created before for-each and is modified inside the for-each, then the value of the variable is updated even after the for each flow is finished. But consider If there is a scatter-gather in the for-each before the variable is updated, then value of the variable afterthe for-each is not modified. It has the original value.
0 Comments