StepContext<T extends DataObject> class
What a step handler knows about the execution it is part of.
- Implementers
Constructors
-
StepContext({required T element, required int attempt, required String idempotencyKey, required Future<
void> lockExpired, required Workflow<T> workflow}) -
const
Properties
- attempt → int
-
Number of this attempt, starting at 1.
final
- element → T
-
The element as it was read while holding its lock.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- idempotencyKey → String
-
Identifies the event the step handles.
final
-
lockExpired
→ Future<
void> -
Completes when the lock protecting element expired.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
workflow
→ Workflow<
T> -
The workflow the step belongs to, for example to start elements or send
signals from a step. (A workflow service can not
Finditself, so its steps can not look it up.)final
Methods
-
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