How to delete the instances of a sub process upon completion that was started by the Start Process Smart Service node?

Certified Associate Developer

Is there a way to delete all the instances of a sub process upon completion when called from a start process smart service node in a parent process ?

We are facing performance issue of high memory usage in one of the process in our application. The current design is, there is a parent process where the list of not completed tasks are retrieved and a sub process node (configured as MNI) where the notification emails are sent to the task owners. In order to improve the performance we are planning to replace the synchronous sub process with a start process smart service. But the challenge we are facing is how to delete the sub process instances once it is completed?

Since the child process is a common object used across other process in the application, we have the restriction of updating Automatic Process Clean-up 'Delete processes 7days after completion or cancellation' option in the Data Management setting. In other process of the application we need to retain the instance for particular no. of days.

We tried selecting the 'When this node is completed: delete previously completed/canceled instances' in the Other tab of the start process smart service node but it didnt work, please suggest any other available options.

Before: 

 

After: 

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data