PipeLoopExecutorValve
Valve for executing a Pipe in a loop.
Loop continues until one of the following conditions is fulfilled:
- Executed flow returns an successful and empty response
 - Max number of iterations are reached (configurable value, default: 1)
 
Note: This valve was designed for generating unique strings like user ids and email addresses, based on a pattern and an incrementor value, where the incrementor value is incremented in the loop and the uniqueness of the resulting value is verified by calling a pipe. Other usage may or may not be possible.
Properties
Example Configuration
{
  "name": "PipeLoopExecutorValve", 
 "enabled": "true",
 "config": {
    "pipe_id": "validateEmail",
    "value": "{{request.first_name}}.{{request.last_name}}.{{incrementor}}@mycompany.com",
    "max_iterations": "5",
    "dest": "mail"
  }
}