Template Flows
If you have flows that do the same thing but only differ by parameters, you may want to create a template flow. A template flow is tagged with template
and can not be executed.
The Warehouse sample app has a few template flows to create new Customer, Producer, and Shipper flows:
![](../__attachments/1241841763/image-20210320-100111.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)
All these templates have flow parameters defined. You can view/change it by pressing this button:
![](../__attachments/1241841763/image-20210320-100257.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)
For example, here are the flow parameters for the Customer template flow:
![](../__attachments/1241841763/image-20210320-100327.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)
To create a new Customer, we copy the template flow by pressing this button:
![](../__attachments/1241841763/image-20210320-100424.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)
Give it a new name:
![](../__attachments/1241841763/image-20210320-100459.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)
Then fill in the flow parameters of the new flow:
![](../__attachments/1241841763/image-20210320-100704.png?inst-v=57e5ca98-7f43-4ba8-b604-92fea0b0cd31)
And you can activate it.