Oracle SOA Suite 12c Essentials — Question 35
Which statement is true about how BPEL Process Manager handles the For Each activity?
Answer options
- A. The counter variable of the For Each activity is global, so any change to it in the enclosed scope activity is retained and that change can impact the next iteration.
- B. The For Each activity executes a contained scope activity N times, where N is the final counter value minus the starting counter value.
- C. The For Each activity waits for the execution to finish for all the branches specified when the completion condition is specified and evaluated to true.
- D. The counter variable of a For Each activity is local to the enclosed scope activity, so a change to it outside the scope of the For Each, does not impact the next
Correct answer: B
Explanation
The correct answer is B because the For Each activity indeed runs the contained scope activity a specific number of times based on the defined counter values. Option A is incorrect as it implies a global counter, which is not the case; Option C misrepresents the behavior of completion conditions; and Option D is incorrect as it suggests that the counter variable can be affected by changes outside its scope, which is not true.