This topic introduces the basics of Serverless workflow, and how to create and execute a simple flow and view the execution results.

Background information

A flow defines the business logic and general information required for flow execution. For example, an order management flow may involve creating orders, processing payments, reserving inventory, distributing goods, and notifying users. You can execute a flow multiple times after creating it. Generally, each execution has a different input. For example, an order management flow is executed each time a user places an order, and the input of the execution is order information.

Serverless workflow provides rich control primitives that allow you to describe business logic. For example, you can execute tasks in the serial mode, execute tasks in parallel, selectively execute specific tasks, and execute a series of tasks in parallel against a set of data. For more information about flows, see Overview.

If you need to know how Serverless workflow works in complex scenarios, see best practices topics such as Reliably process distributed multi-step transactions.

Example 1: simple flow

This example creates a flow that includes a pass step. This example helps you familiarize yourself with the basic operations in the Serverless workflow console.

  1. Create a flow.
  2. Execute a flow.

Example 2: coordination function

This example creates a flow that contains a task step. This example illustrates how to use Serverless workflow to coordinate functions deployed in Function Compute.

  1. Before you begin.
  2. Create a flow.
  3. Execute a flow.