<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to delete the instances of a sub process upon completion that was started by the Start Process Smart Service node?</title><link>https://community.appian.com/discussions/f/general/38404/how-to-delete-the-instances-of-a-sub-process-upon-completion-that-was-started-by-the-start-process-smart-service-node</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to delete the instances of a sub process upon completion that was started by the Start Process Smart Service node?</title><link>https://community.appian.com/thread/144799?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 08:52:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4522da8-4b31-41fe-a151-ccaea05afa30</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;That is a good technical solution. I actually missed the &amp;quot;Delete Process&amp;quot; smart service in that plugin.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to delete the instances of a sub process upon completion that was started by the Start Process Smart Service node?</title><link>https://community.appian.com/thread/144793?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 08:08:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40764dfb-6c2a-4069-8132-997ba32bc9c0</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="/members/rajarajeswarib0001"&gt;Rajarajeswari&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can we make any changes to the Child/sub-process with no changes in the data management.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If we can add few more nodes below is an solution:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&amp;nbsp; Create a new process with Delete processes plugin. Use the process ids as Parameter.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.appian.com/b/appmarket/posts/process-management-services"&gt;Process Management Services&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Call this model in a start process node of your Sub-process (Generate groups to send email) with a XOR(this will be a Boolean value that will be passed from parent model) to define whether the current instance should be deleted or not.&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Make sure you place a timer in the delete process model to ensure&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you cannot edit the existing model, use the below&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Pass the Parent process id into child process as parentId Process variable&lt;/li&gt;
&lt;li&gt;Create a process analytical report for the child process where parentId is not null and for completed instances&lt;/li&gt;
&lt;li&gt;add a&amp;nbsp;XOR after the Smart service process in parent process - to check if the count of completed instance = count of process triggered by smart service . if it yes than call delete process smart service (plugin) pass the process id from the report else put a timer of 1 min and roll back to XOR&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to delete the instances of a sub process upon completion that was started by the Start Process Smart Service node?</title><link>https://community.appian.com/thread/144788?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 07:35:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba219382-5fb3-45a2-9897-5e590d59b847</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;I suggest to contact the maintainer of that common object and suggest reducing that number of days.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>