QuestionQ41Verified/Developing Mule ApplicationsCopy linkReport a problemAsk AstroTutorSave questionRefer to the exhibits. Which payload and quantity are logged at the end of the main flow? A[order1order2order3order4, 14]B[ [1,2,3,4], 10 ]C[ [order1, order2, order3, order4], 14 ]D[ [1,2,3,4], 14 ]Show AnswerAnswerExplanationA Mule For Each scope preserves its input payload as the scope output, so the payload after processing remains [1,2,3,4]. Changes to variables inside a For Each scope propagate between iterations and remain available afterward; incrementing quantity during four iterations changes it from 10 to 14.Learn moreFor Each Scope | MuleSoft DocumentationShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion