ExpressionHandler

Description:

Executes an action containing an expression written in MVEL or SpEL. The action is usually created by a rules engine. Action objects executed with this Handler should contain "command" and "type" attributes.

Additional Details...

Tags:

rules, rules engine, action, action handler, expression language, MVEL, SpEL

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Default Expression Language Typedefault-expression-language-typeMVEL
  • MVEL
  • SPEL
If an expression language type is not provided as an attribute within an Action, the default expression language that should be used to compile and execute action. Supported languages are MVEL and Spring Expression Language (SpEL).
Enforce Action Typeaction-handler-enforce-typeThe Action Type(s) that should be supported by this handler. If provided any other type an exception will be thrown. This can support a comma delimited list of types (e.g. ALERT,LOG)
Supports Expression Language: true (will be evaluated using variable registry only)
Enforce Levelaction-handler-enforce-type-levelIGNORE
  • IGNORE
  • WARN
  • EXCEPTION
If specific action types are enforced, this setting specifies whether the action should be ignored, a warning should be logged or if an exception is thrown. Default is to ignore the received action.

State management:

This component does not store state.

Restricted:

This component is not restricted.

System Resource Considerations:

None specified.