Snap type: | Read | |||||||
---|---|---|---|---|---|---|---|---|
Description: | This Snap forces a pipeline to stop with a failed status if it receives more records than the user-defined threshold. | |||||||
Prerequisites: | [None] | |||||||
Support and limitations: | Works in Ultra Task Pipelines.
| |||||||
Account: | Accounts are not used with this Snap. | |||||||
Views: |
| |||||||
Settings | ||||||||
Label | Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | |||||||
Threshold limit | Required. The maximum number of input records to be received by the Snap. Example: 10 Default value: 0 | |||||||
Exit error message | The message to be displayed when the error occurs. Default value: Exceeded threshold limit | |||||||
In this example, you have a list of documents, and you want to filter the first six input documents based on the number they contain in a specific field. You want all odd numbers routed into one branch, and all the even numbers, into another. To do so, you create a parent and child Pipeline.
You first design the child Pipeline.
$num
field into a branch labeled Even, and all documents containing odd numbers into a branch labeled Odd.Design the parent Pipeline to accept multiple documents and trigger one child Pipeline execution for all the input documents, together.
$num
field contains even numbers. In the four remaining documents, $num
contains odd numbers.