Describe Event Behavior Rules

464
3
Jump to solution
03-31-2026 01:42 PM
NEGraf
by
New Contributor

I am using the arcpy describe option to view events and their rules, following this example:

https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/locationreferencingdataset-properties.htm

What is returned is a JSON format with "ActivityType" and "BehaviorType" as codes.  Does anyone know where to find the what the codes mean? Here is an example of the output:
[
{
"LrsId": "{BC081F2A-6B2F-4A9E-9BA1-1569499FBFB9}",
"NetworkId": 1,
"EventTableId": "{575E204F-8875-401C-8280-F16950E00A07}",
"EventBehaviors": [
{
"ActivityType": 1,
"BehaviorType": 1
},
{
"ActivityType": 2,
"BehaviorType": 1
},
{
"ActivityType": 3,
"BehaviorType": 1
},
{
"ActivityType": 4,
"BehaviorType": 4
},
{
"ActivityType": 5,
"BehaviorType": 1
},
{
"ActivityType": 6,
"BehaviorType": 4
},
{
"ActivityType": 7,
"BehaviorType": 4
},
{
"ActivityType": 12,
"BehaviorType": 6
},
{
"ActivityType": 13,
"BehaviorType": 1
}
]
}
]

There is a domain in the Roads and Highways database that seems to correspond to ActivityTypes 1-7, but not 12 and 13.  I have not found anything for BehaviorType. 

 

Regards,

Nick

 

1 Solution

Accepted Solutions
James_Blouin
Occasional Contributor

Hey Nick. Following up on the information in Clive and Ayan's posts, see below for coded value Activity Type and Event Behavior tables.

Note: This is not authoritative. The information in MnDOT's lrsMetadata eventBehaviorRules seems to contain event tables and values no longer in use. I'm assuming those are related to ArcMap R&H.

I used these references to compile the tables (thanks to Clive, Ayan, and RHUG group for the info):

  • dActivityType domain in the LRS database
  • eventBehaviorRules in lrsMetadata
  • Schema Report
    • The "LR" worksheet has a lookup table that helps to join EventTableId/Event ID to get Event Names)
  • Querying the Lrs Edit Log for ActivityType descriptions
  • 2019 RHUG Post
ActivityType CodeDescriptionSource
1CreateRoutedActivityType domain + queryEditLog
2CalibrateRoutedActivityType domain + queryEditLog
3ReverseRoutequeryEditLog
4RetireRoutedActivityType domain + queryEditLog
5ExtendRoutedActivityType domain + queryEditLog
6ReassignRoutedActivityType domain + queryEditLog
7RealignRoutedActivityType domain + queryEditLog
8RealignConcurrentRouteUnconfirmed - observed in eventBehaviorRules (ArcMap?)
9RealignOverlappingRoutedActivityType domain + queryEditLog
12CartoRealignqueryEditLog
13LoadRoutequeryEditLog

 

EventBehavior CodeDescriptionSource
1Stay PutSchema report + eventBehaviorRules
2MoveSchema report + eventBehaviorRules
3RetireSchema report + eventBehaviorRules
4SnapSchema report + eventBehaviorRules
5Honor Referent LocationSchema report + eventBehaviorRules
6Honor Route MeasureSchema report + eventBehaviorRules
7CoverSchema report + eventBehaviorRules

View solution in original post

3 Replies
CliveReece
Esri Contributor

Hello Nick,

Apart from ActivityTypes 1 through 7, they are not documented.  When you create an ALRS, check out the dActivityType domain for descriptions of codes 1 to 7.  To supplement that, code 12 is for Cartographic Realignment and code 13 is for Load Route. 

For the Behavior type codes, they aren't documented either since they are typically only exposed through the ArcGIS Pro Location Referencing user interfaces.  You can figure them out through some trial and error if you are inclined (i.e. 1 = Stay Put).  

Also related, the Relocate Events REST API (Relocate Event | ArcGIS REST APIs | Esri Developer) uses named constants instead of integer values when reading event behavior types (see the eventBehaviors parameter)

0 Kudos
AyanPalit
Esri Regular Contributor

@NEGraf Recommend using Generate Schema Report tool (ArcGIS Pro 3.2+) to get the report that includes LRS configuration details in a readable format as in example below: 

LRS_Schema.jpg

Ayan Palit | Principal Consultant Esri
James_Blouin
Occasional Contributor

Hey Nick. Following up on the information in Clive and Ayan's posts, see below for coded value Activity Type and Event Behavior tables.

Note: This is not authoritative. The information in MnDOT's lrsMetadata eventBehaviorRules seems to contain event tables and values no longer in use. I'm assuming those are related to ArcMap R&H.

I used these references to compile the tables (thanks to Clive, Ayan, and RHUG group for the info):

  • dActivityType domain in the LRS database
  • eventBehaviorRules in lrsMetadata
  • Schema Report
    • The "LR" worksheet has a lookup table that helps to join EventTableId/Event ID to get Event Names)
  • Querying the Lrs Edit Log for ActivityType descriptions
  • 2019 RHUG Post
ActivityType CodeDescriptionSource
1CreateRoutedActivityType domain + queryEditLog
2CalibrateRoutedActivityType domain + queryEditLog
3ReverseRoutequeryEditLog
4RetireRoutedActivityType domain + queryEditLog
5ExtendRoutedActivityType domain + queryEditLog
6ReassignRoutedActivityType domain + queryEditLog
7RealignRoutedActivityType domain + queryEditLog
8RealignConcurrentRouteUnconfirmed - observed in eventBehaviorRules (ArcMap?)
9RealignOverlappingRoutedActivityType domain + queryEditLog
12CartoRealignqueryEditLog
13LoadRoutequeryEditLog

 

EventBehavior CodeDescriptionSource
1Stay PutSchema report + eventBehaviorRules
2MoveSchema report + eventBehaviorRules
3RetireSchema report + eventBehaviorRules
4SnapSchema report + eventBehaviorRules
5Honor Referent LocationSchema report + eventBehaviorRules
6Honor Route MeasureSchema report + eventBehaviorRules
7CoverSchema report + eventBehaviorRules