Skip to main content
Manage data flow between steps using parameters and exports.

Parameters

Defining Parameters

Using Parameters

Passing Parameters

Exports

Exports pass values from one step to the next.

Basic Export

Export Sources

HTTP Exports

Agent Exports

Function Exports

Variable Scope

Step-Level Scope

Exports are available to all subsequent steps:

Foreach Variable Scope

Loop variables use [[]] syntax and are only available inside the loop:

Resolution Order

Variables are resolved in this order:
  1. Exports from previous steps
  2. Parameters from user input
  3. Built-in variables (Target, Output, etc.)
  4. Environment variables

Built-in Variables

Osmedeus provides a comprehensive set of built-in variables that are automatically available in all workflows. These variables are recognized by the linter and do not need to be defined.

Path Variables

Target Variables

Output Variables

Thread Variables

Metadata Variables

State File Variables

Heuristic Variables

These variables are populated by automatic target analysis:

Platform Variables

Automatically detected environment information:

Event Variables

Available when a workflow is triggered by an event:

Chunk Variables

Used for parallel processing of large inputs:

Nested Variables

Variables can contain other variables:

Generator Functions

Generate dynamic values for parameters using the generator field:
The generator field is evaluated at workflow load time to produce the parameter value.

Available Generators

Flow Variable Propagation

Flow to Module

Module Exports in Flow

Module exports are not automatically available to other modules. Use shared output files:

Common Patterns

Chained Processing

Conditional on Export

Environment Variables

Best Practices

  1. Use descriptive export names
  2. Document parameter meanings
  3. Provide sensible defaults
  4. Use files for large data

Next Steps