<?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/"><channel><title>KB-1300 Terminate Event Not Cancelling Sub-Process</title><link>https://community.appian.com/support/w/kb/540/kb-1300-terminate-event-not-cancelling-sub-process</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1300 Terminate Event Not Cancelling Sub-Process</title><link>https://community.appian.com/support/w/kb/540/kb-1300-terminate-event-not-cancelling-sub-process</link><pubDate>Thu, 30 Mar 2017 17:52:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ae9d6d9-c135-4e3e-984a-e0493fda80c8</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/540/kb-1300-terminate-event-not-cancelling-sub-process#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 3/30/2017 5:52:02 PM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Within a process model, if there is activity chaining into a Terminate End Event, associated sub-processes will not get cancelled when the parent process reaches the Terminate End Event. This is true for both asynchronous and synchronous processes.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When a Terminate Event is reached and there is no activity-chaining from the last attended node to the Terminate End Event, the process successfully cancels any remaining active nodes and sub-processes. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;However, when a Terminate Event is reached and there is activity-chaining from the last attended node to the Terminate End Event, the process will try to cancel any remaining active nodes and sub-processes using the privileges of the user who completed the process - most of the times a basic user. Since basic users do not have the appropriate privileges to cancel a process unless they are process administrators, this results in sub-processes remaining active despite the node being cancelled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This has been logged to the Appian Product Team to change the behavior in a more desirable fashion. The reference number for this issue is &lt;strong&gt;AN-39422&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are also several workarounds that fix the behavior:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Remove activity chaining from the Terminate End Event so that the completion runs under Administrator context&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Within the Appian Process Modeler, use the &amp;lsquo;Cancel Process&amp;rsquo; smart service from the Process Management Appian Smart Services category&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Change the Terminate End Event to a plain End Event. Add a parallel, non-activity chained flow from the last node to a Terminate End Event. Since the Terminate End Event will take precedence over the End Event and it is not activity chained, the process will cancel remaining active nodes under Administrator context. It will look like this.&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/kb1300.png"&gt;&lt;img src="/resized-image/__size/1200x0/__key/communityserver-wikis-components-files/00-00-00-00-11/kb1300.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Add the user as a process administrator by including it to the corresponding group per the process model security role map.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: March 2017&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, process modeler, process models, application design, processes, open issues&lt;/div&gt;
</description></item><item><title>KB-1300 Terminate Event Not Cancelling Sub-Process</title><link>https://community.appian.com/support/w/kb/540/kb-1300-terminate-event-not-cancelling-sub-process/revision/4</link><pubDate>Thu, 30 Mar 2017 13:52:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ae9d6d9-c135-4e3e-984a-e0493fda80c8</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/540/kb-1300-terminate-event-not-cancelling-sub-process#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Nick Vigilante on 3/30/2017 1:52:02 PM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Within a process model, if there is activity chaining into a Terminate End Event, associated sub-processes will not get cancelled when the parent process reaches the Terminate End Event. This is true for both asynchronous and synchronous processes.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When a Terminate Event is reached and there is no activity-chaining from the last attended node to the Terminate End Event, the process successfully cancels any remaining active nodes and sub-processes. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;However, when a Terminate Event is reached and there is activity-chaining from the last attended node to the Terminate End Event, the process will try to cancel any remaining active nodes and sub-processes using the privileges of the user who completed the process - most of the times a basic user. Since basic users do not have the appropriate privileges to cancel a process unless they are process administrators, this results in sub-processes remaining active despite the node being cancelled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This has been logged to the Appian Product Team to change the behavior in a more desirable fashion. The reference number for this issue is &lt;strong&gt;AN-39422&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are also several workarounds that fix the behavior:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Remove activity chaining from the Terminate End Event so that the completion runs under Administrator context&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Within the Appian Process Modeler, use the &amp;lsquo;Cancel Process&amp;rsquo; smart service from the Process Management Appian Smart Services category&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Change the Terminate End Event to a plain End Event. Add a parallel, non-activity chained flow from the last node to a Terminate End Event. Since the Terminate End Event will take precedence over the End Event and it is not activity chained, the process will cancel remaining active nodes under Administrator context. It will look like this.&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/kb1300.png"&gt;&lt;img src="/resized-image/__size/1200x0/__key/communityserver-wikis-components-files/00-00-00-00-13/kb1300.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Add the user as a process administrator by including it to the corresponding group per the process model security role map.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: March 2017&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, process modeler, process models, application design, processes, open issues&lt;/div&gt;
</description></item></channel></rss>