FunctionNode class
Function-backed workflow node.
Constructors
-
FunctionNode({required WorkflowFunction function, required String name, String description = '', List<
String> ? dependsOn, bool rerunOnResume = false, bool waitForOutput = false, RetryConfig? retryConfig, Duration? timeout}) - Creates a function-backed node.
Properties
-
dependsOn
→ List<
String> -
Names of predecessor nodes that must finish before this node runs.
finalinherited
- description → String
-
Human-readable node description.
finalinherited
- function → WorkflowFunction
-
Function invoked for this node.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Stable node name.
finalinherited
- requiresAllPredecessors → bool
-
Whether this node requires all predecessor nodes to complete before running.
no setterinherited
- rerunOnResume → bool
-
Whether the node should rerun after resume.
finalinherited
- retryConfig → RetryConfig?
-
Optional retry configuration.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration?
-
Optional per-attempt timeout.
finalinherited
- waitForOutput → bool
-
Whether the workflow should wait for this output before proceeding.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
WorkflowContext context, Object? nodeInput) → FutureOr< Object?> -
Runs this node with
nodeInput.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited