Assert V2
Assert V2 allows users to create the interruption of a pipeline execution when a defined condition isn't met. Learn configuration parameters of this component.
Last updated
Assert V2 allows users to create the interruption of a pipeline execution when a defined condition isn't met. Learn configuration parameters of this component.
Last updated
Assert V2 allows you to create the interruption of your pipeline execution when a defined condition isn't met. This condition will be evaluated according to the items of the pipeline message, given that the Double Braces are used for it.
Use the Assert V2 component to guarantee a condition or interrupt the flow.
Take a look at the configuration options for the component. Parameters supported by Double Braces expressions are marked with (DB)
.
Parameter | Description | Default value | Data type |
---|---|---|---|
The component accepts any input message and can use it through Double Braces.
The component doesn't change any information of the input message when the condition is true. However, it's returned to the following component or it's used as the final answer if Assert V2 is the last step of the pipeline.
When the condition is false and the property Fail On Error is "true", the output of the component follows the standard structure:
If Fail On Error is "false":
As previously seen, you must use Double Braces expressions in the Condition field. Learn more in our documentation about Double Braces.
{{ AND( EQUALTO(message.name, "Arthur"), LESSTHAN( message.number, 40)) }}
Receiving a message:
The condition will result as "false".
{{ AND( EQUALTO(message.name, "Arthur"), LESSTHAN( message.number, 40)) }}
Receiving a message:
The condition will result as "true".
Condition (DB)
When the condition isn't true, the pipeline execution is interrupted.
{{ EQUALTO( message.number, 1 ) }}
String
Error Message
Defines the error message returned by the pipeline when the condition isn't true.
Error
String
Internal Error Message
Field where you define the internal error message when the condition isn't true.
Internal Error
String
HTTP Status Code
Return status of the component.
500-Internal server error
String
Fail On Error
If the option is activated, the execution of the pipeline with an error will be interrupted; otherwise, the pipeline execution proceeds, but the result will show a false value for the "success" property.
True
Boolean