Wait Action Configuration
What is a Wait Action?
actions Waithold any records passed into them until all previous actions have finished processing. The Wait action then outputs a count attribute containing the sum of all records it has received but it does not pass through any of the attributes it has received.
In PhixFlow v12.1+, the Wait action does pass through the last received record, in addition to the count attribute, once it has finished processing all input records.
For the full list of Wait action , see PropertiesWait Action Properties.
Action Setup
Input Connection Points: A single input connection point containing no mappings and no ability to create mappings
- Output Attributes: A pre-configured count output attribute which contains a count of the number of records received, produced once all previous actions have completed their processing
- Always generates an output record regardless of the number of input records (including 0)
- Output Connection Points: can have any number of output connection point(s) which can be used to pass the count attribute to other action(s)
- does not pass through any of the attributes it has received (PhixFlow v12 and older)
Considerations
When a action is used Waitinside of a , i Loopt generates a single output record for each iteration of the loop, once all actions in the iteration have completed their processing. This is regardless of the number of input records (including 0).
For more on Loops, see Loop Action Configuration.
Creating Wait Actions
- Click and drag the Wait icon in the toolbar onto the canvas
- Enter a name for the Wait action, then select Create Action
- Connect the action's input connection point Wait input action or other action to the
- Connect the action's output connection point Wait
- The Mappings window will open where the count attribute can be mapped out
output action or other action to the
Example Uses
The action is useful in a number of use cases: Wait
- Where multiple records require complex processing and only once this has finished, a separate single process is required. For example, new records must be saved before continuing and View Action is used post Wait Action to then continue processing.
Handling special case logic for where connectors receive no records, e.g. actions, Gateway For Each actions or actions returning no response records, or no records in a grid View
With parallel connectors and a Converge action - where you need to output a final record after all other actions have completed, such as, to trigger the end of a transaction, or to write out a final end record
For action Wait, see PropertiesWait Action Properties.