Expand description
§swf_runtime
Execution engine for Serverless Workflow DSL v1.0.0 — parse, validate, and run workflows.
§Features
- Task runners — set, wait, raise, emit, switch, for, fork, do, try, listen, call, run, custom
- Expression engine — JQ-based evaluation (jaq) with runtime variable support (
$context,$secret,$workflow,$task,$runtime) - HTTP client — GET/POST/PUT/DELETE/PATCH with headers, query, auth (Basic, Bearer, Digest, OAuth2, OIDC)
- Shell execution — command, args, environment, return formats
- Sub-workflow — run nested workflow definitions with context propagation
- JSON Schema — input/output validation
- Secret manager — pluggable secret resolution (
$secretvariable) - Execution listener — event-driven workflow monitoring
- Custom tasks — extensible via
CustomTaskHandlertrait
Re-exports§
pub use context::WorkflowContext;pub use error::ErrorFields;pub use error::WorkflowError;pub use error::WorkflowResult;pub use events::CloudEvent;pub use events::EventBus;pub use events::EventSubscription;pub use events::InMemoryEventBus;pub use handler::CallHandler;pub use handler::CustomTaskHandler;pub use handler::HandlerContext;pub use handler::HandlerRegistry;pub use handler::RunHandler;pub use listener::CollectingListener;pub use listener::MultiListener;pub use listener::NoOpListener;pub use listener::WorkflowEvent;pub use listener::WorkflowExecutionListener;pub use runner::ScheduledWorkflow;pub use runner::WorkflowHandle;pub use runner::WorkflowRunner;pub use secret::EnvSecretManager;pub use secret::MapSecretManager;pub use secret::SecretManager;pub use status::StatusPhase;pub use status::StatusPhaseLog;
Modules§
Macros§
- default_
support - Creates default WorkflowContext and TaskSupport from a workflow reference. Use in tests to avoid repeating the 2-line initialization pattern.
Structs§
- Expression
Engine Registry - Registry of expression engines, keyed by prefix.
Traits§
- Expression
Engine - Trait for pluggable expression evaluation engines.