Pass step

更新时间:
复制 MD 格式

This topic describes the pass step and provides usage examples.

Introduction

You can use a pass step to output a constant or transform an input into the desired output. For example, when you define a flow, you can use control steps and pass steps to plan and debug the flow logic before you create the Function Compute functions for your task steps. You can then replace the pass steps with task steps.

A pass step contains the following properties:

  • (Required) type: The value pass specifies that the step is a pass step.
  • (Required) name: The name of the step.
  • (Optional) end: Specifies whether this is the final step in the flow.
  • (Optional) inputMappings: The input mapping.
  • (Optional) outputMappings: The output mapping. Because this step does not generate data, its $local variable is empty.

Example

The following example shows 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"]