EventType
EventTypes are system events being distributed over ActiveMq when certain events happen. These can be configured via API or via Configuration UI.
VidiControl Product Events
This list shows all VidiControl product events. There may be more, adapter-specific events. Please refer to the Placeholders section of this document for a list of placeholders that can be used.
Event Name | Description |
---|---|
Swp08Router.switchFailed | Triggered when router switch failed. |
JSON
| |
Swp08Router.switchSuccess | Triggered when router switch was successful and switching was triggered by VidiControl (and not via external switch, panel, etc). |
JSON
| |
Swp08Router.switchExternal | Triggered when router successfully switched and the switch was triggered externally (via panel, etc. VidiControl did not initiate the switch.) |
CODE
| |
VidiControl.chunkDeleted | Triggered when a chunk has been successfully deleted. |
JSON
| |
VidiControl.chunkChanged | Triggered when a chunk has been successfully changed. |
JSON
| |
VidiControl.chunkCreated | Triggered when a chunk has been successfully created. |
CODE
| |
VidiControl.vidiCoreItemCreated | Triggered when an item (VidiCore) has been successfully created. |
JSON
| |
VidiControl.commandExecutionTimeOutError | Triggered when the executiontime of a command is timed out. |
JSON
| |
VidiControl.commandExecutionInvalidDeviceError | Triggered when a command refers to an invalid (deleted or orphaned) device. |
JSON
| |
VidiControl.commandExecutionDeviceStatusError | Triggered when the device responds with an error while command execution. |
CODE
| |
VidiControl.commandExecutionDeviceOffline | Triggered when the device attached to the command is currently offline. |
JSON
| |
VidiControl.commandExecutionDeviceDeleted | Triggered when the device attached to the command is in state ‘Deleted’. |
CODE
| |
VidiControl.unknownCommandExecutionError | Triggered when the device does not respond (caused by connection issues, misconfiguration etc). |
JSON
| |
VidiControl.commandStatusChanged | Triggered when the state of a command changed caused by command execution. |
JSON
| |
VidiControl.chunkStatusChanged | Triggered when the state of a chunk changed caused by command execution. |
JSON
| |
VidiControl.deviceStateChanged | Triggered when the state of a device was changed. |
JSON
| |
VidiControl.recurrenceChanged | Triggered when a recurrence object was changed. |
JSON
| |
VidiControl.recurrenceDeleted | Triggered when a recurrence object was deleted. |
JSON
| |
VidiControl.vidiCoreRelationChanged | Triggered when a child/parent releation in vidiCore was changed |
JSON
| |
VidiControl.virtualChunkDeleted | Triggered when a virtual chunk was deleted |
JSON
|
Content JSON Datastructure
The Content object consists of two fields, action
and input
. Depending on the action, the input structure may vary.
The Content JSON structure is defined in the configuration depending on the message consumer needs. All examples below show the frontend needs.
Actions
In this section, the different action values with their corresponding input structures are described. It is allowed to configure unlimited actions per event. Even several actions of the same type are allowed.
NotifyClient
Consumer of this action is the ProxyAPI to notify web clients about an update.
Action: notifyClient
Input:
Field | Type | Description | Example |
---|---|---|---|
Timestamp | string |
| |
ChunkId | string |
| |
UpdatedNeeded | boolean | Whether the GUI should be updated regarding this event. | true |
MessageType | string |
| |
Emitter | string |
| |
Severity | string | The severity of the the Message. Possible Values: Information, Warning, Error | Information |
Message | object | Message to be displayed in different languages |
CODE
|
StartWorkflow
Action: startWorkflow
Input:
Field | Type | Description | Example |
---|---|---|---|
Name | string | The name of the Workflow to start | WF_Import |
Version | string | The version of the workflow to start | latest |
Data | object | this field contains a list of parameters with name, type and values |
JSON
|
NotifyCustom
Consumer of this action is the ActiveMq topic to notify external moules listening.
Action: notifyCustom
Input can be freely configured and depends on the actual configuration and consumer. Example for Update Metadata on VidiControl.chunkChanged event:
[
{
"action": "notifyClient",
"input": {
"TimeStamp": "{-{Placeholder_TimeStamp}-}",
"ChunkId": "{-{Placeholder_ExternalChunkId}-}",
"UpdateNeeded": true,
"MessageType": "{-{Placeholder_MessageType}-}",
"Emitter": "{-{Placeholder_Emitter}-}",
"Severity": "Information",
"Message": [
{
"Lang": "en_US",
"Text": "The chunk has been changed"
},
{
"Lang": "de_DE",
"Text": "Der Chunk wurde verändert"
}
]
}
},
{
"action": "notifyCustom",
"input": {
"operation": "updateMetaData"
}
}
]
Placeholders
These Placeholders in the system are substituted with their current value.
Not all placeholders are available in all events. Some placeholders are only available for Swp08Router events.
Events which do not belong to a physical chunk or command are not supporting placeholders depending on a chunk (e.g. VidiControl.virtualChunkDeleted, VidiControl.DeviceStateChanged)
Placeholder | Scope | Example Value |
---|---|---|
{-{Placeholder_ExternalBookingDefinitionId}-} | All | CM0B |
{-{Placeholder_ExternalBookingId}-} | All | CYOB |
{-{Placeholder_ExternalChunkId}-} | All | JHG3 |
{-{Placeholder_ExternalCommandId}-} | All | UZGS |
{-{Placeholder_VCCollectionId}-} | All | COLLECTION-VX-654241 |
{-{Placeholder_VCItemId}-} | All | ITEM-VX-5746 |
{-{Placeholder_VCSequenceItemId}-} | All | ITEM-VX-6732 |
{-{Placeholder_MessageType}-} | All | chunkStatusChanged |
{-{Placeholder_Emitter}-} | All | ChunkProcessor |
{-{Placeholder_ErrorMessage}-} | All | Error while executing … |
{-{Placeholder_ErrorType}-} | All | chunkStatusChanged |
{-{Placeholder_TimeStamp}-} | All | 2022-11-03T12:08:31.5434113Z |
{-{Placeholder_ChunkExecutionState}-} | All | Pending |
{-{Placeholder_InportLabel}-} | Swp08Router.* | Source_002 |
{-{Placeholder_OutportLabel}-} | Swp08Router.* | FEED22 |
{-{Placeholder_ExternalInportId}-} | Swp08Router.* | AG |
{-{Placeholder_ExternalOutportId}-} | Swp08Router.* | 0B |
{-{Placeholder_ExternalDeviceId}-} | VidiControl.DeviceStateChanged | oNo |
{-{Placeholder_DeviceState}-} | VidiControl.DeviceStateChanged | Online, Offline, Deleted |
{-{Placeholder_VirtualChunkId}-} | VidiControl.virtualChunkDeleted | vid-M2b-Gw8l5G |
{-{Placeholder_VCParentCollectionId}-} | VidiControl.vidiCoreRelationChanged | COLLECTION-VX-654241 |
{-{Placeholder_VCRelationType}-} | VidiControl.vidiCoreRelationChanged | CollectionRemovedFromParentCollection |