Use arguments in a workflow

Accesses runtime arguments passed to the workflow as part of the execution request and declared as a parameter of the main workflow.

Documentation pages that include this code sample

To view the code sample used in context, see the following documentation:

Code sample

YAML

main:
  params: [args]
  steps:
  - step1:
      assign:
        - outputVar: ${"Hello " + args.firstName + " " + args.lastName}
  - step2:
      return: ${outputVar}

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.