Hi All,
I have the requirement to close the process task after clicking over the button in interface? Can anyone please help me out?
Discussion posts and replies are publicly visible
That would be a submit button. Can you share a few more details? What did you try?
Yes, there are certain number of tasks assigned to user, if the user clicks on withdraw button in interface then all of the tasks assign to him should be closed.
Hi shubhamy0005,
On click of withdraw button use start process smart service & trigger process model, and in that process model use cancel task smart service which works based on task id.
I advocate to not use the cancel task smart service for two reasons. First, cancelling a process send a process alert message. Second, you might want to perform some clean-up activities in case that process is "cancelled".
I typically use process messaging to tell other processes to cancel themselves.