Generic Folder Watchdog Governance Action Service

The Generic Folder Watchdog Governance Action Service detects changes to the assets in a specific folder 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 folder 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 DataFile type. If set, it determines which types of assets are to be monitored. This monitoring includes all subtypes of this interesting type. If interestingTypeName is not set the default value is DataFile - effectively all files with an open metadata type.

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.GenericFolderWatchdogGovernanceActionProvider"           
                              "interestingTypeName": "{typeName}",
                              "newElementProcessName": "{processQualifiedName}",
                              "updatedElementProcessName": "{processQualifiedName}",
                              "deletedElementProcessName": "{processQualifiedName}",
                              "classifiedElementProcessName": "{processQualifiedName}",
                              "reclassifiedElementProcessName": "{processQualifiedName}",
                              "declassifiedElementProcessName": "{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 folderTarget property can be supplied as a named 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.

In which case, this governance action service uses:

It is also possible to shutdown the governance action service by setting

in the governance action.

Examples of use

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