Skip to content

Repeat extension

Petri Savolainen edited this page Mar 1, 2017 · 2 revisions

A 'repeat' operation is meant for for running an operation repeatedly, with (possibly) a different context each time. It is specified by adding a 'repeat' key to the specification of a regular operation:

operation:
  label: addmany
  description: add many records in one shot
  repeat: true
  request:
    params:
    - name: $name

It is the job of the client application to populate the context for each operation (say, from an iterable or a factory) and run it.

Note: For a plain-vanilla repeat, just provide an iterator that always returns the same value.

Clone this wiki locally