3 Types of Workflow | In-Depth GuideBy: Ronan McQuillanJan 3, 2023 | 7 minutes readWhen it comes to building efficient internal operations, understanding the logic that governs common tasks is crucial. However, this is nearly impossible if we donāt have a firm grasp of the core types of workflow.Thatās just what weāre covering today.You see, workflow is an incredibly broad term. We could be talking about just about anything - from simple vacation approvals to highly complex automated replenishment tasks.This presents us with a few major challenges.First of all, without a framework in place, itās much more difficult to determine the right strategies for improving workflows.Besides this, weāll have difficulty digitalizing the rules behind different workflows if we donāt know the basic logic that these are based on.Today, we are going to examine everything you need to know about the three dominant types of workflows, as well as common variations and examples of each.First, though, letās take a step back and think about the basics.What do we mean by types of workflow?Essentially, what weāre talking about is the different ways that we can define how actions within a workflow are structured - namely the kinds of logic that controls how and when different actions are taken.Naturally, if the basic rationale behind how a workflow is structured can vary, it follows that workflows themselves can be very different.So where do the differences occur?Essentially, the distinction occurs along two lines. First, thereās the nature of the variables that are used in decisions between actions. For instance, are these based on time, the completion of the previous step, or more complex rules?Second, thereās how actions are structured. Do these happen one-by-one or concurrently? Is there a fixed order or is each one triggered independently by separate rules? Are some actions only carried out some of the time?Luckily, we can take account of both of these issues with only three types of workflow.3 types of workflowsSo what are the three types of workflows that you need to know?From the simplest to the most complex, we have:Sequential workflows.State-machine workflows.Rule-based workflows.As we drill into each of these, weāll also see variations on each, along with how they might be used to control different kinds of internal tasks.Letās jump in.SequentialSequential workflows are the most common, simple kinds of tasks. In fact, this is actually fairly self-explanatory. The basic principle is that we have a set of required steps to complete a task, and these need to be completed in a fixed order.We canāt move on to the next step until the preceding one is completed. We also canāt jump around or go back and forth - otherwise, it wouldnāt be a sequence.As such, we donāt have much space for variation here.One area where we can encounter differences is with the idea of success/failure conditions.That is, we might only be able to move to the next step if the previous one is completed successfully. If not, the step fails and, the entire workflow might be abandoned. For example, if we need to get unanimous sign-off from different stakeholders, in a fixed order.ExamplesExamples of sequential workflows are everywhere - we couldnāt possibly even begin to make a dent in them.For instance, we have simple order fulfilments, approval workflows, equipment requests, email sign-ups, and much much more.Letās drill a little bit deeper into one of these. Take a basic vacation approval. This would follow a structure along the lines of the following steps:An employee submits a vacation request.HR checks if they have sufficient remaining leave.If so, they check if there is sufficient cover in their team.If so, they check if there are any project-related deadlines or events that would prevent them taking leave.The request is either approved or declined.From steps two to four, we have. If any of the relevant criteria isnāt met, the workflow can be abandoned.State-machine workflowsState-machine workflows are a little bit more complex. Theyāre also typically more limited to digitalization use cases.Basically, instead of having a fixed structure, each action is triggered by a defined event. This might be a different action being completed or it might not. This could still be a different step being completed.Alternatively, it could be an external event or even a time-bound one. The different events can form a sequence of sorts, or they can be completely independent.When an event occurs, the relevant state of the resource in question is updated to reflect this.The benefit here is that we have a lot more control over the timing of different steps in our workflow.ExamplesState-machine workflows are generally used in code-heavy or highly automated tasks. For instance, more complex ecommerce fulfillment, procurement, replenishment, logistics, and more.Say we were dealing with an online order workflow. This could be made up of actions along the lines of the following:When a customer makes an order, an entry is created in the orders database.When the items become available, the customer receives an email to tell them when theyāll be dispatched.When the items are dispatched, the customer receives another email, and the orders entry is updated.When the items arrive, the entry is updated again.Three days later, the customer receives a follow-up email offering them a survey.This is a highly simplified example. In reality, we might have many more highly granular events and triggers.Rules-based workflowsFinally, we have rules-based workflows. These offer us the most complexity and specificity. The idea is that each action that can make up a workflow is tied to a defined condition, which can be based on any variable at all.The appeal here is that this type of workflow allows us to implement branching logic.For example, we can take the output variable from one step and use it to decide what to do next, based on the specific value. That way, we can have much more sophisticated workflows, where some actions only occur in certain situations.ExamplesExamples of rules-based workflows include any time we need to build additional complexity into the way our team carries out different tasks.For instance, more complex approval and request workflows, most customer interactions, or anything with a large human component, as well as more complicated automated functions.Say we were dealing with a workflow for routing a customer query to the right department. We might use several rules based on:Their location.The order value.The payment method.The shipping method.The nature of the query.Their contact preferences.Their history.And more.How do you identify the right type of workflow for your needs?So, we know that there are three main types of workflows. But how do we know which one to build a given internal task around? After all, the whole point here is that we want to figure out the best structure to use to optimize our teamās daily work.There are a couple of key issues to pay attention to, which weāve already largely hinted at.The first is whether weāll need actions to be completed separately or concurrently.The second is if every step is required every time a task is completed or if some are optional.Additionally, if we know actions need to follow a fixed order, weāre probably going to end up with a sequential workflow. If we know that theyāll follow more conditional logic or an events-driven structure, weāll have to opt for one of the others.Budibase for workflow managementAt Budibase, weāre on a mission to transform the way businesses build custom solutions for managing all types of workflows.Our open-source, low-code platform is the fast easy way to build everything from simple CRUD applications to more complex internal tools.Weāve even built 50+ free app templates to help get you started.Check out our ultimate guide to workflow management to learn more.To start using Budibase to build better tools, faster, sign up for free today.