Every Flow has two distinct development environments for testing and production. Every new Flow starts in the test environment, called Workstation, by default. Once testing is complete, developers can easily deploy the Flow to production. Let's learn more about these powerful environments and why they're useful for rapid development.
When you create a Flow, you're automatically dropped into the Flow's test environment, called Workstation. You'll notice you're in Workstation mode by the environment label in the header of the Flow editor, which says Workstation in yellow. You'll also notice your Flow's unique URL has an environment label, called 'test', embedded just before the Flow's Trigger ID.
When in a selected step, simply use the Test Step button on the top right of the sidebar drawer to execute the test. Once activated, the results will appear in a window that slides from the bottom of the drawer with the appropriate response.
When you're ready to test all steps of a constructed Flow, simply use the Test Flow button on the right side of the Flow editor's header to activate the full recipe test. The sidebar drawer will convert to a test console, which indicates the result of each step.
Once you're done testing your Flow, you're ready to deploy to production. To do this, you simply need to click the Deploy button in the top right corner of the screen.
When you deploy a Flow, Buildable automatically spins up an entirely separate live environment for your Flow, called Production. You'll notice you're in Production mode using the environment label in the header of the Flow editor, which now says Production in green. You'll also notice your Flow's unique URL has an environment label, called 'live', embedded just before the Flow's Trigger ID.
If you're connecting Flows to frontend code in user apps or internal tools, you can easily set up a config that can alternate the environment label depending on whether you're activating in staging or production. This is easy because the Flow's Trigger ID (i.e., the last string of text in its Endpoint URL) is the exact same between Workstation and Production versions. The only difference is the environment label.
If you had a Flow in Workstation mode, its Endpoint URL would like this:
Once you deployed this Flow to production, its Endpoint URL would like this:
Once deployed, you can easily toggle between your Workstation (i.e., test) and Production (i.e., live) versions by clicking the environment label in the header of the Flow editor.