Package com.tnsai.coordination.workflow
Class WorkflowContext
java.lang.Object
com.tnsai.coordination.workflow.WorkflowContext
Shared context passed through workflow steps.
Thread-safe for concurrent DAG execution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResult of a single workflow step execution. -
Constructor Summary
ConstructorsConstructorDescriptionWorkflowContext(String workflowId) WorkflowContext(String workflowId, Map<String, Object> initialData) -
Method Summary
Modifier and TypeMethodDescription<T> TgetData()<T> TgetOrDefault(String key, T defaultValue) getStepResult(String stepId) Gets the result of a previously completed step.booleanvoidvoidrecordStepResult(String stepId, WorkflowContext.StepResult result) Records the result of a completed step.
-
Constructor Details
-
WorkflowContext
-
WorkflowContext
-
-
Method Details
-
getWorkflowId
-
put
-
get
-
getOrDefault
-
has
-
getData
-
recordStepResult
Records the result of a completed step. -
getStepResult
Gets the result of a previously completed step. -
getAllStepResults
-