Removing a task from a list after selecting "Cancel" on that task.
I have a requirement to ensure that when selecting "Cancel" on a task, you return to the task list and that task is removed. The task is added to the task list only after you select it as an optional action in the left navigation bar. I am debating between using a post processing activity on the flow action, or adding a action set to the "Cancel" button itself.
I am leaning towards the post processing activity on the flow action because I have to save the Pega default section "pyCaseActionAreaButtons" into the apps ruleset (currently it is not), and that the work should only be in the post processing of that section, not on the button itself.
How would I approach this? My guess is a post processing activity that would need an if statement basically saying, "if this section was cancelled", then remove this page from the clipboard so it is not seen on the task list.