I have a scenario where a manager routes an assignment to a sales director for approval. If sales director approves No then the manager should again have the ability to route again to the sales director for an approval again.How to accomplish this?
I believe you are using a flow action for the approval process. After the Approval Flow action keep a Decision shape which will check whether approval is Yes or No. If No, put a connector from that decision to the previous assignment from where the manager created approval request.
The assignment routing logic should be changed. Do not use current operator. Add two Work Parties to the case. One is Director and the other as Manager. Add them as party like pyWorkPage.pyWorkParty(Director) and pyWorkPage.pyWorkPart(Manager). You definitely need to add different work party attribute using the Work Parties rule named pyCaseManagementDefaults under your case class to make sure the work parties are specified there. Then on the assignments use routing activity toWorkParty and specify the Work Party name as Director or Manager. Otherwise another approach can be to set the Director and Manager operators to some properties and under routing activity refer those properties . But first approach will be a better design.