<?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>Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/discussions/f/process/20373/stopping-a-scheduled-process-at-a-certain-time</link><description>I am working on a process model and it needs to stop at a certain time (For example 2PM CST) 
 However, I don&amp;#39;t see any option to do it. I&amp;#39;ve tried working on the advance options but it seems like that doesn&amp;#39;t satisfy it as well. 
 This was the condition</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79495?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2021 04:41:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:63afc2b6-c776-4ae1-aa82-a8db680c40fd</guid><dc:creator>siddhant.varma</dc:creator><description>&lt;p&gt;You need to provide an exception flow with scheduling time as per your requirement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79494?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 20:57:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:43e89b5b-35cb-4e65-a728-c2bf929ec7c6</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Yes, sounds like the OP was on the right track here initially but the expression needs adjustment.&amp;nbsp; You should definitely be able to handle this as intended in the Timer Event Advanced Options.&amp;nbsp; We use either constants or time checks under Advanced Options in just about all of our scheduled processes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since this is a system-ran scheduled process, if you are stopping based on a static time zone&amp;nbsp;(adjust the hour if the server is on a different time zone) this should do it if you wan to stop processing say 2 PM to midnight:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;not(hour(local(now()))&amp;gt;=14)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79490?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 20:17:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66c975fe-8099-484b-9cad-4a4db88a6260</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;Every half hour, check to see if your time is before 2 PM and after whatever time the processes start in the morning, only run if the condition you check every half hour returns true.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79489?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 20:15:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4165a059-cccd-4d63-8759-1b285b660c39</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;Oh!&amp;nbsp; When do processes start?&amp;nbsp; You could literally just create a list of times that the process would start including every half hour interval in which you would like the process to start.&lt;/p&gt;
