I have a requirement where if the manager approves the case then the case should go to Director for approval but if he rejects the case it should come back to Review stage.
For this design i have configured an activity on reject button to set the property as IsReject == true and then calling pxChange stage in refresh this section action and passing stage name as Review but that is not working.Need help with this.
Note:I am not using the OOTB approval flow and I am using my own customised buttons as well for approve and reject in the section.
The error is displaying because the stage from where the pxChangeStage is being called is already present in the Review stage. The process cannot jump back to same stage. There is some issue in your logic. Before clicking the button, can you check in which stage the process is present at that point?
@SohamM95 hi soham i did some changes in the logic now after setting the IsReject property to true i am calling the change stage activity and changing the stage to an alternate stage but there i am getting the error attached in the below pdf:even though i have configured the flow action on approval rejection stage
As I understand there are two possibilities either Approve (the case will follow the Manager Approval flow) or Reject (the case will jump off to the alternate stage).
You can set the flag on click of button (Approve/Reject) and do a finish assignment of your current assignment. After the assignment put a fork based on the flag proceed the case on Approval flow or Rejection stage.
If you need to capture some data in Rejection stage with the current Operator assigned the assignment to CurrentOperator.
Or there is another approach you can put the Reject Flow-action as flow-wide local action and display in the above mentioned assigned based on condition. From the Reject flow-action post action activity to call pxChangeStage and jump to the alternate stage. Reject flow-action can capture what you intend to capture in reject flow. In the alternate stage you can put a straight forward flow based on your reject data post capture and check delete open-assignments check box , with Resolved status if need to be Resolved.
@RameshSangili yes the cancel button is customised in my flow,
the stage name I was not passing as a parameter will try to so thanks but I don’t want to resolve the case I am again calling a change stage automation step to go back to the approval flow