Recursive Execution of Multiple Requests

Introduction

This use case demonstrates the Repeat If feature of a request. The request uses a list variable — a list of product IDs — and is repeated until the Repeat If condition becomes false.

The difference from the Axelor instance use case is that this request is executed repeatedly until the Repeat If condition evaluates to false.

Request

Recursive request
  • Repeat If: The expression returns a boolean. It returns true while repeatIndex is smaller than the size of the list variable, and false otherwise.

In the end, all products whose IDs are defined in the list variable are retrieved.

Authentication

See the authentication described in the Axelor instance use case.

Connector

The connector defines a context with the list variable. The variable is a list of objects, each containing an id attribute.

Connector context

The connector has a single request and a single context entry.

Connector