Skip to main content

WorkflowStep

Trait WorkflowStep 

Source
pub trait WorkflowStep: Send + Sync {
    // Required method
    fn execute<'a>(
        &'a self,
        input: Value,
        run: &'a RunContext,
    ) -> WorkflowStepFuture<'a>;
}
Expand description

One executable, provider-neutral workflow node.

External work must be represented by capabilities passed to the workflow builder. The scheduler relies on that declaration to attenuate authority and to reject write-capable branches from first-success races.

Required Methods§

Source

fn execute<'a>( &'a self, input: Value, run: &'a RunContext, ) -> WorkflowStepFuture<'a>

Executes from canonical JSON input to canonical JSON output.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§