DecisionTask class
A structure that represents a decision task. Decision tasks are sent to deciders in order for them to make decisions.
Constructors
-
DecisionTask.new({required List<
HistoryEvent> events, required int startedEventId, required String taskToken, required WorkflowExecution workflowExecution, required WorkflowType workflowType, String? nextPageToken, int? previousStartedEventId}) -
DecisionTask.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
events
→ List<
HistoryEvent> -
A paginated list of history events of the workflow execution. The decider
uses this during the processing of the decision task.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nextPageToken → String?
-
If a
NextPageToken
was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token innextPageToken
. Keep all other arguments unchanged.final - previousStartedEventId → int?
-
The ID of the DecisionTaskStarted event of the previous decision task of
this workflow execution that was processed by the decider. This can be used
to determine the events in the history new since the last decision task
received by the decider.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startedEventId → int
-
The ID of the
DecisionTaskStarted
event recorded in the history.final - taskToken → String
-
The opaque string used as a handle on the task. This token is used by
workers to communicate progress and response information back to the system
about the task.
final
- workflowExecution → WorkflowExecution
-
The workflow execution for which this decision task was created.
final
- workflowType → WorkflowType
-
The type of the workflow execution for which this decision task was created.
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