How to Route work to the latest Work Party (In a repeating Work Party).
In my application we have work parties set as repeatable (multiple/repeating). i.e. one party role would be repeated.
So now, we also have work parties with the subscript like as follows :
1. .pyWorkParty(Agent)
2. .pyWorkParty(Agent_1)
3 . pyWorkParty(Agent_2) etc
So the question is, how do we route work to the most recent Work Party during an assignment.
For example, if the flow was routed to the Agent 5 times, and there are 5 Agent work parties. How do we route work to the last work party i.e. . pyWorkParty(Agent_4)
Note : The Work Party name of Agent is only as an example. Also, we have multiple such persona (Agent, Manager etc).