Flow Basics
This chapter outlines the very basic structure of a flow. A flow can be much more complex. You may have a look at the Store
flow of the Warehouse sample app.
Flow Inputs
A flow is invoked by receiving messages from an Input
component which can be one of these:
![](../__attachments/1241776205/image-20210319-152820.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)
Adding Flow Components
Once you receive a message from an Input
, you may want to process it and attach flow components that you find in the various flow component libraries:
![](../__attachments/1241776205/image-20210319-160129.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)
Flow Storage
When a message has been processed, it is gone. To store messages to process it later or to compute and analyze them, use a Memory
or MemoryGroup
component:
![](../__attachments/1241776205/image-20210319-160240.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)
Flow Outputs
Once processing is finished, you route the resulting messages to an Output
component:
![](../__attachments/1241776205/image-20210319-160436.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)
Timer
There are Timer
components available if your flow needs to be invoked timer-driven:
![](../__attachments/1241776205/image-20210319-160633.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)
Start/Stop
You can also execute a flow when it starts or stops:
![](../__attachments/1241776205/image-20210319-160910.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)