Event, Event Type, and Context Properties
- Last UpdatedNov 03, 2021
- 1 minute read
Various event types are exposed by the AVEVA Batch Management Server. For each event type, context properties are available. Event system properties are shared by all event types.
When an Event object is processed in script, system properties are available as actual properties on the Event object (for example, EventObj.EventType), while the context properties must be retrieved from a generic property collection using the GetProperty() method. For example, EventObj.GetProperty("CampaignId").
When setting up subscription filters in script, system properties and context properties are passed as names into the AddEventFilter() and NarrowEventFilter() methods. For example, the following shows a system property and a context property being added to a filter.
filterId = MonitorEvents.AddEventFilter( connId, "EventType", "eq", "Batch" );
MonitorEvents.NarrowEventFilter( connId, filterId, "CampaignId", "eq", "C123" );
Related Links
- Event System Properties
- "Batch" Event Type Properties
- "Equipment" Event Type Properties
- "UnitProcedure" Event Type Properties
- "Operation" Event Type Properties
- "Phase" Event Type Properties
- "MaterialInput" Event Type Properties
- "MaterialOutput" Event Type Properties
- "Custom" Event Type Properties
- "BatchError" Event Type Properties