A workflow can contain multiple tasks which represents the work that should be done.

name: order-process

    - id: collect-money
      type: payment-service

    - id: fetch-items
      type: inventory-service
      retries: 5

    - id: ship-parcel
      type: shipment-service
            type: "express"
            withInsurance: false

Each task has the following properties:

  • id: (required) the unique identifier of the task.
  • type: (required) the name which is used by the task workers to register for.
  • retries: the amount of times the task is executed if a failure occurs. (default = 3)
  • headers: a list of additional metadata or configuration which can be read by the worker.

Read more about tasks.