Generic Element Watchdog Governance Action Service

The Generic Element Watchdog Governance Action Service detects changes to requested elements and initiates a governance action process when they occur. It has two modes of operation:

It is possible to listen for:

Figure 1

Figure 1: Operation of generic element watchdog governance action service


This connector uses the Governance Action OMES running in the Engine Host.

The following properties that can be set up in its connection’s configuration properties and overridden by the request parameters.

The interestingTypeName property takes the name of an element type. If set, it determines which types of elements are to be monitored. This monitoring includes all subtypes of this interesting type. If interestingTypeName is not set the default value is OpenMetadataRoot - effectively all elements with an open metadata type.

The instanceToMonitor property takes the unique identifier of a metadata element. If set, this service will only consider events for this instance. If it is not set then all elements of the interesting type are monitored unless there are one or more action targets that are labelled with instanceToMonitor when this service starts. If the action targets are set up then these are the instances that are monitored.

The rest of the properties are the governance action processes to call for specific types of events. The property is set to the qualified name of the process to run if the type of event occurs on the metadata instance(s) being monitored. If the property is not set, the type of event it refers to is ignored.

This is its connection definition to use when creating the definition of the governance action service using the Governance Engine OMAS. Remove the configuration properties that are not required. Replace {typeName}, {guid} and {processQualifiedName} as required.

   "connection" : { 
                      "class" : "Connection",
                      "connectorType" : 
                           "class" : "ConnectorType",
                           "connectorProviderClassName" : "org.odpi.openmetadata.adapters.connectors.governanceactions.watchdog.GenericElementWatchdogGovernanceActionProvider"           
                              "interestingTypeName": "{typeName}",
                              "instanceToMonitor": "{guid}",
                              "newElementProcessName": "{processQualifiedName}",
                              "updatedElementProcessName": "{processQualifiedName}",
                              "deletedElementProcessName": "{processQualifiedName}",
                              "classifiedElementProcessName": "{processQualifiedName}",
                              "reclassifiedElementProcessName": "{processQualifiedName}",
                              "declassifiedElementProcessName": "{processQualifiedName}",
                              "newRelationshipProcessName": "{processQualifiedName}",
                              "updatedRelationshipProcessName": "{processQualifiedName}",
                              "deletedRelationshipProcessName": "{processQualifiedName}"

Governance Action Settings

When this governance action service is called through a GovernanceAction it supports the following options.

Request Types and Parameters

There are two request types that control its modes of operation:

Any of the configuration properties can be overridden by request parameters of the same name.

Action Targets

The instanceToMonitor property can be supplied as a name action target. Using action targets allows the instance to be dynamically controlled and for multiple instances to be monitored.

Completion Status and Guards

This service will only complete and produce a guard if it encounters an unrecoverable error or it is set up to listen for a single event and that event occurs.

On completion, this governance action service uses:

Examples of use

License: CC BY 4.0, Copyright Contributors to the ODPi Egeria project.