I have the requirement of making a workflow for the Purchase Order release. The approval process works fine: I have looked at the standard template:
But I am having problems with the rejection process.
The process is as follows:
There can be a maximum of 5 levels on a PO with release codes from U0 to U5. Whenever a PO is rejected for release, the person at that level will reject it and save.
Then the previous person will have to cancel the rejection, cancel his release and save again
A similar process till it goes to the base level. At that point, a mail will go to the initiator to make changes and restart the process.
With the standard template what happens is that whenever the release is changed whether for approval or refusal.The same event is triggered again and the first activity sends a release request to the next approver again--which is calculated with the default assigned rule.
How to go about this rejection process? Can someone guide me?
I have also looked at an event - RejectionStarted but it has the same issue. After i cancel and send it to the previous approver, the same event will be called after that approver saves the PO. A request will go ahead again and the workflow will be stuck in that loop.
There is also a method resetrelease. I put it in my activity and set it as a background process, it gave an error- release not effected --Doesnt the release code change after I reject it?
Points will be rewarded.