<?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>Recursive timer between hours</title><link>https://community.appian.com/discussions/f/general/21671/recursive-timer-between-hours</link><description>Good Morning, 
 We are trying to configure a timer in the start node of a process that must have the following functionality, the process must run every 15 minutes every day between 04:00 AM and 06:00 AM.( that is, 9 times) 
 We have GMT (-3:00) so we</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Recursive timer between hours</title><link>https://community.appian.com/thread/84940?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 15:58:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:125f521b-703b-42f4-ba25-1a0466ab8224</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;You can change the time you want the process to run.&lt;br /&gt;I do not quite understand what you are proposing.&lt;br /&gt;Can you explain a bit to me?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Greetings and thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Recursive timer between hours</title><link>https://community.appian.com/thread/84938?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 15:39:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a70ce64e-b7d0-4617-a332-eecd8acb8831</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Ah okay - is the local time zone likely to change? You could still offset the time from that constant to GMT to make the calculations easier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Recursive timer between hours</title><link>https://community.appian.com/thread/84937?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 15:27:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fdec50eb-d6fd-4651-93cd-32103c8960c3</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;Hi Peter!&lt;/p&gt;
&lt;p&gt;It is that the client wants the start date and the end date to be stored constant and they do not want to be calculating the time in gmt.&lt;/p&gt;
&lt;p&gt;Greetings and thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Recursive timer between hours</title><link>https://community.appian.com/thread/84935?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 13:55:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ac346801-0cce-49c3-9c39-b40177e648fa</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Have you tried just not using local time but using GMT instead? Personally I find it difficult to keep up with what the local time is and it&amp;#39;s often easier to just move the time to GMT instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Recursive timer between hours</title><link>https://community.appian.com/thread/84930?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 13:30:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:942e54df-e81e-482c-9803-00a2a87a5500</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;Hello good,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks for the answer, but I think it is useless if I do that, the hours do not match the local time, for example:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1629811654922v1.png" alt=" " /&gt;&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/pastedimage1629811724015v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So I think I would not run the timer at the correct time.&lt;/p&gt;
&lt;p&gt;Or is it something i&amp;#39;m not doing correctly?&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: Recursive timer between hours</title><link>https://community.appian.com/thread/84912?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 10:22:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8848f11-db51-4a91-a292-6a721ef1b177</guid><dc:creator>gayathris111098</dc:creator><description>&lt;p&gt;Give a try like this,&amp;nbsp;From 3AM to 5.30PM it should return true&lt;/p&gt;
&lt;p&gt;and(&lt;br /&gt; (&lt;br /&gt; time(&lt;br /&gt; now()&lt;br /&gt; ) &amp;gt;= time(3, 0)&lt;br /&gt; ),&lt;br /&gt; (&lt;br /&gt; time(&lt;br /&gt; now()&lt;br /&gt; ) &amp;lt;= time(17,30)&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Recursive timer between hours</title><link>https://community.appian.com/thread/84909?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 07:43:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7f2966c3-d52c-4690-9697-b3d2510b2027</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;Hello good,&lt;/p&gt;
&lt;p&gt;With hours we already achieve it but with minutes not, if we put the following code the timer does not run, do you know what the problem may be?&lt;/p&gt;
&lt;p&gt;and(&lt;br /&gt; (&lt;br /&gt; time(&lt;br /&gt; hour(&lt;br /&gt; local(&lt;br /&gt; now()&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; minute(&lt;br /&gt; local(&lt;br /&gt; now()&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ) &amp;gt;= time(&lt;br /&gt; 3,&lt;br /&gt; 0&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; (&lt;br /&gt; time(&lt;br /&gt; hour(&lt;br /&gt; local(&lt;br /&gt; now()&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; minute(&lt;br /&gt; local(&lt;br /&gt; now()&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ) &amp;lt;= time(&lt;br /&gt; 5,&lt;br /&gt; 30&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;A greeting and thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Recursive timer between hours</title><link>https://community.appian.com/thread/84761?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 11:57:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3c5916b8-b1bf-4866-848e-7649be31753f</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;We have continued doing tests and we have seen that the condition in the node does not do well, if it has a load or with the queries to bbdd, it only works well if we put the values ​​in constants but what they ask us is that those values ​​are in bbdd, any ideas?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Greetings and thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Recursive timer between hours</title><link>https://community.appian.com/thread/84754?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 09:14:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2e2d292-0ca4-4462-914b-45c6dee57b6f</guid><dc:creator>sandrap845</dc:creator><description>&lt;p&gt;Right, excuse me and a question I am putting the condition in a rule because the values ​​of StartDate, EndDate, I must frequently collect them from the database, the rule is this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;load(&lt;/p&gt;
&lt;p&gt;local!horaIni: split(&lt;br /&gt; local!fechaIni,&lt;br /&gt; &amp;quot;:&amp;quot;&lt;br /&gt; )[1],&lt;br /&gt; local!minutoIni: split(&lt;br /&gt; local!fechaIni,&lt;br /&gt; &amp;quot;:&amp;quot;&lt;br /&gt; )[2],&lt;br /&gt; local!horaFin: split(&lt;br /&gt; local!fechaFin,&lt;br /&gt; &amp;quot;:&amp;quot;&lt;br /&gt; )[1],&lt;br /&gt; local!minutoFin: split(&lt;br /&gt; local!fechaFin,&lt;br /&gt; &amp;quot;:&amp;quot;&lt;br /&gt; )[2],&lt;br /&gt; /*Se comprueban las condiciones para ver si el proceso debe ejecutarse o no*/&lt;br /&gt; if(&lt;br /&gt; and(&lt;br /&gt; time(&lt;br /&gt; hour(&lt;br /&gt; local(&lt;br /&gt; now()&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; minute(&lt;br /&gt; local(&lt;br /&gt; now()&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ) &amp;gt;= time(&lt;br /&gt; local!horaIni,&lt;br /&gt; local!minutoIni&lt;br /&gt; ),&lt;br /&gt; time(&lt;br /&gt; hour(&lt;br /&gt; local(&lt;br /&gt; now()&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; minute(&lt;br /&gt; local(&lt;br /&gt; now()&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ) &amp;lt;= time(&lt;br /&gt; local!horaFin,&lt;br /&gt; local!minutoFin&lt;br /&gt; ),&lt;br /&gt; local!activo = &amp;quot;S&amp;quot;&lt;br /&gt; ),&lt;br /&gt;true(),&lt;br /&gt; false()&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;Where the values ​​of startDate, EndDate and asset are values ​​retrieved from bbdd(values ​​are string)&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1629363976312v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and the frequency would be a query to bbdd that retrieves this value&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1629364224237v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is the timer setting&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/pastedimage1629364302062v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Executing the rule separately returns true&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Do you know why the process does not start?&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1629364502539v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Greetings and thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Recursive timer between hours</title><link>https://community.appian.com/thread/84751?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 08:42:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48c7b3ec-5165-4ba0-a522-e4d75bac51ea</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you test this? hour() returns 0-23. Should be OK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>