While loop Transformer

Table of contents

  • Introduction
  • Guide

Introduction

Many APIs work asynchronously, requiring repeated polling until a process is completed. This article introduces a requested enhancement to the HTTP transformer that would add looping behaviour, enabling HTTP calls to repeat until a defined condition is met. This would allow users to handle polling logic directly within a single transformer, without relying on external schedulers or additional workflows.

Guide

Step 1: Create a new Transformer → select Data transformer → While loop transformer from the list.

Step 2: Before moving forward, provide input to the required fields:

  • Condition - select a condition that the While loop transformer must follow.
  • Transformer - add a transformer to apply to each new iteration.
  • Settings - allows you to set a maximum range of iterations.

Step 3: Run the test and save the transformer.