Package com.tnsai.coordination.workflow
Class PipelineExecutor
java.lang.Object
com.tnsai.coordination.workflow.PipelineExecutor
Executes workflow steps in a sequential pipeline.
Each step's output is available to subsequent steps via the shared context.
Example usage:
WorkflowResult result = PipelineExecutor.builder()
.step("fetch", fetchAgent)
.step("analyze", analyzeAgent)
.step("report", reportAgent)
.build()
.execute(new WorkflowContext("pipeline-1"));
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PipelineExecutor.Builderbuilder()execute(WorkflowContext context) Executes all steps sequentially.executeAsync(WorkflowContext context) Executes the pipeline asynchronously.
-
Method Details
-
execute
Executes all steps sequentially. Stops on first failure unless the step has a condition that skips it. -
executeAsync
Executes the pipeline asynchronously. -
builder
-