Skip to main content

Step 1: First Workflow Application

Let’s build a workflow for the sample banking use case - deposit funds into a customer account and notify them via email and SMS about the status. This workflow has three steps: record the deposit, send an email, and send sms. For this example, let's assume there are REST (HTTP) endpoints you can invoke to run these functions.

tip

Conductor supports many ways to implement the steps, such as HTTP endpoints, workers, inline code, and serverless functions. We can mix and match these too!

Create Workflow

We can create workflows using multiple methods, such as UI, Code, etc. We will start with the UI.

Watch this video and follow the steps below:

  1. Login and Navigate to Workflows > Definitions.
  2. Click the Define Workflow button at the top right corner.
  3. Create a workflow by adding 3 HTTP tasks.
  4. Click the Run Workflow [Guide] option from the left menu, and choose your workflow.
You can run this workflow to see how it executes. If there are failures, Conductor will retry them automatically and ensure that the workflow is completed.

Let’s send SMS and Email in parallel instead of sequentially

  1. In your current workflow, add a Fork Join task after the deposit task.
  2. Add the SMS and email tasks as fork tasks.
  3. Join the two fork tasks using the join operation.
  4. Run workflow.