after user filled the details in the form and click on submit the case will move out of the user basket to the next stage there it will wait for the managers approval before the case is approved by the manager it will be in pending state, now if the user want to withdraw the case by clicking on the withdraw button he should be able to do it. How can i do that?
Using case wide local actions with the when condition (if pyStatusWork==pending approval), we can meet this requirement. If the flow is in the pending status, we can locate the specific casewide local action we generated in the actions panel.
In that local action we will pass section, add withdraw button, on click of button in actions set 1st run DT change the case status to withdrawn . Add another action finish assignment.
Go to case type right click and open case type, pydefault case type will open scroll down pyDefault case type rule there you will find Case wide actions.
i found a solution for withdrawing the case there is an pxForcecaseclose activity in pega give pzinskey in the key and give the status you want to apply, since the status is not equal to the condition for it to be in manager portal it will leave his worklist.