Pipeline.Context.Nested (pipeline v0.0.1)

View Source

Context management for nested pipeline execution.

Handles context creation, variable mapping, and output extraction for nested pipeline execution with support for context inheritance.

Summary

Functions

Create a nested context from parent context based on configuration.

Extract outputs from nested pipeline results based on configuration.

Resolve templates in a string using the provided context. This is made public so it can be used by other modules.

Functions

create_nested_context(parent_context, step_config)

Create a nested context from parent context based on configuration.

Parameters

  • parent_context: The parent pipeline's execution context
  • step_config: The nested pipeline step configuration

Returns

  • {:ok, nested_context} on success
  • {:error, reason} on failure

extract_outputs(results, output_config)

Extract outputs from nested pipeline results based on configuration.

Parameters

  • results: The nested pipeline execution results
  • output_config: Output extraction configuration

Returns

  • {:ok, extracted_outputs} on success
  • {:error, reason} on failure

resolve_template(text, context)

Resolve templates in a string using the provided context. This is made public so it can be used by other modules.