Stage class
Stage definition for pipelines and workflows.
Constructors
-
Stage({required String id, required String name, required String handler, int order = 0, Map<
String, String> inputMapping = const {}, Map<String, String> outputMapping = const {}, String? condition, List<String> ? dependsOn, Duration? timeout, StageRetryConfig? retryConfig, OnFailure onFailure = OnFailure.fail, Map<String, dynamic> config = const {}}) -
const
Properties
- condition → String?
-
Condition expression for skipping.
final
-
config
→ Map<
String, dynamic> -
Stage configuration.
final
-
dependsOn
→ List<
String> ? -
Stage dependencies.
final
- handler → String
-
Handler to execute.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stage identifier.
final
-
inputMapping
→ Map<
String, String> -
Input mapping (state key -> handler input key).
final
- name → String
-
Stage name.
final
- onFailure → OnFailure
-
Failure handling strategy.
final
- order → int
-
Execution order.
final
-
outputMapping
→ Map<
String, String> -
Output mapping (handler output key -> state key).
final
- retryConfig → StageRetryConfig?
-
Retry configuration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration?
-
Timeout for this stage.
final
Methods
-
copyWith(
{String? id, String? name, String? handler, int? order, Map< String, String> ? inputMapping, Map<String, String> ? outputMapping, String? condition, List<String> ? dependsOn, Duration? timeout, StageRetryConfig? retryConfig, OnFailure? onFailure, Map<String, dynamic> ? config}) → Stage - Copy with modifications.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited