<?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: How to get one single entry message and one single exit message once a ship enters in a geofence area in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-get-one-single-entry-message-and-one-single/m-p/635068#M2825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There was a typo in the question:&amp;nbsp;&lt;EM style="background-color: #ffffff; color: #000000;"&gt;the "First GeoEvent triggers Enter" is set to false. &lt;/EM&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Should be&lt;/SPAN&gt;&lt;EM style="background-color: #ffffff; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;the "First GeoEvent triggers Exit" is set to false.&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #000000;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The question has been answered by RJ:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Something I would like to cover, before exploring your use case, are reasons why an existing GeoFence might not be considered by a filter expression. When importing GeoFences (or synchronizing GeoFences) there are a couple of important properties to recognize:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Active Field&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent Start&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent End&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The default for &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Active Field&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; is &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;(Always Active)&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent Start&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent End&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; are not required; they default with no specified value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;These are important because they control which GeoFences will be excluded from the set of &lt;EM&gt;candidate&lt;/EM&gt; GeoFences before a filter expression is evaluated. Let’s say you receive and event, with a TRACK_ID “AA-1234” whose Geometry is a point. The event arrives at a filter whose expression refers to a set of GeoFences which match a regular expression. The first thing GeoEvent will do is exclude / remove from the set of candidate GeoFences any GeoFences whose ACTIVE state is FALSE. It will then exclude / remove any GeoFences whose temporal extent does not include the date/time associated with the event being processed. (The temporal extent is determined using the &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent Start&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent End&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; properties of each GeoFence. You can think of these as setting an “effective from” and “effective until” time range for each GeoFence.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;When I mention the “date/time associated with the event being processed”:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; TRACK_ID and GEOMETRY are probably the two most important tags you will use.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; Another important tag is TIME_START.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; If an event’s GeoEvent Definition includes a field tagged TIME_START, that is the date/time processors will associate with an event.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; If there is no field tagged TIME_START, generally a processor (or filter) will use the system time the event was received.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;This can be important when &lt;STRONG&gt;&lt;EM&gt;simulating&lt;/EM&gt;&lt;/STRONG&gt; event data. Often the attributes in the records we simulate have date/time values which are old, sometimes years old. If I simulate a set of events whose date/time values are back in 2014, and I tag one of the event’s attribute fields with TIME_START, it is unlikely that the event’s date/time will intersect a set of GeoFences whose &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent Start&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent End&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; have been set to date/time values sometime in the current year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;If you have kept the defaults for the three properties I’ve described above, then there’s not much to further you need to consider. All of your GeoFences will be &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;(Always Active)&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; – and with no temporal values specified – all GeoFences will be considered effective from the beginning-of-time until the end-of-time (meaning they will always temporally intersect a given event’s date/time).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Let’s consider a couple of Global Properties which can affect how the &lt;STRONG&gt;stateful&lt;/STRONG&gt; operations ENTER and EXIT are evaluated. You mention, in your question below, that you’ve set &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Enter&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; to &lt;STRONG&gt;&lt;EM&gt;False&lt;/EM&gt;&lt;/STRONG&gt; (even though your screenshot of the Configure Global Settings page shows the properties with their default values). &amp;nbsp;I’m assuming that if you changed either of these system property values you did so deliberately.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The GeoEvent product properties &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Enter&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Exit&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; are intended to allow users to configure the evaluation of spatial relationships between an event’s geometry and a GeoFence when the system has &lt;SPAN style="text-decoration: underline;"&gt;only one event&lt;/SPAN&gt; to work with (for a given TRACK_ID). This condition typically follows a system restart when there is no cache of prior positions for a given TRACK_ID. The default values for these properties are:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-indent: -.25in; margin: 3.0pt 0in 3.0pt .5in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Enter&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; true&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Exit&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; false&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The reason for these defaults is that we probably &lt;SPAN style="text-decoration: underline;"&gt;do&lt;/SPAN&gt; want to evaluate the very first reported position associated with a particular vessel’s TRACK_ID &lt;EM&gt;inside&lt;/EM&gt; a GeoFence as having “entered” the GeoFence even if we have not previously observed a position for that vessel &lt;EM&gt;outside&lt;/EM&gt; of the GeoFence. But we likely &lt;SPAN style="text-decoration: underline;"&gt;do not&lt;/SPAN&gt; want to be told – every time the GeoEvent product is restarted or the server machine is rebooted – that a vessel has “exited” GeoFences that it is not currently inside. More likely we want to first observe a position (associated with a particular vessel’s TRACK_ID) &lt;EM&gt;inside&lt;/EM&gt; a GeoFence before sending a notification that the vessel has exited that GeoFence.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Let’s say that I have established five static polygon GeoFences (we’ll consider &lt;EM&gt;dynamic&lt;/EM&gt; GeoFences later…) :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216323_1.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I can publish the following simple GeoEvent Service with a GeoTagger whose spatial operation is ENTER ANY :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216325_2.png" style="width: 620px; height: 257px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I then send the event illustrated to the right of the GeoEvent Service and allow the input to construct a Geomtery for me from the specified latitude and longitude values. This is the very first event ever received with the TRACK_ID “AA-1234” … so there is no prior event in any sort of cache to which GeoEvent might be able to refer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Because the &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Enter&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; system property has been left as its default &lt;STRONG&gt;&lt;EM&gt;True&lt;/EM&gt;&lt;/STRONG&gt; the event I get logged in my system file output looks like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216326_1.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Let’s say that I then reconfigure the GeoTagger processor so that its spatial operation is EXIT ANY and change the TRACK_ID of the event being received to a value GeoEvent has not yet encountered. When I post a second event whose coordinates are outside all of the established GeoFences, because the &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Exit&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; system property has been left as its default &lt;STRONG&gt;&lt;EM&gt;False&lt;/EM&gt;&lt;/STRONG&gt; the event I get logged in my system file output looks like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&lt;IMG alt="" class="image-4 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216327_2.png" style="height: auto;" /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Notice that the GeoTagger still appends an attribute field ‘GeoTags’ but because the system has never encountered an event “BB-3456” which was &lt;STRONG&gt;&lt;EM&gt;inside&lt;/EM&gt;&lt;/STRONG&gt; any of the candidate GeoFences, and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Exit&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; is &lt;STRONG&gt;&lt;EM&gt;False&lt;/EM&gt;&lt;/STRONG&gt;, the EXIT ANY condition evaluates to FALSE. The GeoTagger has no named GeoFence which the processed event has “exited”, so the value of its &lt;EM&gt;GeoTags&lt;/EM&gt; attribute is assigned a JSON &lt;EM&gt;null&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Looking at the GeoEvent Service you illustrated, I would recommend not placing a filter prior to the GeoTagger processor. Think of a GeoTagger as a special combination of a Filter and the more generic Field Enricher processor. A GeoTagger will take any event it receives, and if the Geometry associated with that event shares the specified spatial relationship with one (or more) &lt;STRONG&gt;existing, active, temporally relevant GeoFence(s)&lt;/STRONG&gt; the processor will enrich the event with the name(s) of those GeoFence(s). Otherwise the GeoTagger will enrich the event with an attribute whose value is &lt;EM&gt;null&lt;/EM&gt; (which is itself information you might want to act upon).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;You’ve indicated that you want your GeoEvent Service to generate a single e-mail notification when a vessel enters an area modeled as a polygon GeoFence, and a second single e-mail notification when a ship exits a GeoFence. I’ll assume that the GeoFence areas do not overlap and that if a second (or later) vessel position report is simultaneously outside one GeoFence (having left an area) and inside a different GeoFence (having entered an adjacent or nearby area) that it is acceptable to receive separate near simultaneous e-mail messages that the vessel has exited “Area A” and has entered “Area B”. (Note that we cannot guarantee the order of message delivery, so you might get the “exit” email before you get the “enter” email…)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I would recommend resetting the &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Enter&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Exit&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; product properties to their default values (to guard against unwanted e-mail alerts when GeoEvent is restarted). Knowing that an EXITS ANY condition will &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; evaluate True for an polygon GeoFence unless a &lt;EM&gt;previous&lt;/EM&gt; position for the vessel’s TRACK_ID was observed &lt;EM&gt;inside&lt;/EM&gt; that GeoFence, I would recommend publishing a GeoEvent Service like the following which will use a pair of GeoTagger processors, followed by filters which discard events whose &lt;EM&gt;GeoTags&lt;/EM&gt; attribute value is &lt;EM&gt;null&lt;/EM&gt;, so that you send only events of interest to a particular e-mail notification output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-5 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216328_1.png" style="width: 620px; height: 406px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;If I HTTP/POST three events in the following order:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;[{&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "TrackID":"6a0798fa-b526",&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Longitude":-111.013196,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Latitude":32.004278&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;}]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;[{&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "TrackID":"6a0798fa-b526",&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Longitude":-111.033795,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Latitude":31.936708&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;}]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;[{&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "TrackID":"6a0798fa-b526",&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Longitude":-110.961698,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Latitude":31.950109&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;}]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Here’s what my two output log files look like – note the values of the timestamps:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Entry “GF-Alpha”&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #1f497d; font-size: 10.0pt;"&gt;1471046&lt;/EM&gt;&lt;STRONG style="color: #1f497d; font-size: 11.0pt;"&gt;197&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; seconds&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Exit “GF-Alpha”&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #1f497d; font-size: 10.0pt;"&gt;1471046&lt;/EM&gt;&lt;STRONG style="color: #1f497d; font-size: 11.0pt;"&gt;308&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; seconds &amp;nbsp;(~48 seconds later)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; Entry “GF-Beta”&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #1f497d; font-size: 10.0pt;"&gt;1471046&lt;/EM&gt;&lt;STRONG style="color: #1f497d; font-size: 11.0pt;"&gt;655&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; seconds&amp;nbsp; (~48 seconds later)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in; text-indent: .5in;"&gt;&lt;STRONG style="color: #1f497d; font-size: 11.0pt;"&gt;--- ENTRY LOG ---&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;--- EXIT LOG ---&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-6 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216329_1.png" style="height: auto;" /&gt;&lt;IMG alt="" class="image-7 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216330_2.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Now, I mentioned earlier that we would consider dynamic GeoFences later.&amp;nbsp; Something you should recognize about the &lt;STRONG&gt;stateful&lt;/STRONG&gt; operations ENTER and EXIT is that the GeoFences you intend to use to test spatial relationships with events you receive &lt;EM&gt;must exist&lt;/EM&gt;. If an event is received whose Geometry &lt;SPAN style="text-decoration: underline;"&gt;would have&lt;/SPAN&gt; intersected a GeoFence (if one existed) and a GeoFence is then created … the event has not technically “entered” the area because it was not first observed outside the area. When the event’s location moves so that it no longer intersects the area &lt;STRONG&gt;you do not get an EXIT&lt;/STRONG&gt; because, again, the event never technically “entered” the area (the GeoFence did not exist when the original event position was received).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;If you are synchronizing your GeoFences or doing anything which might remove / refresh the set of GeoFences registered with GeoEvent – and you are receiving and processing events at the same time – you should be prepared that stateful event processing might produce unexpected results. The ENTER and EXIT operations are stateful and rather strict in their definitions. If GeoEvent does not first observe an event location &lt;EM&gt;outside&lt;/EM&gt; a GeoFence it will not evaluate a later event as having “entered” the GeoFence. Likewise, if GeoEvent does not first observe an event location &lt;EM&gt;inside&lt;/EM&gt; a GeoFence it will not evaluate a later event as having “exited” the GeoFence.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Loading GeoFences, actively synchronizing GeoFences, changing a GeoFence’s Active True/False state, setting or updating a GeoFence’s &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent Start&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent End&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; property values … are all actions which can affect the evaluation of a received event’s spatial relationship against a set of candidate GeoFences. And if GeoEvent does not actually observe an event &lt;EM&gt;inside&lt;/EM&gt; (or &lt;EM&gt;outside&lt;/EM&gt;) a GeoFence it may not evaluate ENTER and EXIT the way you might expect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I hope this information helps –&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;RJ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Aug 2016 14:28:20 GMT</pubDate>
    <dc:creator>JiehuaYi</dc:creator>
    <dc:date>2016-08-13T14:28:20Z</dc:date>
    <item>
      <title>How to get one single entry message and one single exit message once a ship enters in a geofence area</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-get-one-single-entry-message-and-one-single/m-p/635067#M2824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Currently we are working &amp;nbsp;with GeoEvent Processor 10.3.1 (no patches installed) and want to receive one single enter message when a ship enters into a genfencing area, and one single exit message when a ship exits a geofencing area.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;To receive the single enter message, we use the following geoevent service. This won't work until we add a filter&amp;nbsp;with condition GeoTags != null&amp;nbsp;after GeoTagger AtlanticGeotagger. So, ENTER ANY works as expected --- Only one enter message is received once a ship enters into a geofence area.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;We are trying to make EXIT ANY work in a similar way. However, it seems that EXIT ANY has never worked as expected.&amp;nbsp;I have studies the related problems in GeoNET, like&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/103138"&gt;https://community.esri.com/thread/103138&lt;/A&gt;. We are sure the TRACK_ID is there in GeoEvent Definition (otherwise, ENTER ANY won't work either!), and the "First GeoEvent triggers Enter" is set to false.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216331_EnterAny.png" style="width: 620px; height: 461px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;My question is: Without using Incident Detector Processor, is there a way to make EXIT ANY work in a way similar to the above settings?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Aug 2016 13:26:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-get-one-single-entry-message-and-one-single/m-p/635067#M2824</guid>
      <dc:creator>JiehuaYi</dc:creator>
      <dc:date>2016-08-13T13:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get one single entry message and one single exit message once a ship enters in a geofence area</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-get-one-single-entry-message-and-one-single/m-p/635068#M2825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There was a typo in the question:&amp;nbsp;&lt;EM style="background-color: #ffffff; color: #000000;"&gt;the "First GeoEvent triggers Enter" is set to false. &lt;/EM&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Should be&lt;/SPAN&gt;&lt;EM style="background-color: #ffffff; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;the "First GeoEvent triggers Exit" is set to false.&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #000000;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The question has been answered by RJ:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Something I would like to cover, before exploring your use case, are reasons why an existing GeoFence might not be considered by a filter expression. When importing GeoFences (or synchronizing GeoFences) there are a couple of important properties to recognize:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Active Field&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent Start&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent End&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The default for &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Active Field&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; is &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;(Always Active)&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent Start&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent End&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; are not required; they default with no specified value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;These are important because they control which GeoFences will be excluded from the set of &lt;EM&gt;candidate&lt;/EM&gt; GeoFences before a filter expression is evaluated. Let’s say you receive and event, with a TRACK_ID “AA-1234” whose Geometry is a point. The event arrives at a filter whose expression refers to a set of GeoFences which match a regular expression. The first thing GeoEvent will do is exclude / remove from the set of candidate GeoFences any GeoFences whose ACTIVE state is FALSE. It will then exclude / remove any GeoFences whose temporal extent does not include the date/time associated with the event being processed. (The temporal extent is determined using the &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent Start&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent End&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; properties of each GeoFence. You can think of these as setting an “effective from” and “effective until” time range for each GeoFence.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;When I mention the “date/time associated with the event being processed”:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; TRACK_ID and GEOMETRY are probably the two most important tags you will use.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; Another important tag is TIME_START.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; If an event’s GeoEvent Definition includes a field tagged TIME_START, that is the date/time processors will associate with an event.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; If there is no field tagged TIME_START, generally a processor (or filter) will use the system time the event was received.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;This can be important when &lt;STRONG&gt;&lt;EM&gt;simulating&lt;/EM&gt;&lt;/STRONG&gt; event data. Often the attributes in the records we simulate have date/time values which are old, sometimes years old. If I simulate a set of events whose date/time values are back in 2014, and I tag one of the event’s attribute fields with TIME_START, it is unlikely that the event’s date/time will intersect a set of GeoFences whose &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent Start&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent End&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; have been set to date/time values sometime in the current year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;If you have kept the defaults for the three properties I’ve described above, then there’s not much to further you need to consider. All of your GeoFences will be &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;(Always Active)&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; – and with no temporal values specified – all GeoFences will be considered effective from the beginning-of-time until the end-of-time (meaning they will always temporally intersect a given event’s date/time).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Let’s consider a couple of Global Properties which can affect how the &lt;STRONG&gt;stateful&lt;/STRONG&gt; operations ENTER and EXIT are evaluated. You mention, in your question below, that you’ve set &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Enter&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; to &lt;STRONG&gt;&lt;EM&gt;False&lt;/EM&gt;&lt;/STRONG&gt; (even though your screenshot of the Configure Global Settings page shows the properties with their default values). &amp;nbsp;I’m assuming that if you changed either of these system property values you did so deliberately.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The GeoEvent product properties &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Enter&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Exit&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; are intended to allow users to configure the evaluation of spatial relationships between an event’s geometry and a GeoFence when the system has &lt;SPAN style="text-decoration: underline;"&gt;only one event&lt;/SPAN&gt; to work with (for a given TRACK_ID). This condition typically follows a system restart when there is no cache of prior positions for a given TRACK_ID. The default values for these properties are:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-indent: -.25in; margin: 3.0pt 0in 3.0pt .5in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Enter&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; true&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Exit&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; false&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The reason for these defaults is that we probably &lt;SPAN style="text-decoration: underline;"&gt;do&lt;/SPAN&gt; want to evaluate the very first reported position associated with a particular vessel’s TRACK_ID &lt;EM&gt;inside&lt;/EM&gt; a GeoFence as having “entered” the GeoFence even if we have not previously observed a position for that vessel &lt;EM&gt;outside&lt;/EM&gt; of the GeoFence. But we likely &lt;SPAN style="text-decoration: underline;"&gt;do not&lt;/SPAN&gt; want to be told – every time the GeoEvent product is restarted or the server machine is rebooted – that a vessel has “exited” GeoFences that it is not currently inside. More likely we want to first observe a position (associated with a particular vessel’s TRACK_ID) &lt;EM&gt;inside&lt;/EM&gt; a GeoFence before sending a notification that the vessel has exited that GeoFence.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Let’s say that I have established five static polygon GeoFences (we’ll consider &lt;EM&gt;dynamic&lt;/EM&gt; GeoFences later…) :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216323_1.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I can publish the following simple GeoEvent Service with a GeoTagger whose spatial operation is ENTER ANY :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216325_2.png" style="width: 620px; height: 257px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I then send the event illustrated to the right of the GeoEvent Service and allow the input to construct a Geomtery for me from the specified latitude and longitude values. This is the very first event ever received with the TRACK_ID “AA-1234” … so there is no prior event in any sort of cache to which GeoEvent might be able to refer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Because the &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Enter&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; system property has been left as its default &lt;STRONG&gt;&lt;EM&gt;True&lt;/EM&gt;&lt;/STRONG&gt; the event I get logged in my system file output looks like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216326_1.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Let’s say that I then reconfigure the GeoTagger processor so that its spatial operation is EXIT ANY and change the TRACK_ID of the event being received to a value GeoEvent has not yet encountered. When I post a second event whose coordinates are outside all of the established GeoFences, because the &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Exit&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; system property has been left as its default &lt;STRONG&gt;&lt;EM&gt;False&lt;/EM&gt;&lt;/STRONG&gt; the event I get logged in my system file output looks like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&lt;IMG alt="" class="image-4 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216327_2.png" style="height: auto;" /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Notice that the GeoTagger still appends an attribute field ‘GeoTags’ but because the system has never encountered an event “BB-3456” which was &lt;STRONG&gt;&lt;EM&gt;inside&lt;/EM&gt;&lt;/STRONG&gt; any of the candidate GeoFences, and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Exit&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; is &lt;STRONG&gt;&lt;EM&gt;False&lt;/EM&gt;&lt;/STRONG&gt;, the EXIT ANY condition evaluates to FALSE. The GeoTagger has no named GeoFence which the processed event has “exited”, so the value of its &lt;EM&gt;GeoTags&lt;/EM&gt; attribute is assigned a JSON &lt;EM&gt;null&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Looking at the GeoEvent Service you illustrated, I would recommend not placing a filter prior to the GeoTagger processor. Think of a GeoTagger as a special combination of a Filter and the more generic Field Enricher processor. A GeoTagger will take any event it receives, and if the Geometry associated with that event shares the specified spatial relationship with one (or more) &lt;STRONG&gt;existing, active, temporally relevant GeoFence(s)&lt;/STRONG&gt; the processor will enrich the event with the name(s) of those GeoFence(s). Otherwise the GeoTagger will enrich the event with an attribute whose value is &lt;EM&gt;null&lt;/EM&gt; (which is itself information you might want to act upon).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;You’ve indicated that you want your GeoEvent Service to generate a single e-mail notification when a vessel enters an area modeled as a polygon GeoFence, and a second single e-mail notification when a ship exits a GeoFence. I’ll assume that the GeoFence areas do not overlap and that if a second (or later) vessel position report is simultaneously outside one GeoFence (having left an area) and inside a different GeoFence (having entered an adjacent or nearby area) that it is acceptable to receive separate near simultaneous e-mail messages that the vessel has exited “Area A” and has entered “Area B”. (Note that we cannot guarantee the order of message delivery, so you might get the “exit” email before you get the “enter” email…)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I would recommend resetting the &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Enter&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: black; background: #E9F2FE;"&gt;First GeoEvent triggers Exit&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; product properties to their default values (to guard against unwanted e-mail alerts when GeoEvent is restarted). Knowing that an EXITS ANY condition will &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; evaluate True for an polygon GeoFence unless a &lt;EM&gt;previous&lt;/EM&gt; position for the vessel’s TRACK_ID was observed &lt;EM&gt;inside&lt;/EM&gt; that GeoFence, I would recommend publishing a GeoEvent Service like the following which will use a pair of GeoTagger processors, followed by filters which discard events whose &lt;EM&gt;GeoTags&lt;/EM&gt; attribute value is &lt;EM&gt;null&lt;/EM&gt;, so that you send only events of interest to a particular e-mail notification output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-5 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216328_1.png" style="width: 620px; height: 406px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;If I HTTP/POST three events in the following order:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;[{&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "TrackID":"6a0798fa-b526",&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Longitude":-111.013196,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Latitude":32.004278&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;}]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;[{&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "TrackID":"6a0798fa-b526",&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Longitude":-111.033795,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Latitude":31.936708&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;}]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;[{&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "TrackID":"6a0798fa-b526",&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Longitude":-110.961698,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp; "Latitude":31.950109&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .2in;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;}]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Here’s what my two output log files look like – note the values of the timestamps:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Entry “GF-Alpha”&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #1f497d; font-size: 10.0pt;"&gt;1471046&lt;/EM&gt;&lt;STRONG style="color: #1f497d; font-size: 11.0pt;"&gt;197&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; seconds&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Exit “GF-Alpha”&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #1f497d; font-size: 10.0pt;"&gt;1471046&lt;/EM&gt;&lt;STRONG style="color: #1f497d; font-size: 11.0pt;"&gt;308&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; seconds &amp;nbsp;(~48 seconds later)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp; Entry “GF-Beta”&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #1f497d; font-size: 10.0pt;"&gt;1471046&lt;/EM&gt;&lt;STRONG style="color: #1f497d; font-size: 11.0pt;"&gt;655&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; seconds&amp;nbsp; (~48 seconds later)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in; text-indent: .5in;"&gt;&lt;STRONG style="color: #1f497d; font-size: 11.0pt;"&gt;--- ENTRY LOG ---&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;--- EXIT LOG ---&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-6 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216329_1.png" style="height: auto;" /&gt;&lt;IMG alt="" class="image-7 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/216330_2.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Now, I mentioned earlier that we would consider dynamic GeoFences later.&amp;nbsp; Something you should recognize about the &lt;STRONG&gt;stateful&lt;/STRONG&gt; operations ENTER and EXIT is that the GeoFences you intend to use to test spatial relationships with events you receive &lt;EM&gt;must exist&lt;/EM&gt;. If an event is received whose Geometry &lt;SPAN style="text-decoration: underline;"&gt;would have&lt;/SPAN&gt; intersected a GeoFence (if one existed) and a GeoFence is then created … the event has not technically “entered” the area because it was not first observed outside the area. When the event’s location moves so that it no longer intersects the area &lt;STRONG&gt;you do not get an EXIT&lt;/STRONG&gt; because, again, the event never technically “entered” the area (the GeoFence did not exist when the original event position was received).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;If you are synchronizing your GeoFences or doing anything which might remove / refresh the set of GeoFences registered with GeoEvent – and you are receiving and processing events at the same time – you should be prepared that stateful event processing might produce unexpected results. The ENTER and EXIT operations are stateful and rather strict in their definitions. If GeoEvent does not first observe an event location &lt;EM&gt;outside&lt;/EM&gt; a GeoFence it will not evaluate a later event as having “entered” the GeoFence. Likewise, if GeoEvent does not first observe an event location &lt;EM&gt;inside&lt;/EM&gt; a GeoFence it will not evaluate a later event as having “exited” the GeoFence.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Loading GeoFences, actively synchronizing GeoFences, changing a GeoFence’s Active True/False state, setting or updating a GeoFence’s &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent Start&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #505051; background: white;"&gt;Time Extent End&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; property values … are all actions which can affect the evaluation of a received event’s spatial relationship against a set of candidate GeoFences. And if GeoEvent does not actually observe an event &lt;EM&gt;inside&lt;/EM&gt; (or &lt;EM&gt;outside&lt;/EM&gt;) a GeoFence it may not evaluate ENTER and EXIT the way you might expect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I hope this information helps –&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;RJ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Aug 2016 14:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-get-one-single-entry-message-and-one-single/m-p/635068#M2825</guid>
      <dc:creator>JiehuaYi</dc:creator>
      <dc:date>2016-08-13T14:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get one single entry message and one single exit message once a ship enters in a geofence area</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-get-one-single-entry-message-and-one-single/m-p/635069#M2826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With RJ's help, the final solution in this case should be:&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: medium;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri',sans-serif; font-size: 11pt;"&gt;Stop your GeoEvent Windows service, locate the file &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Lucida Console'; font-size: 9pt;"&gt;com.esri.ges.manager.servicemanager.cfg&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri',sans-serif; font-size: 11pt;"&gt; (beneath …\ArcGIS\Server\GeoEvent\etc) and edit the file to change the &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Lucida Console'; font-size: 9pt;"&gt;maxCacheSize&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri',sans-serif; font-size: 11pt;"&gt; from its default 1000 to 3000.&amp;nbsp; Then restart your GeoEvent Windows service.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;With this change, we are able to see the single Enter message and single Exit message. That is good. However, not all the ships enter and exit info are caught. The cache size maybe need to be increased more.&lt;/P&gt;&lt;P&gt;From the system performance point of view, we have to keep only Enter message and don't setup for EXIT ANY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 14:51:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-get-one-single-entry-message-and-one-single/m-p/635069#M2826</guid>
      <dc:creator>JiehuaYi</dc:creator>
      <dc:date>2016-08-19T14:51:50Z</dc:date>
    </item>
  </channel>
</rss>

