ScriptEventHookProvider
Hook provider for invoking a shell script that has been written by a user and placed on a file system that is accessible by the NiFi Registry instance that the provider is configured for.
<eventHookProvider>
<class>org.apache.nifi.registry.provider.hook.ScriptEventHookProvider</class>
<property name="Script Path"></property>
<property name="Working Directory"></property>
<!-- optional -->
<property name="Whitelisted Event Type 1">CREATE_FLOW</property>
<property name="Whitelisted Event Type 2">UPDATE_FLOW</property>
</eventHookProvider>
Property Name | Description |
---|---|
|
Working directory from where the commands will be executed. |
|
Full path to a script that will executed for each event. The arguments to the script will be the event fields in the order they are specified for the given event type. |