Edit on GitHub

While Flow

A schema that is used to validate a part of Laboperator workflow templates.

A while loop flow of steps or nested flow control schemas. The while loop will be repeated as long as a condition is met. The while loop will never be executed if the conditions evaluates to false initially. Once the condition evaluates to a falsy value the loop is broken and the while loop flow is considered completed.

While Flow
whilerequired
reference
Script

The condition has access to all global fields of the workflow. Local step fields cannot be referenced in a condition. Any string result or numerical result other then zero will be considered truthy and trigger execution of the then workflow. A falsy value will trigger execution of the else workflow.

dorequired
reference
Flow Control
Examples:
while: field1 > 100
do:
  - step1
  - step2
while: field1 != field2
do: step3
Where is this used?
Other schemas that have a reference ($ref) to this schema.