Using Data Selection to publish types and events to CONNECT data services
- Last UpdatedJul 31, 2024
- 2 minute read
Sequential creation of data selection types and data
The AVEVA Events to CONNECT agent creates Types and Data in a sequential manner so that you do not have to toggle the selected property every time. For example, when you create data selection Types and Actions:
-
Create a data selection property Type.
The Type value can be one of the following:
-
AuthorizationTags
-
AssetTypes
-
Enumerations
-
ReferenceDataTypes
-
EventTypes
-
Assets
-
ReferenceData
-
Events
-
-
Create a data selection property Action.
The Action value can be one of the following:
-
Create
-
Update
-
Delete
-
Patch
Note: The Action property supports the Patch action type for assets.
-
-
When AVEVA Events to CONNECT polls for data at a scheduled interval or when data selection receives an update, the following data selection items will always be processed in sequential order:
-
AuthorizationTags
-
AssetTypes
-
Enumerations
-
ReferenceDataTypes
-
EventTypes
Note: The processing order of each of the above data selection items is always Delete, Create, and then Update.
-
4. Once the Types have been created, the following data selection items will be polled in parallel:
-
Assets
-
ReferenceData
-
Events
Note: The processing order of each of the above data selection items is always Delete, Create, Update, and then (for Assets only) Patch.
Sequential data polling sequence
Data is always polled using the following sequence:
-
Delete the Data in parallel.
-
Delete the Types in reverse sequential order.
-
Create or update the Types in sequence.
-
Create or update the Data in parallel.
Sequential data and type publication
The order in which Types and then Data are sent to CONNECT data services is always Delete, Create and then Update. Consider the following example:
-
The user configures one Data selection item for each type with the Create action.
-
The user configures three Event Types data selection items with the Delete action.
-
The user configures five Asset Types data selection items with the Create action.
-
The user configures five Reference Data data selection items with the Create action.
-
The user configures 15 Events data selection items with the Create action.
-
The user configures three Events data selection items with the Delete action.
For the configuration described above, the following sequence occurs on each scan cycle:
-
The AVEVA Events to CONNECT agent will delete the Events in parallel (step 6 in the example above).
-
The Event Types will be deleted.
-
The Asset Types will be created.
-
The Types will be created.
-
The Reference Data will be created.
-
The Events will be created.
Notes:
- You can omit the scheduleId property for data selection items that are Types (AuthorizationTags, AssetTypes, Enumerations, ReferenceDataTypes, EventTypes). This ensures that types are polled only when the agent is started or when data
selection items are updated.
- You can keep a valid scheduleId for data selection items that are Data (Assets, ReferenceData, Events). This ensures that the AVEVA Events to CONNECT agent polls for them every scan cycle.