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
-
Repeat If: The expression returns a boolean. It returns
truewhilerepeatIndexis smaller than the size of thelistvariable, andfalseotherwise.
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.
The connector has a single request and a single context entry.