<?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: Choice VS filter in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/choice-vs-filter/m-p/1387944#M4144</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95633"&gt;@EricIronside&lt;/a&gt;&amp;nbsp;wrote a great article on the topic of choices vs. filters:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-geoevent-server-blog/geoevent-10-9-introducing-choice-elements/ba-p/1053353" target="_blank"&gt;https://community.esri.com/t5/arcgis-geoevent-server-blog/geoevent-10-9-introducing-choice-elements/ba-p/1053353&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From that article:&lt;/P&gt;&lt;P&gt;"A choice element with one when clause and the optional otherwise route disabled is functionally equivalent to a filter element."&lt;/P&gt;&lt;P&gt;In other words, if you want to process both TRUE and FALSE, use a choice, but if you want to process only TRUE or only FALSE, you can use a filter or a choice.&lt;/P&gt;&lt;P&gt;I would use a filter in the latter case because a choice restricts what kind of input it will take. From Eric's article:&lt;/P&gt;&lt;P&gt;"Each choice element must have at least one parent element and that parent element must be either an Input element, a filter element, or a Processor element."&lt;/P&gt;&lt;P&gt;I have encountered situations where I had to add a &lt;A href="https://enterprise.arcgis.com/en/geoevent/11.1/analyze/no-operation-processor.htm" target="_blank" rel="noopener"&gt;No Operation processor&lt;/A&gt; to get a choice to work. It was worth it because a choice is better than multiple filters, but it would be easier to use a filter if you needed to process only the TRUE case or only the FALSE case.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 10:42:24 GMT</pubDate>
    <dc:creator>GaryLSheppardJr</dc:creator>
    <dc:date>2024-02-28T10:42:24Z</dc:date>
    <item>
      <title>Choice VS filter</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/choice-vs-filter/m-p/1387841#M4143</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Considering best practices and scalability, could you provide guidance on the optimal approach for handling such TRUE FALSE statement&amp;nbsp;scenarios within the GeoEvent framework? I want to ensure the most efficient and maintainable configuration. Should I always choose choice when Only one of the statement&amp;nbsp;is TRUE even if its 2 choices only?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 04:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/choice-vs-filter/m-p/1387841#M4143</guid>
      <dc:creator>Moi_Nccncc</dc:creator>
      <dc:date>2024-02-28T04:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Choice VS filter</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/choice-vs-filter/m-p/1387944#M4144</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95633"&gt;@EricIronside&lt;/a&gt;&amp;nbsp;wrote a great article on the topic of choices vs. filters:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-geoevent-server-blog/geoevent-10-9-introducing-choice-elements/ba-p/1053353" target="_blank"&gt;https://community.esri.com/t5/arcgis-geoevent-server-blog/geoevent-10-9-introducing-choice-elements/ba-p/1053353&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From that article:&lt;/P&gt;&lt;P&gt;"A choice element with one when clause and the optional otherwise route disabled is functionally equivalent to a filter element."&lt;/P&gt;&lt;P&gt;In other words, if you want to process both TRUE and FALSE, use a choice, but if you want to process only TRUE or only FALSE, you can use a filter or a choice.&lt;/P&gt;&lt;P&gt;I would use a filter in the latter case because a choice restricts what kind of input it will take. From Eric's article:&lt;/P&gt;&lt;P&gt;"Each choice element must have at least one parent element and that parent element must be either an Input element, a filter element, or a Processor element."&lt;/P&gt;&lt;P&gt;I have encountered situations where I had to add a &lt;A href="https://enterprise.arcgis.com/en/geoevent/11.1/analyze/no-operation-processor.htm" target="_blank" rel="noopener"&gt;No Operation processor&lt;/A&gt; to get a choice to work. It was worth it because a choice is better than multiple filters, but it would be easier to use a filter if you needed to process only the TRUE case or only the FALSE case.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 10:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/choice-vs-filter/m-p/1387944#M4144</guid>
      <dc:creator>GaryLSheppardJr</dc:creator>
      <dc:date>2024-02-28T10:42:24Z</dc:date>
    </item>
  </channel>
</rss>

