Workflows and Tasks
If you are following along, you should have the editor open in the browser. The first page you will see is the Workflow editor.
Workflow
A Workflow is a sequence of stages that are executed in a specific order. Each stage is a Python script that will be executed when the Workflow reaches that point in its run.
In this example, we have two stages, Apply to Dunder Mifflin and Application Review, represented by the boxes, and the arrow indicating the transition from one stage to the next.
In this Workflow, the first stage, Apply to Dunder Mifflin, is a Form that will request the user to answer a set of questions. The second stage, Application Review, is a On task that will process the data and send an email to the user with the application status.
Let's see the Workflow in action. Go to Apply to Dunder Mifflin form editor by clicking on the stage and pressing "Go to editor".
Tasks
A task is how stages in the workflow communicate. One stage can create and send tasks to its next stages, which will consume this tasks in different ways and do the same thing. Learn more about tasks here.
To test this workflow, just run the form and fill up the data. This form sends a task to the On task stage after it, which will be triggered by this task and execute its own code automatically. You can follow the tasks and their status in the Tasks page.
And you will receive an email with the application status.
And that's it! You have successfully run your first Workflow. To understand what happened behind the scenes, we have to understand what is happening in each stage.