Flows
Flows are the core building blocks of automation in Flowize. A flow defines the steps that should happen when data enters your project.
Each flow has only one start point and one or more endpoints, as we may perform different actions depending on the output of others. The overview shows all the flows which have been set up in our project.
When you enter in Flows you get directly to the Active flows; in the top bar you can navigate to Inactive flows and Error handling flows.
A flow can have one of the following statuses:
| Status | Description |
|---|---|
| DRAFT | This is the initial status of any flow when we create it. The flow won't process any data record while in this status |
| PUBLISHED | The flow is ready to process data records and cannot be edited |
| PAUSED | The flow won't process new data records until it is resumed |
| INACTIVE | The flow won't receive new data records anymore |
Flows can be passed to Inactive once they have been PUBLISHED. However, you can re-activate a flow anytime.
Flow actions
From the overview table you can execute the following actions that can vary depending on the status of the flow and your permissions:
| Status | Action |
|---|---|
| Open/View | It will take you to the flow designer view. Also double-clicking on the table row will perform this action. |
| Copy | It generates a copy of the flow |
| Test | It allows you to insert test data records into the flow |
| Publish | It publishes the flow, only for "Draft" flows. |
| New version | It creates a new Draft version of a published flow. If you "Publish" this new version, all new data records will go to the new version of the flow, while the data records that started in the previous version will keep on running of that version |
| Pause | It pauses this version of the flow. This means that no new data will go to this flow, and if you have a previously published version of the flow, new data records will run in that previous version. It is very handy when you notice that the current version of your flow has an error and you want to avoid data records to run on it while you fix the errors in a new version |
| Resume | It resumes this version of the flow |
| Delete | It deletes a flow. |
| Deactivate | It sets the version of the flow as "Inactive" |
Flow versions
A flow can have more than one version. The latest version of the flow is displayed in the top row, expanding it allows you to view previous versions. New data records will always go to the latest version of the flow.
Flow change history
Use Changelog to review who changed a flow, when the action happened, and any notes saved with it. Versions with the same flow name share the history within your project.
Open the changelog
Your account must have access to the project and its flow history. Saving notes and publishing require access to the corresponding flow actions. Tag restrictions can also limit which flows you can edit. See Roles and restrictions.
- Open your project and select Flows.
- Open the flow row's actions menu.
- Select Changelog to open Latest changes in the flow.
You can also select Changelog in the flow designer's toolbar after opening a saved flow. The button appears after you save a new flow for the first time.
Read changelog entries
Entries appear newest first by default, grouped by date. Dates and times use your account's display format.
| Column | What it shows |
|---|---|
| Time | The time of the action, under its date heading. |
| Action | The type of change recorded. |
| User | The email address and name recorded for the user who performed the action. |
| Message | A change note or a generated description of the action. This can be blank when no note was provided. |
The Action column uses these labels:
| Action | Meaning |
|---|---|
| Created | A flow was created. |
| Saved | A flow was saved. |
| Published | A flow was published. |
| Copied | An independent copy of a flow was created. |
| New version | A new draft version was created. |
| Deactivated | A flow version was paused or deactivated. Check Message to distinguish the actions. |
| Activated | A flow version was resumed or reactivated. Check Message to distinguish the actions. |
| Deleted | A flow version was deleted. |
Use Message to understand the change: Saved and Published identify the action, while the optional note explains what changed and why. Some generated messages identify the affected version. Select Read more to display a long message in full.
Select Time, Action, or User to change the sort order. Use Items per page and the page controls to browse longer histories.
Search the history
- In the changelog, select Search to open Find log entries.
- Set one or more filters:
- Action: Select an action type, or All to include every type.
- User: Enter part of the user's email address or name.
- Date: Set From:, To:, or both. Use the date picker or the date format shown in the field. The range includes the selected start and end days.
- Select Apply to show matching entries.
All selected filters must match an entry for it to appear. Search filters cover the action, user, and date; they do not search the text in Message.
Select Refresh to reload the current results, or Reset search to clear the filters. No logs yet means the current view has no entries; if filters are active, reset them to check the full history.
Add a change or publication note
Add notes when saving an existing flow to explain what changed and why. The note is optional, and the comment field appears after the flow's first save.
- Open a saved draft flow in the flow designer.
- Select Save.
- Enter your note in Comment about the changes done.
- Select Save to keep the draft and record a Saved entry, or select Save & Publish and confirm with Publish to publish it and record a Published entry.
- Open Changelog to review the note in Message.
Save & Publish is available for saved drafts. Publishing from the flow overview's Publish action does not offer a comment field. To include a publication note, use Save & Publish in the designer.
If the flow fails publication validation, Flowize shows The Flow cannot be published because: followed by the reason. No Published entry is added.
Save & Publish saves your draft changes before publication validation runs. Check the saved flow, correct the reported issue, and try again.
If opening the changelog shows Flow not valid, return to Flows and reopen an available saved flow. If access is denied or Changelog is missing from the row's actions menu, ask your organization administrator to check your access.
Creating a flow
Click on "New Flow" in Flows, you will be redirected to the flow designer. Here we can start
creating a new flow by merely dragging and dropping items from the flow palette on the right.
For a step-by-step example, see Create a flow.
A flow can only be modified while it is in DRAFT status. Once a flow has been Published, you can only update the parameter values of existing Apps, remember to save your flow before leaving. Adding, removing, or rearranging Apps is not allowed.
To make structural changes to a published flow, you must create a new version and apply the changes there.
To refresh a Custom App step after its app configuration changes, see Update apps used in flows.
The flow palette is where all the Apps are, you can find it on the right next to the canvas, and it is categorized in:
| Tab | Description |
|---|---|
| Apps | It's the list of all Marketplace that have been installed |
| Custom Apps | It's the list of all Custom Apps that have been installed |
| Webhooks | Here, you will find all the webhooks that have been set up |
| Tools | It's the list of all Tools Apps, Keystores, Tables and Data Gateways that have been installed or set up |
| System apps | They are a bunch of tools pre-installed by default in any new account (Decision, End, Loop, Move to flow, Run a flow and Scheduler) |
| Templates | They are flows that can be used as objects in other flows, to save a flow as a template select "Save flow as template" option in the Save dialog |
Test a flow
Use Save and Test in the flow designer to submit a test data record through the flow. For a worked example, see Create a flow.
In Data configuration, select the interface you want to test. Review Request Headers and Request Body, then select Run test. When you test an editable draft, Flowize saves it before submitting the test record.
The success message confirms that a new data record was created and queued for processing. Select View data record to inspect its execution and check the results of individual steps before publishing.
If the test fails, check that the payload matches the selected interface, variable paths are correct, mandatory App parameters are complete, and the flow's objects are connected. You can also test an individual App to inspect its request and response.
Test an individual App
Use Test in an App's configuration window to check one step's parameters and inspect its request and response. This runs the selected App without running the preceding or following steps in the flow.
Your account must have access to test flow Apps. Test is disabled when you do not have that access. Applying changes and saving the flow require separate access. See Roles and restrictions.
For Apps that send requests, set up a data structure with a nonempty example data record before testing. The test uses that example record to resolve data variables. It does not run earlier steps to generate their results.
Testing executes the App's configured action. It can send messages or change data in a connected service. Use test values and a suitable destination, such as a test email address for an email App.
Run the App test
-
Open your draft flow in the flow designer.
-
Double-click the App step on the canvas.
-
In Parameters, review the values and fill in all mandatory fields. The available fields depend on the App and function.
-
Select Test.
-
Review Request data and Response data:
Area What to check Request data Review the method and URL in Request details, then check Request headers and Request body to confirm the values sent. Response data Review the HTTP code or cURL code and any error message in Response details. Check Response headers and Response body for the returned data. Connection and execution times appear when available. -
Select Back to return to Parameters, adjust the values, and test again if needed. The back-arrow tooltip reads Back to parameters.
Test is available only for supported steps. Flow-control steps such as START and END do not offer this individual App test.
Review incoming response mappings
After returning from the test results, open Incoming response to inspect the App's configured response fields. This tab appears when the App defines body response fields.
Body Parameter identifies each configured field, and Where it is saved shows the variable you can use in later steps. Select a variable to copy it. When Saved to Data Schema is available, review or enter the data-variable destination for a response field you want to store there. Configured response headers also show their variables.
Compare these configured fields with the actual Response body from the test. If the App's response configuration needs to change, see Custom apps or Marketplace apps. To refresh a Custom App step after changing the App itself, see Update apps used in flows.
Keep configuration changes
Running an individual App test does not save the flow. Before leaving the configuration window, return to Parameters and check that the values are the ones you want the flow to use, including any variables that you replaced with test values. Select Apply, then Save in the flow designer and Save in the flow dialog to keep the draft changes.
App test validation and errors
| Message or condition | What to do |
|---|---|
| Some information is missing | Fill in the mandatory fields in Parameters, then select Test again. The test does not run while required fields are missing. |
| A message asks you to set up a Schema | Set up the project's data structure, then retry. |
| Your example data record is empty. Please create one to test the object. | Add example data before testing the App again. |
| Configuration is empty | Check that the App's request configuration is complete before retrying. |
| An HTTP or connection error appears | Review the returned error and request details. Check the destination, authentication, and parameter values before retrying. |
| A warning says the response exceeds the maximum size | The test replaces the displayed response body with a warning when it reaches 12 MB or more. Reduce the response size or use pagination if the connected service supports it, then test again. |
Error Handler flows
Error handler flows are a specialized type of flow designed to manage errors that occur during flow execution. When an error occurs while processing a data record, control is automatically transferred to the associated error handler flow, which is responsible for handling the failure according to the defined logic.
For example, an error handler flow can be used to log errors, send notifications, or trigger recovery actions. A common use case is integrating a Slack App into the error handler flow to automatically send a message to a designated channel whenever an error occurs in the flow it is associated with.
To save a flow as an error handler flow, select "Save flow as an error handler" option in the Save dialog.
Error Handler for every app in the flow
When using apps inside your flow, you can change the app's behavior by defining how they handle the error. This tool is handy as this lets you continue or stop your flow according to your needs. Suppose, in some cases, even if an app fails, and you still want to continue the flow, you can do it using this feature.
How to use the error handler
Open the app in your flow structure that you want to configure and click on the "Error handling" tab and turn the feature "ON" to configure it.
Generally, 2xx codes are set to continue the flow, and 4xx are set to stop the flow. Modify it According to your needs.
Parameters for error handler
| Field | Description |
|---|---|
| HTTP Code | The outcome of the app. Generally, the codes are 200,301,401. If you are not sure about the exact code, you can use XX instead of the number. example-4xx/3xx. Here xx means 00-99 |
| Number of Retries | How many times do you want this to execute |
| Every | How often do you want to execute it |
| Then | You can choose to continue or stop the flow using this. |
Common HTTP Codes
| Code | Description |
|---|---|
| 200 | The request has succeeded |
| 201 | The request has succeeded, and a new resource has been created as a result |
| 300 | The request has more than one possible response |
| 301 | The URL of the requested resource has been changed permanently. |
| 400 | Bad Request. The server could not understand the request due to invalid syntax. |
| 401 | unauthorized / unauthenticated |
| 403 | The client does not have access rights to the content. |
| 404 | The server can not find the requested resource |
| 4xx | xx means 00 to 99. Use it if you want to cover whole range |
Learn more about HTTP Code here
System tools in the flow
System Tools are built-in tools provided by Flowize to simplify the creation and management of flows. They offer common functionality that can be used across different workflows without requiring additional configuration or integrations.
You can find all available System Tools in the System section of the flow palette.
Decision
The decision object allows us to define one path or another within our flow depending on a condition.
There are two different kinds of decisions available:
Generic decision
Here you can select one of the conditions created or create a new one. This option is extremely useful if you have to apply the same condition several times in different sections across the system.
Dynamic decision
This is the proper option to add if you need to apply a condition just once. Configure the desired conditions and connect its output to the appropriate step in your workflow. The flow will then continue along the corresponding path based on whether the condition is met.
End
The end object allows us to finish the execution of a data record.
If you place this object within a flow called in a Run a flow, the execution of the parent flow will continue afterward.
Remove the data record
Optionally, in the configuration of this object, enable the option to remove the data record once its execution finishes.
Keep in mind that there is no way to roll back once the data record is removed, consider adding a scheduler before the End object to have extra time to debug.
Data record label
It creates a label for the data record once you execute the flow.
Loop
The loop object allows us to iterate through a number of items in the flow.
Configuration
In the configuration of this object there are two options available:
- A fixed number of times: here you can enter specific start and end indexes. Set the initial index value and the number of times the loop will iterate. There are some special variables that you can access while looping:
| Variable | Description |
|---|---|
{loop.0.current_index} | the current loop index |
{loop.0.iteration} | the number of times the loop has been executed |
{loop.0.start} | the value of the index which the loop started at. By default this is 0 |
{loop.0.count} | the number of times the loop will be executed. This cannot be more than 1000 times due to performance restrictions |
- For every item of an array: in this option enter the path of the array that you would like to loop through. In this one introduce the array path. There are some special variables that you can access while looping:
| Variable | Description |
|---|---|
{loop.0.current_index} | the current loop index |
{loop.0.current_item} | the current item from the array that we entered. We can access its properties as follows: {loop.0.current_item.property_name} |
{loop.0.iteration} | the number of times the loop has been executed |
{loop.0.start} | the value of the index which the loop started at. By default this is 0 |
{loop.0.count} | the number of times the loop will be executed. This cannot be more than 1000 times due to performance restrictions |
Move to Flow
With this object you can move our data record to a different flow. It will keep exactly the same UUID and payload.
In the configuration of this object, select the flow you want to move the data record to and its version.
Run a Flow
You can make a call to another flow when getting at this step.
Scheduler app
The Scheduler tool allows you to continue with the execution of a flow at a programmed date/time.
Pick the type of scheduler you need:
- Period of time: The tool will stop the flow until a given time after the flow's starting time or the last time the flow was restarted.
- Recurrent date and time: Choose between different options for executing this tool repeatedly in certain dates/times.
- Specific date and time: Set a specific period before or after a certain date and time.
Configuration
Configure the rest of details: name, timezone, a custom timezone (this one will have priority over the one set above) and an alternative route if the date you enter is in the past.
Bottleneck
The bottleneck app works like a counter. It counts all the data records passing through it. According to the configuration, It will only let a certain number of data records pass through it at a specific time.
Configuration
Choose one of the configurations previously created, edit it, or create a new one.
Set a name and how many data records can pass by time unit.
Webhooks
When it comes to webhook, the bottleneck works similarly as the scheduler.
If you receive webhooks while the data record is stopped in the bottleneck, they will be processed, and they will move the execution of the data record to the webhook object, moving it away from the bottleneck App.
The "Not permanent" webhooks will be listening while stopped in the bottleneck and once they get to the first scheduler.
Was this article helpful?