Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Serverless Integrations
  • Comparison with other Yandex Cloud services
    • Overview
      • Workflow
      • Starting a workflow execution
        • Overview
          • Switch
          • Foreach
          • Parallel
          • Success
          • Fail
          • NoOp
          • Wait
          • While
      • Templating
    • Cron expressions
    • Quotas and limits
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Public materials
  • Release notes
  1. Concepts
  2. Workflows
  3. YaWL specification
  4. Control steps
  5. Foreach

Foreach

Written by
Yandex Cloud
Updated at June 11, 2025

Executes the sequence of steps specified in do on each input data item. Outputs are an array of execution results of the steps specified in do. For steps from do, in the next field, you can only specify steps listed in do. Read more about the workflow state during the Foreach step.

Field name Type Required Default value Templating is supported Description
input string Yes No Yes A jq template that forms an array of objects. If the result is not an array of objects, the execution will terminate with an error.
output string Yes No Yes A jq template that forms an object with the foreach output. If the result is not an object, the execution will terminate with an error.
do ForeachDo Yes No No Sequence of steps to apply to each input data item.
concurrency int No 1 No Number of input data items on which the sequence of steps from do is being performed at the same time.
next string No No No ID of the next step.

ForeachDo objectForeachDo object

Field name Type Required Description
start string Yes ID of the step to start the execution from.
steps map<string, Step> Yes Description of the steps. Object where key is the step ID, and value is the object describing the step parameters. The structure is similar to the steps field in the high-level specification.

Was the article helpful?

Previous
Switch
Next
Parallel
© 2025 Direct Cursus Technology L.L.C.