<?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>Problem delay timer process</title><link>https://community.appian.com/discussions/f/general/21938/problem-delay-timer-process</link><description>Good afternoon 
 We have a problem with the delay of a start timer, the timer has to run every X minutes (set to a constant). We have created a rule to delay us so that the process runs at the exact minute. For example, if it&amp;#39;s 6:26 p.m. and we run every</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Problem delay timer process</title><link>https://community.appian.com/thread/86077?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 13:55:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec9bc80b-1b7c-4782-a64a-36609d7fb09f</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Awesome, glad that worked!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem delay timer process</title><link>https://community.appian.com/thread/86043?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 07:51:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b15d234-91ba-411d-8e72-4bd84a34bfa5</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;Good morning Peter,&lt;/p&gt;
&lt;p&gt;Just yesterday I began to test that option, but I did not want to write until I did all the tests but effectively with that solution it works correctly.&lt;/p&gt;
&lt;p&gt;Thank you very much for your help!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem delay timer process</title><link>https://community.appian.com/thread/85999?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 21:15:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:88a39e03-86fe-4774-a44d-24927f1dffcb</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Ahhh I know what the problem is - confusingly the decimal representation of time is actually a negative number, so instead of just rounding to 0, you actually have to round&amp;nbsp;&lt;em&gt;up&lt;/em&gt; to get the correct result. Try this one:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;todatetime((roundup(todecimal(now())*24*4,0)+1) / 24/4)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem delay timer process</title><link>https://community.appian.com/thread/85968?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 15:04:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bae202cd-0333-482e-b1f1-24c8b8c0118a</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;Good Peter,&lt;/p&gt;
&lt;p&gt;Thank you very much for your contribution, I understand what you want to tell me.&lt;br /&gt;Only one doubt, of the rule you put is that I have seen that if for example it is 11:54 it tells you that the next interval to execute would be 12:15, if instead you execute it at 12:51 for example it tells you It would be 12:00 but if you execute 11:54, what I am telling you would happen, then if for example we publish our process at 11:54 it will skip the 12:00 interval and it will go directly to 12:15.&lt;br /&gt;Do you know why it can be?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1632236706478v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem delay timer process</title><link>https://community.appian.com/thread/85955?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 12:56:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66894689-71e2-493b-9127-f23c1ce91758</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Ok so if you want to ensure that your batches are executed every 15 minutes starting precisely at 9AM, here&amp;#39;s what I would do:&lt;/p&gt;
&lt;p&gt;1) Use a rule in the delay expression that uses time as a decimal to find the closest 15 minute period. I would do something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;todatetime((round(todecimal(now())*24*4,0)+1) / 24/4)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Basically what this does is it converts the current date and time to a decimal and then rounds the decimal&amp;nbsp;to the nearest 15 minute period.&lt;/p&gt;
&lt;p&gt;2) In the timer recurrence don&amp;#39;t use a complex expression - just run it every 15 minutes (maybe store 15 in a constant?)&lt;/p&gt;
&lt;p&gt;3) Set up your process so that there is a gateway immediately after the start node. In that gateway, check to see if the current time is between 9AM and 9PM.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/sample_5F00_process.png" /&gt;&lt;/p&gt;
&lt;p&gt;If you do it this way, then your process will&amp;nbsp;&lt;em&gt;always&lt;/em&gt; start every 15 minutes, but it will only continue to the actual process logic if it&amp;#39;s between those times. I prefer this rather than complex logic in the timer because it&amp;#39;s a lot easier to debug, and there&amp;#39;s not really a downside if your process just starts and immediately goes to the end not if it isn&amp;#39;t in the right hours during the day.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem delay timer process</title><link>https://community.appian.com/thread/85945?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 08:13:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1bbd5d3d-7a15-4157-b8da-53c52cccc614</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;Good Peter,&lt;br /&gt;We do the delay because in addition to what was commented, the batch must be executed from 9: AM to 9: PM every 15 minutes, so if the process is published in an intermediate interval, let&amp;#39;s imagine that it is published at 9:13 AM. we want it to not run until 9:15.&lt;/p&gt;
&lt;p&gt;So what we had thought is to calculate the delay that we would have to enter and do it, the rule that I attach separately works correctly but when putting it in the timer it does nothing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This way it doesn&amp;#39;t do anything either&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1632212871108v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any idea what we are doing wrong?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A greeting and thanks in advance&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem delay timer process</title><link>https://community.appian.com/thread/85928?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 17:07:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:736ab52d-357b-490d-9448-06cbc5bf4f85</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Is it necessary to use the &amp;quot;Delay for...&amp;quot; option? I would think it would be a lot easier to use the second radio button to &amp;quot;Delay until the date and time specified by this expression&amp;quot;. Then if you define the expression to return midnight or noon (or really anything that is exactly on the 15 minute time interval) then it should work fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>