Package com.tnsai.coordination.workflow
package com.tnsai.coordination.workflow
Workflow execution patterns for multi-agent coordination.
Provides three execution strategies:
PipelineExecutor- Sequential step executionDAGExecutor- Parallel execution respecting dependenciesSagaExecutor- Sequential with compensation/rollback
All executors share WorkflowStep,
WorkflowContext, and
WorkflowResult as common building blocks.
-
ClassDescriptionA conditional branch in a workflow.Workflow executor with conditional branching and loop support.Executes workflow steps as a Directed Acyclic Graph (DAG).An execution plan with lifecycle control (pause, resume, cancel).Execution plan states.Defines loop termination conditions for workflow loops.Executes workflow steps in a sequential pipeline.Executes workflow steps as a Saga with compensation (rollback) support.Shared context passed through workflow steps.Result of a single workflow step execution.Result of a complete workflow execution.A single step in a workflow execution plan.