Pipeline.Step.SetVariable (pipeline v0.0.1)

View Source

Set variable step executor - handles variable assignment and state management.

Supports:

  • Setting variables in different scopes (global, session, loop)
  • Variable interpolation and expressions
  • Type validation and coercion

Summary

Functions

Execute a set_variable step.

Validate step configuration for set_variable type.

Functions

execute(step, context)

Execute a set_variable step.

Step Configuration

- name: "set_counter"
  type: "set_variable"
  variables:
    counter: 0
    name: "test_pipeline"
    items: []
  scope: "global"  # Optional: global (default), session, loop
  
- name: "increment_counter"  
  type: "set_variable"
  variables:
    counter: "{{state.counter + 1}}"
    last_updated: "{{current_timestamp}}"

validate_config(step)

Validate step configuration for set_variable type.