AbstractTaskWrapper<C extends WorkflowContext<WorkflowResult>> class abstract

Inheritance

Constructors

AbstractTaskWrapper(ITask<C> firstTask)

Properties

children → List<ITask<C>>
no setterinherited
condition → bool Function(C)
Optional condition to determine if this node should be skipped.
no setteroverride
firstTask → ITask<C>
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(C context) → Future<void>
Execute the task's logic using the domain-specific context.
inherited
fanIn(ITask<C> next) → ITask<C>
Fan-in: return to a single flow after parallel execution.
inherited
fanOut(ITaskExecutableCollection<C> tasks) → ITask<C>
Fan-out: run multiple independent tasks in parallel using context C.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onFailure(ITask<C> fallback) → ITask<C>
Fallback task if the execution of this specific node throws an exception.
inherited
repeatUntil(bool condition(C), {required int maxAttempts}) → ITask<C>
Repeat the current task until a condition in the context C is met.
inherited
then(ITask<C> next) → ITask<C>
Sequentially chain another task. The next task must accept the same context type.
inherited
thenSwitch(ITaskCollection<C> tasks) → ITask<C>
Conditional branching within the same context type.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited