<?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>Cancelling a process from another process</title><link>https://community.appian.com/discussions/f/process/14740/cancelling-a-process-from-another-process</link><description>I have a process that includes a &amp;#39;send message&amp;#39; node to cancel another active sub-process. The active sub-process gets cancelled and ends, with a receive message node. This process ends cleanly and also ends the parent process. I tried to change the process</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/109194?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 20:13:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b237aa61-2f67-419b-a22b-184a7441c9b3</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.1/process-model-object.html#security"&gt;https://docs.appian.com/suite/help/23.1/process-model-object.html#security&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You need Admin privilege to cancel the process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/109171?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 12:22:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:652bc8f4-980e-4cdb-b9fe-d67d3274510f</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi Pawan, make sure you have sufficient privilege to do this action. Check process model security and then check if you have required permission to cancel it..hope it helps &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/109168?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 11:41:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc74ca89-bca5-4bcd-a237-54175aa74490</guid><dc:creator>Pawan Lalwani</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/satishk0001"&gt;satishk0001&lt;/a&gt; i am getting this error &amp;quot;&lt;span&gt;You do not have permission to cancel this process&lt;/span&gt;&amp;quot; while executing cancel process smart service. Can you help on this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/69841?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 17:20:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:81498240-1e61-408e-97a2-269b1547bc38</guid><dc:creator>satishk0001</dc:creator><description>&lt;p&gt;I approached in the above way also but I hadn&amp;#39;t got it Judy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/69838?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 16:16:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:373f8e69-31e0-4a5f-9e20-dbbd3536dedd</guid><dc:creator>judym598</dc:creator><description>&lt;p&gt;You should be able to capture the Action IDs in the data output (not something you&amp;#39;d have to display in the UI) and use that to cancel.&amp;nbsp;Did you look at this related discussion? This may help.&amp;nbsp;&amp;nbsp;&lt;a href="/discussions/f/process/9693/cancelling-specific-tasks-from-a-separate-process"&gt;https://community.appian.com/discussions/f/process/9693/cancelling-specific-tasks-from-a-separate-process&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/69831?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 14:18:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:287c4c92-839c-451a-860e-67590f220eb5</guid><dc:creator>satishk0001</dc:creator><description>&lt;p&gt;Thanks for responding to me Judy and Stewart.....&lt;/p&gt;
&lt;p&gt;But&amp;nbsp; I had used complete task smart service it worked by choosing the canceling path Action IDs in UI. But in our requirement Action IDs shouldn&amp;#39;t be displayed in UI. Is it possible to get an automatic canceling path action ID based on open tasks in Processes Model?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/69773?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 13:26:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:953228b7-e64a-485d-a824-4128b92bc9e2</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Hi Judy - I got your use case and solution, I was trying to help Satish with his :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/69769?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 13:07:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce1f5662-0328-45bf-979f-b206083ad628</guid><dc:creator>judym598</dc:creator><description>&lt;p&gt;Stewart - I would say in my scenario - the parent process called the sub-process synchonously. It&amp;#39;s actually calling an earlier executed version of the same process that has yet to be completed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the scenario I had: I had a situation where&amp;nbsp;an accountant starts a process to edit&amp;nbsp;an account. Once he enters the changes, it goes to someone else to review and certify the changes. Before being certified, the accountant (or another accountant) might need to make additional changes. So - if the first change hadn&amp;#39;t been certified, it needed to be cancelled. So - I used an &amp;#39;Execute Process Report&amp;#39; node to find find the previous review task(s) and captures those active process id(s). In the Data Outputs node for the &amp;#39;Execute Process Report&amp;#39; - I&amp;nbsp;save&amp;nbsp;the process id(s)&amp;nbsp;that need to be cancelled, which are then used in the Cancel Message.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/69765?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 12:36:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f0d20b32-4846-4cca-9365-82cc1262f5fa</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Is the parent calling the sub-process synchronously or asynchronously?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/69764?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 12:31:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8d508166-4231-4bde-ac27-469cf621e05f</guid><dc:creator>satishk0001</dc:creator><description>&lt;p&gt;Hi Stewart&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am able to send a message and receive message events to subprocesses but after I am unable to close Parent Processes.I want to kill parent processes as well. Could please guide on that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/69761?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 10:24:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7113b5ea-2bdf-4562-90ce-2aa20ef483aa</guid><dc:creator>satishk0001</dc:creator><description>&lt;p&gt;&lt;span&gt;Thanks Stewart&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/69755?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 07:19:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:70780947-65a3-42b3-b807-202138645fee</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Hi Satish - you need to do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ensure your target process models include some unique shared business token e.g. Customer Number, Order Number&lt;/li&gt;
&lt;li&gt;create a Process Report that returns the ProcessIds of the Process Model instances that you want to cancel, filtered by the above business token&lt;/li&gt;
&lt;li&gt;then you have a choice:
&lt;ul&gt;
&lt;li&gt;use the &amp;#39;Cancel Process&amp;#39; Smart Service to cancel the process instances identified by the ProcessIds generated by the above report&lt;/li&gt;
&lt;li&gt;use the &amp;#39;Send Message&amp;#39;/&amp;#39;Receive Message&amp;#39; pattern as described in the original post above&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;S&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/69747?ContentTypeID=1</link><pubDate>Sat, 05 Oct 2019 03:26:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4078dac2-d1c7-455f-9015-5088c2a5f0c3</guid><dc:creator>satishk0001</dc:creator><description>&lt;p&gt;Could you please tell me how you had done the above scenario.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/66087?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 13:25:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0bc871cb-87e6-47e3-a38c-3f39dc7b9fe5</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Hi Judy - if you&amp;#39;re sending messages at both Parent and Child then why not use the Cancel Process Smart service in the same way to cancel both? (i.e. get the ProcessIds of both Parent and Child and execute the Smart Service twice, once for each instance id.)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have heard there are performance/scalability issues with Send Message (cool though it is!)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/66086?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 13:20:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48e9a8a9-a692-447d-8838-93d667b40f50</guid><dc:creator>judym598</dc:creator><description>&lt;p&gt;Thanks Stewart - that&amp;#39;s the smart service I was trying to use. I got it to work for cancelling the &amp;#39;subprocess&amp;#39; but I couldn&amp;#39;t get it to cancel the parent process so I went back to using the &amp;#39;send message&amp;#39; to cancel both. That works well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/66077?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 11:07:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:099d8491-8175-42a7-bfae-99fe3b436ef3</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;There is a dedicated Smart Service (also available as an a!function) for cancelling Process Instances:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Cancel_Process_Smart_Service.html"&gt;https://docs.appian.com/suite/help/19.1/Cancel_Process_Smart_Service.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/66067?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 16:51:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b64233a5-8fe3-4501-9b6e-01fcf5d7db3a</guid><dc:creator>judym598</dc:creator><description>&lt;p&gt;I&amp;#39;m sticking with the &amp;#39;send message&amp;#39; option to cancel the subprocess and associated parent process. Evidently, this is still acceptable and it works. I did have the &amp;#39;Cancel Process&amp;#39; smart service configured to run as the Process Model Designer - so permissions were not the issue. The sub-process I was trying to cancel did not have any other subprocesses - just the parent one to cancel.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for responding and while I&amp;#39;d like to resolve it - I need to move on so I&amp;#39;m going to cancel with the send message option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancelling a process from another process</title><link>https://community.appian.com/thread/66062?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 13:27:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:896c7e08-b75e-449c-bb06-7a2af19b5411</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;A&amp;nbsp;few&amp;nbsp;questions:&lt;/p&gt;
&lt;p&gt;Is the child process configured to run synchronously or asynchronously?&amp;nbsp; If it&amp;#39;s asynch then the parent theoretically could have already finished, but what happens to the child process will in no way affect how the parent closes or fails to close.&lt;/p&gt;
&lt;p&gt;Does the child process have a terminate node?&lt;/p&gt;
&lt;p&gt;Could the send message be configured to activate a flow that leads to the terminate node?&lt;/p&gt;
&lt;p&gt;Is the terminate node activity chained?&amp;nbsp; The activity chaining usually results in unexpected behavior with ending the parent process not properly&amp;nbsp;canceling&amp;nbsp;its child processes.&lt;/p&gt;
&lt;p&gt;Does the child process you&amp;#39;re attempting to cancel have children of it&amp;#39;s own that might not be ending properly?&lt;/p&gt;
&lt;p&gt;Have you made sure to configure Cancel Process smart service to run as Process Model Designer?&amp;nbsp; It could be an issue with permissions, because process model viewers (the person using this in the field) don&amp;#39;t have permission to cancel processes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>