&lt;p&gt;Or you could do if (now() &amp;lt; 2 PM, if now() minutes = 30, run, don&amp;#39;t run, don&amp;#39;t run)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79488?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 20:13:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:187cf564-fd68-40b0-83df-330f7bbc6b4d</guid><dc:creator>legotx</dc:creator><description>&lt;p&gt;Run the process every 30 minutes and then block the process from running after 2PM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79486?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 20:12:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0730e97-4274-4722-bb52-96f98e1fd4b5</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;Oh, you&amp;#39;re absolutely right, in that case, it is a very good idea to have things time out after periods of inactivity. One of the programs that we&amp;#39;re going through now is attempting to make all processes close eventually.&amp;nbsp; You&amp;#39;re right, that is very important, but only when you do it very intentionally, in places where the process HAS to be stuck and not actively processing data when you cancel it.&lt;/p&gt;
&lt;p&gt;What sounds bad to me is stopping a headless process after exactly an hour.&amp;nbsp; Who knows if you&amp;#39;re on loop 888 of 900 of a forEach and will absolutely destroy&amp;nbsp;the data.&lt;/p&gt;
&lt;p&gt;I think it should be much smarter than simply, &amp;quot;you&amp;#39;ve got one hour.&amp;quot; That is, of course, unless it&amp;#39;s a headless process that should take 5 minutes.&amp;nbsp; A better solution, in that case though, would be to NOT cancel the process, so you can see why it took more than 55 minutes longer than it should.&amp;nbsp; Cancelling it just allows it to archive so you never find the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79483?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 18:58:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fd952b12-ac5d-4179-940c-84ae2f144f1f</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Thanks, to confirm further, I&amp;#39;m not clear which one of these is the goal:&lt;/p&gt;
&lt;p&gt;1) Block a process from &lt;em&gt;starting&lt;/em&gt; after 2 PM, or&lt;/p&gt;
&lt;p&gt;2) Attempting to pause or end a process &lt;em&gt;that had already started&lt;/em&gt;&amp;nbsp;&lt;em&gt;prior&lt;/em&gt; to 2 PM?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79481?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 18:51:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84761600-6a35-4d06-a6ce-59bf71b94b26</guid><dc:creator>legotx</dc:creator><description>&lt;p&gt;Here is the use case:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Process runs on interval every 30 minutes daily.&lt;/li&gt;
&lt;li&gt;Process stops running after 2PM CST.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And thats it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79480?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 18:13:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f60bf454-8bc7-41d8-bce3-703cebb30761</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I disagree that it&amp;#39;s a bad idea to stop a process - it&amp;#39;s actually a good practice to set up your processes so that they end if there is no activity in the process for a while. For example, suppose that you create a process that allows you to submit a case that uses a User Input Task as the first form for submitting the case. If the user starts the form but abandons it, it&amp;#39;s a good idea to have a parallel path like you mentioned that would close out the form. Of course this is often set up at the form level as an exception, but there may be similar cases where you&amp;#39;d like to have the entire process time out regardless of which step you&amp;#39;re currently working on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79478?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 15:49:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1801827-6f03-4995-aea0-bc73b1f6a214</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Additional ideas here would depend on your use case, if you could elaborate a little there - how/when is this process started, what is it doing when you want it to stop, does it need to continue later or end completely, etc?&lt;/p&gt;
&lt;p&gt;Another general option is to have a&amp;nbsp;rule determine if the process should be online or not based on the current time.&amp;nbsp; The process can run through XOR gates between each step, checking this rule to determine if it should be online or not - then continue or end.&amp;nbsp; But I wouldn&amp;#39;t know if that could apply cleanly here without additional use case details.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79476?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 14:43:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26e965d4-7d11-4fa6-a2a4-99d45423ce64</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;It seems like a terrible idea to stop a process before it&amp;#39;s complete.&amp;nbsp; However, if that&amp;#39;s what you intend to do, you could set up a second start node to activate a set amount of time after the first start node is scheduled to go off.&amp;nbsp; For instance, start 1 scheduled to go off at 1 PM, start 2 scheduled to go off at 2 PM.&amp;nbsp; Then you can have the secondary process flow go through whatever tasks you want before winding up on a Terminate End node.&amp;nbsp; That will kill the process in the middle of whatever it was doing.&lt;/p&gt;
&lt;p&gt;You could also start the process normally then first node it hits is an AND gateway.&amp;nbsp; Have the secondary flow from that AND gateway stop at a Timer event.&amp;nbsp; You can set the Timer event to run for an Hour, exactly 55 minutes, whatever you want, then send that end of the flow to a Terminate.&amp;nbsp; It will kill whatever was going on with the other thread.&lt;/p&gt;
&lt;p&gt;Again, highly recommended that is NOT how you do this, but if you really want to know that&amp;#39;s how I would do it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79466?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 17:35:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec10ce57-dc11-4ed0-8466-d4bcb6516773</guid><dc:creator>marouaneb</dc:creator><description>&lt;p&gt;Hello Lgotx,&lt;br /&gt;based on the description provided i would suggest that you create an exception, inside your exception you will need to set it up as &amp;quot;&lt;span&gt;Skip this node at the date and time specified by this expression:&amp;quot; then you give it the time&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopping a Scheduled Process at a Certain Time</title><link>https://community.appian.com/thread/79465?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 17:35:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:511f70f4-a5b4-451d-89b7-4212723e7e08</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I don&amp;#39;t think the advanced options are going to help you in this case. For context, the expression in that condition gets evaluated once: it doesn&amp;#39;t keep evaluating until the current date and time is greater than what you provided.&lt;/p&gt;
&lt;p&gt;Instead, I&amp;#39;d suggest just putting that condition into the scheduled delay section:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/8182.timer.png" /&gt;&lt;/p&gt;
&lt;p&gt;Also keep in mind that there isn&amp;#39;t really a &amp;quot;stop&amp;quot; option in a process, so you would likely create a parallel flow that goes to this timer. Then, when the timer is triggered, it should go straight to a terminate end node to stop the process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>