Skip to content

Foreach remapper

Overview

Foreach is a remapper that reopens—or, in other words, extends—a previous context of a splitter or another remapper. The portion of the workflow included in its context, which is the continuation of a previous context, is executed in a loop with a number of iterations equal to that of the iterations already carried out in the previous context.

Block properties

The properties of a Foreach block are accessed by editing the block and are divided into these groups:

  • Basic properties:

    • Block name
    • Component version (read only)
    • Block ID (read only)
  • Functional:

    • Context to reduce: reference context. It is chosen from a drop-down. To remove the choice, select Clear .
    • Keep same context: read-only, always on. It's a reminder that Foreach re-opens the reference context.
  • Deployment:

    • Timeout: execution timeout expressed in minutes (m) or seconds (s).
    • Replicas: number of required instances.
    • Consumer Number: number of threads of the consumer, the software module of the block that provides input to process by taking it from the block's work queue.
    • Memory: required memory.
    • CPU: thousandths of a CPU required (for example: 1000 = 1 CPU).