I have a scenario where i need to approve something by any one of the 5 managers. Suppose the operators are ManagerA, ManagerB, ManagerC and so on. I am having difficulty implementing this using for-each shape. Is there is any other method that i can use?
Split-ForEach is designed to iterate over the elements of an itemized list - so, unless you're creating an embedded page for each manager, it's not going to really work.
There are a couple of options, depending on the actual requirement.
You could use a split-join shape, with an assignment for each manager, then use the ANY condition to return to the parent flow whenever one manager approves their assignment. The issue with this approach is the need to explicitly identify the number of approvals; if you need 6 in some cases, but 3 in others, that will make things difficult.
Create a common work group for the managers that can perform approvals, and then add one assignment for approval to the flow, routed to the work group. All managers will have access to the assignment, but after the first manager completes the assignment, the task is no longer available to any of the other manager and the flow advances.
Posted: 2 years ago
Posted: 21 Jan 2020 0:58 EST
Paramveer Soundane (Soundane)
I have used split for each for approval using assignments and added a page list called approvals where I am storing 3 operator ID's. So the assignment is running 3 times & the operator is current operator for now. How will I implement operators from page list.
I was using .approvals().ApproverID in route to but it is'nt working