Select to view content in your preferred language

Send Email Output: GeoFence Field Value in Message Body

125
3
Jump to solution
3 weeks ago
EdenPunter
Occasional Contributor

I am currently using the Incident Detector processor and have Send Email Outputs for when an Incident is opened, and when it ends. 

The opening and closing conditions for the Incident Detector are based on a GeoFence which has a field called "Name".

I was hoping to include the value of the "Name" field of the GeoFence which the condition was met, inside the email body, is this possible?

I understand the GeoTagger processor can achieve this however it seems to replicate the Incident Detectors GeoFence check functionality, but doesn't manage the "Incident" as such.

The current design is:

GeoEvent.png

Thanks,

Eden

0 Kudos
1 Solution

Accepted Solutions
GregoryChristakos
Esri Contributor

@EdenPunter - There's a few ways you could go about capturing the "Name" field as part of the incident. It might help to share how exactly you have your incident detector and filters configured.

Absent of that information, I would consider putting a GeoTagger processor between the Input and the Incident Detector that simply serves to capture the name of a geofence when an intersection or some other spatial operation that isn't enter/exit occurs. Most of the time the geotag field wont have a value for "Name", but when it does, you could factor that into your opening condition.

For example, you could set your opening condition to when your tracked asset enters a geofence and the "Name" field is not null. This will ensure that an incident is created only when the incident has been observed entering a geofence; and you'll also have the name of that geofence on hand.

To make sure you keep the "Name" field as part of the incident, you'll also want to ensure you have the Incident Detector setting "Keep Source Fields" set to yes. By setting this to yes, you'll keep the original schema of your tracked asset before the incident detector. Put another way, you'll keep the "Name" field that was populated with the name of the geofence from the GeoTagger Processor.

The closing condition might require a bit of creativity as well, but the TLDR is to preface the incident detector with the geotagger to capture the name of geofences + set "Keep Source Fields" to yes to not throw away the field that has the name of the geofence.

View solution in original post

0 Kudos
3 Replies
GregoryChristakos
Esri Contributor

@EdenPunter - There's a few ways you could go about capturing the "Name" field as part of the incident. It might help to share how exactly you have your incident detector and filters configured.

Absent of that information, I would consider putting a GeoTagger processor between the Input and the Incident Detector that simply serves to capture the name of a geofence when an intersection or some other spatial operation that isn't enter/exit occurs. Most of the time the geotag field wont have a value for "Name", but when it does, you could factor that into your opening condition.

For example, you could set your opening condition to when your tracked asset enters a geofence and the "Name" field is not null. This will ensure that an incident is created only when the incident has been observed entering a geofence; and you'll also have the name of that geofence on hand.

To make sure you keep the "Name" field as part of the incident, you'll also want to ensure you have the Incident Detector setting "Keep Source Fields" set to yes. By setting this to yes, you'll keep the original schema of your tracked asset before the incident detector. Put another way, you'll keep the "Name" field that was populated with the name of the geofence from the GeoTagger Processor.

The closing condition might require a bit of creativity as well, but the TLDR is to preface the incident detector with the geotagger to capture the name of geofences + set "Keep Source Fields" to yes to not throw away the field that has the name of the geofence.

0 Kudos
EdenPunter
Occasional Contributor

Thanks @GregoryChristakos that worked. 

The incident detector is checking if a data point enters one of three Geofences. Within the GeoTagger 'GeoFence(s)' parameter do you know how I can define multiple GeoFences? The documentation refers to using regular expressions, what would the format be for using multiple Categories and all names i.e (Port|Airfield|Depot/.*} ?

https://enterprise.arcgis.com/en/geoevent/11.3/analyze/geotagger-processor.htm#:~:text=the%20process... 

Thanks,

Eden

0 Kudos
EdenPunter
Occasional Contributor
0 Kudos