<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Nifi:Manipulatig Cron Scheduling in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Manipulatig-Cron-Scheduling/m-p/186166#M67906</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/30155/salometkhilaishvili.html" nodeid="30155" target="_blank"&gt;@sally sally&lt;/A&gt; &lt;/P&gt;&lt;P&gt;That is correct, adding 7,200,000 ms will increase your delay to 2 hours.&lt;/P&gt;&lt;P&gt;If you found my answer addressed your question, please mark it as the accepted answer by clicking &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="34778-screen-shot-2017-09-12-at-100608-am.png" style="width: 79px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18825i1E534809D43D5120/image-size/medium?v=v2&amp;amp;px=400" role="button" title="34778-screen-shot-2017-09-12-at-100608-am.png" alt="34778-screen-shot-2017-09-12-at-100608-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 08:14:44 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2019-08-18T08:14:44Z</dc:date>
    <item>
      <title>Nifi:Manipulatig Cron Scheduling</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Manipulatig-Cron-Scheduling/m-p/186163#M67903</link>
      <description>&lt;P&gt;I want to manipulate  cron schedule  attribute  so  that it  should  start  processor  in 2  hours after  it  gets  flowfile  from previous  nifi processor  is  there any way  i can do  it  by  simple  coding or i  will  have to write  nifi  processor  myself?(  if  so   can you  give me any advice  how can i write nifi invokehttp &lt;/P&gt;&lt;P&gt;  processor  myself )&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 18:56:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Manipulatig-Cron-Scheduling/m-p/186163#M67903</guid>
      <dc:creator>salome_tkhilais</dc:creator>
      <dc:date>2017-09-12T18:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi:Manipulatig Cron Scheduling</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Manipulatig-Cron-Scheduling/m-p/186164#M67904</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/30155/salometkhilaishvili.html" nodeid="30155" target="_blank"&gt;@sally sally&lt;/A&gt;&lt;P&gt;You could use an UpdateAttribute and RouteOnAttribute processor to delay FlowFiles by two minutes before passing them to your next processor instead.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="34767-screen-shot-2017-09-12-at-92302-am.png" style="width: 436px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18826i718E84D1394AE6BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="34767-screen-shot-2017-09-12-at-92302-am.png" alt="34767-screen-shot-2017-09-12-at-92302-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The UpdateAttribute processor is used to create a new attribute with a value of the current epoch time in Milliseconds&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;currentTime = ${now():toNumber()}&lt;/PRE&gt;&lt;P&gt;The RouteOnAttribute then adds 2 minutes to that attribute and checks to see if it os less then or equal to the current time.  If it is less then, your FlowFiles are sent to the unmatched Relationship which is looped back on the processor.  The FlowFiles will continue to loop until 2 minutes have past at which time they will be routed to the matched (2mins) relationship created using teh following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;2mins = ${currentTime:plus(120000):le(${now()})}&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:14:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Manipulatig-Cron-Scheduling/m-p/186164#M67904</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-08-18T08:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi:Manipulatig Cron Scheduling</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Manipulatig-Cron-Scheduling/m-p/186165#M67905</link>
      <description>&lt;P&gt;can  i  deley flowfiles  by two hour  if i  replace 120000  by 7200000&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 21:01:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Manipulatig-Cron-Scheduling/m-p/186165#M67905</guid>
      <dc:creator>salome_tkhilais</dc:creator>
      <dc:date>2017-09-12T21:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi:Manipulatig Cron Scheduling</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Manipulatig-Cron-Scheduling/m-p/186166#M67906</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/30155/salometkhilaishvili.html" nodeid="30155" target="_blank"&gt;@sally sally&lt;/A&gt; &lt;/P&gt;&lt;P&gt;That is correct, adding 7,200,000 ms will increase your delay to 2 hours.&lt;/P&gt;&lt;P&gt;If you found my answer addressed your question, please mark it as the accepted answer by clicking &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="34778-screen-shot-2017-09-12-at-100608-am.png" style="width: 79px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18825i1E534809D43D5120/image-size/medium?v=v2&amp;amp;px=400" role="button" title="34778-screen-shot-2017-09-12-at-100608-am.png" alt="34778-screen-shot-2017-09-12-at-100608-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:14:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Manipulatig-Cron-Scheduling/m-p/186166#M67906</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-08-18T08:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi:Manipulatig Cron Scheduling</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Manipulatig-Cron-Scheduling/m-p/186167#M67907</link>
      <description>&lt;P&gt;Thank  you  it was    helpfull&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 23:08:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Manipulatig-Cron-Scheduling/m-p/186167#M67907</guid>
      <dc:creator>salome_tkhilais</dc:creator>
      <dc:date>2017-09-12T23:08:12Z</dc:date>
    </item>
  </channel>
</rss>

