Steps

Steps define the execution flow within a Srotas configuration. Each step represents an action or decision point, such as making an HTTP request, iterating over a list, or executing conditional logic.

A step consists of the following fields:

FieldTypeRequiredDescription
typestringYesDefines the step type (e.g., http, if, while, forEach).
stepobjectYesContains step-specific configurations.
step.namestringYesA descriptive name for the step.

Step Types

Srotas supports multiple step types, each serving a specific purpose:

Each step type has its own structure and fields, detailed in their respective sections.

Note

Steps execute sequentially unless modified by control structures like if, forEach, or while.

Note

Variables created in a step may be available to subsequent steps, depending on scope rules.