PostProcessingDefaultParameters

The name of a configuration section that defines default values for parameters for your Lua post-processing scripts.

This parameter specifies the name of a section in the NiFi Ingest configuration file that contains default values for parameters to use in your post-processing scripts. You must create this section and add a list of parameter value pairs for the default values.

When NiFi Ingest calls the post-processing script, if you do not add parameters programatically, NiFi Ingest adds these default parameters to the Lua user parameters object used by the Lua post-processor. The Lua post-processor respects any session overrides, for example when you use a configuration fragment to update the default parameters.

For example:

[Eduction]
PostProcessingDefaultParameters=MyLuaParameters

[MyLuaParameters]
Greeting=Hello
Price=15

This example means that, with no further parameters added programatically, the following Lua post-processing script prints both of these entries passed in params:

function processmatch(edkmatch, params)
   for key, value in pairs(params) do
      print(string.format("%s -> %s", key, value))
   end
   return true
end

NOTE: The default values that you set apply to all your configured post-processing scripts.

Type: String
Default:  
Required: No
Configuration Section:

Any section that you have defined for Eduction settings

Example:

[Eduction]
PostProcessingDefaultParameters=MyLuaParameters

[MyLuaParameters]
Greeting=Hello
Price=15

See Also:

Script

Entities

ProcessEnMasse