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.

Explore further

For detailed documentation that includes this code sample, see the following:

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.