<?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 avoid deleting a document to finish a Process Model event</title><link>https://community.appian.com/discussions/f/general/34845/how-to-avoid-deleting-a-document-to-finish-a-process-model-event</link><description>So when the user selects a particular interface, a document is generated and if the user selects the &amp;#39;cancel&amp;#39; button then the document is deleted. There are cases where the document might get deleted through another form so if you try to select the cancel</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to avoid deleting a document to finish a Process Model event</title><link>https://community.appian.com/thread/134577?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 17:36:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c04566a-a4a1-4501-908c-850b5efa9fed</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I also made myself a generalized Utility subprocess called something like &amp;quot;Safe Delete Document&amp;quot; which simply consumes a Doc ID, does this check, then deletes the document (or goes safely around the Delete node), so I don&amp;#39;t have to build that clunky XOR pattern into all the process models where I need to use it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid deleting a document to finish a Process Model event</title><link>https://community.appian.com/thread/134576?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 17:27:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5dbe641f-6f06-429a-9670-5cbab8e5063e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Yikes.&lt;/p&gt;
&lt;p&gt;Well, as long as you&amp;#39;re working with an awareness of how it&amp;#39;s not really a best practice set-up...&lt;/p&gt;
&lt;p&gt;The good workaround I can suggest is that you check the document ID prior to the delete document node, using the &amp;quot;is object exists&amp;quot; rule from the &amp;quot;Check Object Existence&amp;quot; plug-in.&amp;nbsp; I actually keep a designated expression rule that can handle checking a doc ID against being blank or zero or non-existent:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1714584356395v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;IF it fails this check, you would just step around the Delete Document node altogether using an XOR gateway (you&amp;#39;d use the one already set up in your screenshot, just replace the &amp;quot;is blank&amp;quot; rule with something more comprehensive like i&amp;#39;ve shown you here).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid deleting a document to finish a Process Model event</title><link>https://community.appian.com/thread/134575?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 17:15:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48a20353-91f9-43ea-b9a6-5589c671b0f5</guid><dc:creator>nickk1385</dc:creator><description>&lt;p&gt;I am new to this project but from what it sounds like this is an edge case that only happens when:&lt;br /&gt;Admin 1: opens the first interface and idles on it&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (The document is created when the interface is opened)&lt;br /&gt;Admin 2: opens another interface that shows all the documents&lt;br /&gt;Admin 2: deletes the document&lt;br /&gt;Admin 1: tries to cancel the initial document, and receives the error message&lt;br /&gt;&lt;br /&gt;&amp;nbsp;So there isn&amp;#39;t a way to just get rid of it unfortunately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to avoid deleting a document to finish a Process Model event</title><link>https://community.appian.com/thread/134574?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 17:07:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8deed9e9-957c-4554-855a-f1b9eef077f9</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="151843" url="~/discussions/f/general/34845/how-to-avoid-deleting-a-document-to-finish-a-process-model-event"]There are cases where the document might get deleted through another form [/quote]
&lt;p&gt;How (and WHY) would a document being generated specifically for this process instance, be &amp;quot;deleted through another form&amp;quot;?&amp;nbsp; Is that REQUIRED?&amp;nbsp; Because yes, that is making things much harder than they should be.&amp;nbsp; If AT ALL possible, I&amp;#39;d just get rid of that part.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>