Workflows help you automate your processes, regardless of their complexity in a simple way through a visual diagramming feature that is BPMN 2.0 compliant (Business Process Model and Notation).
They are similar to Automations since they are executed based on triggers and rules defined by you. They also provide a real-time monitoring tool that allows you to review their execution.
User Permissions: Only Administrators or App Admin users can create Workflow.
We will cover the following topics:
Create a New Workflow
Since they are BPMN 2.0 compliant, Workflow includes support for sub-processes, wait-events, and full access to FreeAgent's open APIs. Great for approvals, sales cadences, lower volume marketing drip campaigns, integrations, and more.
If you are an App Admin, you will find Workflows under Admin Settings > Advanced > Workflows. You can also use the Global search to get there faster, just start typing "Workflow".
Once there, click the 'Add Workflow' button.
The 'Add Workflow' screen will appear. Let's go through all of the fields.
1. Name
Use something that identifies your workflow. Ie. Quote approval.
2. App
Choose the application you would like your workflow to operate within.
3. Fields
Only available if the Trigger is either 'After Update' 'After Create / Update' or 'Schedule Field'.
Here you will need to select one more multiple fields that will be used to trigger the workflow if they are updated.
4. Trigger
Select one from the list:
On App Action - As soon as you click the App Action Button, the workflow will be triggered.
After Create - As soon as you create a new record on the specified App, the workflow will occur.
After Update - When a change in the selected field is detected, the workflow will take place.
After Create / Update - A useful combination of triggers that will consider both the 'After Create' and 'After Update' scenarios described above.
On Webhook - Requires Webhook. When the webhook is triggered the workflow will begin.
Schedule Cron- Think of this as a recurring event, you will be able to specify how often you want the workflow to occur.
Schedule Field - A single event triggered on a specific date, determined by the field selected.
5. Add Condition
If you would like to specify some rules for your Workflow, here is where you create them. The conditions will help you prevent your Workflow from being triggered if they are not being met. This means that you can define as many rules as you need to ensure that this only happens when the conditions are right.
e.g. For a Quote approval process, you could add a condition to verify that the Quote status is 'Awaiting Approval'.
Workflow
Here is where the magic happens. Draw your process in the BMPN 2.0 compliant diagrammer. Once you are done, save your changes.
Take a look at the table below to learn more about the different elements available in the diagrammer.
ICON | NAME | DESCRIPTION |
Hand Tool | Selects a single element in the diagram to either move or delete. | |
Lasso Tool | Select a number of diagram elements. You can then proceed to move or delete the selected elements. | |
Space Tool | Create or remove space both horizontally and vertically in a diagram. | |
Connect Tool | Draw a line between the two selected elements. | |
Events - Represented with a circle. They denote something that happens. Each Workflow needs to begin with a 'Start Event' and end with an 'End Event'. | ||
StartEvent | The starting point of a Workflow. Required. | |
Message Intermediate |
Occurs between the start and end of a process. | |
Timer Intermediate Catch Event |
Allows you to create waiting periods before a new activity. | |
Error Boundary Catch Event |
Adds validations for your workflow. | |
EndEvent | The ending point of a Workflow. Required. | |
Gateway | Determines forking and merging of paths, depending on the conditions expressed. | |
Activity - Represented with a rounded-corner rectangle. They describe the kind of work which must be done. | ||
Create Record | Creates a new Record in the desired App with the specified parameters. | |
Update Record | Updates an existing Record in the desired App with the specified parameters. | |
Delete Record | Deletes an existing Record in the desired App. | |
Get Record | Obtains the information of the specified Record. | |
Script | Allows custom code for the Activity. | |
Receive Task | Waits for an external event to take place. | |
Integration | Select an existing integration in FreeAgent. | |
Create expanded |
Used to create a subprocess within the main one. Subprocess requires StartEvent and EndEvent. | |
Create Pool/Participant | Represents major participants in a process, typically separating different organizations. A pool contains one or more lanes |
Diagrammer Actions
Once you have created one of the elements above, select it to show the available options. There at the bottom, you have the option to edit or delete the selected element. If you selected a connection then an additional option will be available to define the type.
ICON | ACTION | DESCRIPTION |
Connection Type |
Default flow Conditional flow |
|
Edit |
Customize the task. Add a name, select the App and define the input parameters. |
|
Delete | Deletes an existing element from the diagrammer. |
Editing a Workflow
When you add an Activity to your Workflow, you will need to edit it in order to configure the expected action and the information it should include.
In a Create Record, for example, you will need to define the name of the Activity, select the App for which you want to create the new record, and then define the Input Parameters, meaning the information that is going to be used to create your record.
You will need to define a type for each field you add here. There are two types available, static and dynamic.
Static is mostly used when the information for the field has a single value that will not change over time. For example, if you want to assign a record to a specific sales rep, then your configuration would look like this:
On the contrary, you would need a Dynamic type, something like this:
Workflow Activities - Monitoring
Administrators and App Admins can review the status of the Workflow Activities thanks to the Monitoring tool we provide for this purpose. If you are an Admin go to Settings > Jobs > Workflow Activities, to visualize all Workflow Activities.
Here you can learn all about your Workflow. From their status, to when they started and ended. If there were any errors during its processing, including the error type and message to give you a better insight of what the problem was.
We have an entire guide on this page here.
Use Case Guides
To see this powerful feature in action, we have prepared guides to help get you started building your own workflows in FreeAgent.
Workflow Definitions
If this is your first time constructing a Workflow in a BPNM 2.0 layout or you need further explanation of the tools available to you, refer to the Workflow Definitions article. This article covers the different events and task types as well as other concepts related to constructing Workflows.