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
I do not know of a way to delete completed process instances from a process. I checked some of the plugins without finding any function.
I suggest to contact the maintainer of that common object and suggest reducing that number of days.
Hello Rajarajeswari
Can we make any changes to the Child/sub-process with no changes in the data management.
If we can add few more nodes below is an solution:
If you cannot edit the existing model, use the below
That is a good technical solution. I actually missed the "Delete Process" smart service in that plugin.
But, keep in mind that the data management configuration for that common object is probably on purpose. So when you delete these instances earlier than expected, this might become a problem when trying to debug.