<?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>topic Re: Add Days/Months to Datetime field using GeoEvent Processor in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/add-days-months-to-datetime-field-using-geoevent/m-p/544759#M2386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tucker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't quite follow your scenario, but let's start with some semantics. &amp;nbsp;GeoEvent 'filters' examine incoming geoevents, evaluate them against some criteria, and if any geoevent meets the criteria, it will continue through the flow of the geoevent service. &amp;nbsp;Any geoevent that does not meet the criteria is simply dropped. &amp;nbsp;A filter cannot perform any field calculation, but there is a Field Calculator *processor*. &amp;nbsp;So I think you may be needing the Field Calculator processor...? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I *think* I *kinda* understand what you're trying to do, and if I'm understanding you, you would need a mix of filters and processors. &amp;nbsp;Here is my 'pseudocode' of what I think you're trying to do. &amp;nbsp;For now, just let me know if my interpretation is correct, then we can move forward from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Geoevents are flowing in, and a geoevent contains a 'Rank' field (and probably other fields)&lt;/P&gt;&lt;P&gt;2.a. If a geoevent contains a Rank value of 1, use the Field Calculator processor to add some amount of days (maybe months) to a date.&lt;/P&gt;&lt;P&gt;2.b. If a geoevent contains a Rank value of 2, use the Field Calculator processor to add some amount of days (maybe months) to a date that's different than the days (or months) in 2.a.&lt;/P&gt;&lt;P&gt;2.c. Same as 2.b. but for Rank of 3 or 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that correct? &amp;nbsp;If so, is the 'base' date value something that's in the geoevent, or something else, like system time at which the geoevent is processed (i.e. 'now')?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Apr 2017 00:47:52 GMT</pubDate>
    <dc:creator>MarkBramer</dc:creator>
    <dc:date>2017-04-08T00:47:52Z</dc:date>
    <item>
      <title>Add Days/Months to Datetime field using GeoEvent Processor</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/add-days-months-to-datetime-field-using-geoevent/m-p/544758#M2385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a filter I would like to update a field (field calculate) to add days and months to a date. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a Rank of 1-4 as a filter and a known date I would like to add days and/or months based on which filter is input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done in GeoEvent. &amp;nbsp;This is a HFS so I can't use sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 19:12:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/add-days-months-to-datetime-field-using-geoevent/m-p/544758#M2385</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2017-04-06T19:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add Days/Months to Datetime field using GeoEvent Processor</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/add-days-months-to-datetime-field-using-geoevent/m-p/544759#M2386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tucker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't quite follow your scenario, but let's start with some semantics. &amp;nbsp;GeoEvent 'filters' examine incoming geoevents, evaluate them against some criteria, and if any geoevent meets the criteria, it will continue through the flow of the geoevent service. &amp;nbsp;Any geoevent that does not meet the criteria is simply dropped. &amp;nbsp;A filter cannot perform any field calculation, but there is a Field Calculator *processor*. &amp;nbsp;So I think you may be needing the Field Calculator processor...? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I *think* I *kinda* understand what you're trying to do, and if I'm understanding you, you would need a mix of filters and processors. &amp;nbsp;Here is my 'pseudocode' of what I think you're trying to do. &amp;nbsp;For now, just let me know if my interpretation is correct, then we can move forward from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Geoevents are flowing in, and a geoevent contains a 'Rank' field (and probably other fields)&lt;/P&gt;&lt;P&gt;2.a. If a geoevent contains a Rank value of 1, use the Field Calculator processor to add some amount of days (maybe months) to a date.&lt;/P&gt;&lt;P&gt;2.b. If a geoevent contains a Rank value of 2, use the Field Calculator processor to add some amount of days (maybe months) to a date that's different than the days (or months) in 2.a.&lt;/P&gt;&lt;P&gt;2.c. Same as 2.b. but for Rank of 3 or 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that correct? &amp;nbsp;If so, is the 'base' date value something that's in the geoevent, or something else, like system time at which the geoevent is processed (i.e. 'now')?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Apr 2017 00:47:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/add-days-months-to-datetime-field-using-geoevent/m-p/544759#M2386</guid>
      <dc:creator>MarkBramer</dc:creator>
      <dc:date>2017-04-08T00:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add Days/Months to Datetime field using GeoEvent Processor</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/add-days-months-to-datetime-field-using-geoevent/m-p/544760#M2387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2.a. is Correct. &amp;nbsp;Can that be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 12:05:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/add-days-months-to-datetime-field-using-geoevent/m-p/544760#M2387</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2017-04-10T12:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add Days/Months to Datetime field using GeoEvent Processor</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/add-days-months-to-datetime-field-using-geoevent/m-p/544761#M2388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Tucker, I may have not been clear enough. &amp;nbsp;The whole thing I laid out with steps 1 through 2a/b/c is one complete scenario, not a choice (so I was looking for a yes/no answer, not an item from the individual steps. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, because I know at least 2a is correct, I think my interpretation of what you originally asked is generally correct. &amp;nbsp;So the answer is YES, you can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you answer the last question I had: I&lt;SPAN style="background-color: #ffffff;"&gt;s the date value that's being added to something that's in the geoevent, or something else, like system time at which the geoevent is processed (i.e. 'now')?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 18:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/add-days-months-to-datetime-field-using-geoevent/m-p/544761#M2388</guid>
      <dc:creator>MarkBramer</dc:creator>
      <dc:date>2017-04-10T18:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add Days/Months to Datetime field using GeoEvent Processor</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/add-days-months-to-datetime-field-using-geoevent/m-p/544762#M2389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date field will be populated with a date chosen by the user. &amp;nbsp;Rank will be blank. &amp;nbsp;If the user inputs&amp;nbsp;a rank of '1', it takes the date field entry and adds 2 days. &amp;nbsp; If the user inputs a rank of '2',&amp;nbsp;&lt;SPAN&gt;it takes the date field entry and adds 10 days....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:59:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/add-days-months-to-datetime-field-using-geoevent/m-p/544762#M2389</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2017-04-10T20:59:26Z</dc:date>
    </item>
  </channel>
</rss>

