FlowFailValve

Valve for throwing an error. This is useful in scenarios where a specific item property value should be checked – if the value is set an error should be thrown.

Valve operates on the Current Item Set and will process all Items surviving the common item filtering rules.

Properties

Name Description Default value Mandatory Supports property expansion
message The error message to be returned from the pipe. Failed by FlowFailValve No No

Example Configuration 1

{
        "name": "FlowFailValve",
        "config": { 
              "message":"User does not exist",
              "exec_if_expr":"flow.items().isEmpty()"
        }
}

Example Configuration 2

{
        "name": "FlowFailValve",
        "config": { 
              "message":"Certificate validation failed",
              "exec_if_expr":"!flow.property('cert_status').equals('GOOD')"
        }
}

Requirements