<?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: Parsing in Field Calculator Processor. in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/parsing-in-field-calculator-processor/m-p/643073#M2848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You will want to configure a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Field Calculator&lt;/SPAN&gt;&lt;SPAN&gt; whose &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Expression&lt;/SPAN&gt;&lt;SPAN&gt; looks something like &lt;/SPAN&gt;&lt;STRONG&gt;substring(DateAsString,5,7)&lt;/STRONG&gt;&lt;SPAN&gt; to pull a two character substring out of a date/time field received as a String and write the retrieved sub-string to a new field. The index values 5 and 7 in the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;substring( )&lt;/SPAN&gt;&lt;SPAN&gt; syntax specify the starting index and ending index of a zero-based array of characters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The downside of this is that the date/time value must be specified, by the GeoEvent Definition, as a String and the service elements in the GeoEvent Service will only be able to work with the date/time as a String ... not a Date. You can work around this by feeding the event data back into a second input and allowing the second input to handle the conversion of the String representation of the date/time to an actual Date value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Details are included in the attached PDF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note that support for Java String functions from within a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Field Calculator&lt;/SPAN&gt;&lt;SPAN&gt; is supported in the &lt;/SPAN&gt;&lt;STRONG&gt;10.2.2&lt;/STRONG&gt;&lt;SPAN&gt; release of GeoEvent Processor, which should be publically available on your Customer Care Portal tomorrow 15-April-2014. Esri Distributors should have been given access to download the new release last week.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- RJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2014 21:59:12 GMT</pubDate>
    <dc:creator>RJSunderman</dc:creator>
    <dc:date>2014-04-14T21:59:12Z</dc:date>
    <item>
      <title>Parsing in Field Calculator Processor.</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/parsing-in-field-calculator-processor/m-p/643070#M2845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a question regarding the Field Calculator processor. I have a Date field in my stream and i need to parse it in order to keep the Month in a separate field. Is it something that can be configured while setting the Field Calculator?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elias L.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 06:08:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/parsing-in-field-calculator-processor/m-p/643070#M2845</guid>
      <dc:creator>EliasLazarou</dc:creator>
      <dc:date>2014-04-10T06:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing in Field Calculator Processor.</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/parsing-in-field-calculator-processor/m-p/643071#M2846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Elias -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you provide me a sample of how the date/time values are being sent to GeoEvent Processor? Are you interested in receiving a string value such as &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;"14-7-2012 02:30:45 PM"&lt;/STRONG&gt;&lt;SPAN&gt; and allowing an input connector to use an &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Expected Date Format&lt;/SPAN&gt;&lt;SPAN&gt; mask such as &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;dd-M-yyyy hh:mm:ss a&lt;/STRONG&gt;&lt;SPAN&gt; to interpret the string as a Date ... &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;July 7, 2012 14:30:45&lt;/SPAN&gt;&lt;SPAN&gt; in this case ... and then then pull the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Month&lt;/SPAN&gt;&lt;SPAN&gt; portion out as a numeric (e.g. 7 for &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;July&lt;/SPAN&gt;&lt;SPAN&gt;)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We might be able to use &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;substring( )&lt;/SPAN&gt;&lt;SPAN&gt; or a Regular Expression to pull a portion from a date/time String which represents the month, if the date/time is brought in as a String. But if you need the Input to convert the value it receives to a Date, we may have trouble trying to get the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;month&lt;/SPAN&gt;&lt;SPAN&gt; out of the Date object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- RJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 19:38:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/parsing-in-field-calculator-processor/m-p/643071#M2846</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2014-04-11T19:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing in Field Calculator Processor.</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/parsing-in-field-calculator-processor/m-p/643072#M2847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello RJ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A sample date would be "2014-03-06 10:44". I think the scenario that you suggested would work! Could you give a clue on how to apply the substring() function or a regular expression to fish the month?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elias&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 07:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/parsing-in-field-calculator-processor/m-p/643072#M2847</guid>
      <dc:creator>EliasLazarou</dc:creator>
      <dc:date>2014-04-14T07:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing in Field Calculator Processor.</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/parsing-in-field-calculator-processor/m-p/643073#M2848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You will want to configure a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Field Calculator&lt;/SPAN&gt;&lt;SPAN&gt; whose &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Expression&lt;/SPAN&gt;&lt;SPAN&gt; looks something like &lt;/SPAN&gt;&lt;STRONG&gt;substring(DateAsString,5,7)&lt;/STRONG&gt;&lt;SPAN&gt; to pull a two character substring out of a date/time field received as a String and write the retrieved sub-string to a new field. The index values 5 and 7 in the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;substring( )&lt;/SPAN&gt;&lt;SPAN&gt; syntax specify the starting index and ending index of a zero-based array of characters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The downside of this is that the date/time value must be specified, by the GeoEvent Definition, as a String and the service elements in the GeoEvent Service will only be able to work with the date/time as a String ... not a Date. You can work around this by feeding the event data back into a second input and allowing the second input to handle the conversion of the String representation of the date/time to an actual Date value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Details are included in the attached PDF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note that support for Java String functions from within a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Field Calculator&lt;/SPAN&gt;&lt;SPAN&gt; is supported in the &lt;/SPAN&gt;&lt;STRONG&gt;10.2.2&lt;/STRONG&gt;&lt;SPAN&gt; release of GeoEvent Processor, which should be publically available on your Customer Care Portal tomorrow 15-April-2014. Esri Distributors should have been given access to download the new release last week.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- RJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 21:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/parsing-in-field-calculator-processor/m-p/643073#M2848</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2014-04-14T21:59:12Z</dc:date>
    </item>
  </channel>
</rss>

