Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PropertyDescriptionDefaultTypeRequired
enable
Enable pipeline configuration for execution.truebooleanNo
stages
List of stages to be executed by the pipeline.
list of stagesYes
max_iterations
Maximum number of iterations the pipeline can perform.2integerNo
default_response
In case the maximum iterations are reached, the value to merge with the final response.nullobject or nullNo
exit_field_condition
Field of the final response where values will be checked; a JMESPath expression for path formats.
stringYes
match_any_values
If any value in this list is in the field, the pipeline will exit the loop.nullarray or nullNo
match_all_values
If all the values in this list are in the field, the pipeline will exit the loop.nullarray or nullNo
match_none_of_values
If none of the values in this list are in the field, the pipeline will exit the loop.nullarray or nullNo
stages_before_loop
List of stages to be executed by the pipeline

[ ]

list of stagesNo
stages_after_loop
List of stages to be executed by the pipeline

[ ]

list of stagesNo

Example Usage

Code Block
languagepy
themeDJango
PIPELINE = PipelineLoop(
    enable=True,
    stages=[self.stage1, self.stage2],
    max_iterations=3,
    exit_field_condition='prime.a',
    match_any_value=[1],
    match_none_value=[5], 
    match_any_value=[2, 3], 
    default_response={'prime': {'a': 0, 'msg': 'Default message overriding part of the original'}}
	stages_before_loop=[stage0],
    stages_after_loop=[stage3],
)