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:- Exports from previous steps
- Parameters from user input
- Built-in variables (Target, Output, etc.)
- 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 thegenerator field:
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
-
Use descriptive export names
-
Document parameter meanings
-
Provide sensible defaults
-
Use files for large data
Next Steps
- Control Flow - Using exports in conditions
- Templates - Template syntax
- Functions Reference - Available functions
