An until StandBy node can be inserted into a flow.In the node it is possible to:
If the defined conditions are not met, the flow execution is suspended until they are met or until the deadline is exceeded.
The image shows the node form, which includes the following fields:
Note: The conditions defined in the condition builder and in the script are combined with an AND operator, both of which must be met for the node to proceed.
The node performs a check on the model when the flow runs. Depending on the outcome of the condition, the flow continues or the node enters a waiting state.
If the node enters the waiting state, the next time you save a model change, it is re-evaluated and its status updated accordingly:
If a condition expires, the flow resumes its execution normally. In this case, the Standby node returns the expired output variable set to true, indicating that execution continued but the condition was not met within the expected timeframe.
Note: Deadline checking is performed by a cron job every minute.
The node outputs the following data:
In this example, a flow is created that, when a model is created or modified, generates the various stages. Each stage is managed by an Until Standby node, which proceeds to the next stage only when the defined conditions are met.
In the example below, a flow was created to determine the state of an operation.
The flow is divided into 3 stages: Taken in charge, In progress and Concluded.
The transition between stages is handled by two Standby Until, which respectively verify:
By doing so we can obtain in the operation form a situation like this: