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:
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Defines the step type (e.g., http, if, while, forEach). |
step | object | Yes | Contains step-specific configurations. |
step.name | string | Yes | A 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.