All Products
Search
Document Center

CloudFlow:Pass steps

Last Updated:Oct 30, 2023

This topic describes pass steps and related examples.

Overview

A pass step can be used to output constants or convert inputs into the desired outputs. For example, when you define a flow, if you have not created functions of Function Compute for task steps, you can first plan and debug the flow logic by using control steps and pass steps, and then gradually replace the pass steps with task steps.

A pass step contains the following attributes:

  • type: Required. The step type. The value pass indicates that the step is a pass step.
  • name: Required. The step name.
  • end: Optional. Specifies whether to proceed with the subsequent steps after the current step ends.
  • inputMappings: Optional. The input mappings.
  • outputMappings: Optional. The output mappings. This step does not generate data, and its $local is empty.

Examples

The following example defines a pass step that outputs an array of uppercase letters.

version: v1
type: flow
steps:
  - type: pass
    name: toUpperCase
    outputMappings:
      - target: names
        source: ["A", "B", "C"]