DVWorkflowStep class

One step in a workflow.

Constructors

DVWorkflowStep({String? id, required String type, String? name, Map<String, DVWorkflowValue>? arguments, String? assignTo, Map<String, List<DVWorkflowStep>>? branches})
DVWorkflowStep.call(String action, {Map<String, DVWorkflowValue> arguments = const <String, DVWorkflowValue>{}, String? assignTo})
Calls a registered action, optionally keeping its result.
factory
DVWorkflowStep.condition(DVWorkflowValue condition, {List<DVWorkflowStep> then = const <DVWorkflowStep>[], List<DVWorkflowStep> otherwise = const <DVWorkflowStep>[]})
Branches on the truthiness of condition.
factory
DVWorkflowStep.fromJson(Map<String, Object?> json)
factory
DVWorkflowStep.returns(DVWorkflowValue value)
Ends the workflow with a value.
factory
DVWorkflowStep.set(String variable, DVWorkflowValue value)
Assigns a value to a variable.
factory

Properties

arguments → Map<String, DVWorkflowValue>
Arguments for call, or the single value for set/return.
final
assignTo → String?
For call: the variable the result is stored in, when it is kept.
final
branches → Map<String, List<DVWorkflowStep>>
For condition: the branches, keyed then and else.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
name → String?
For call: the registered action name. For set: the variable name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
call, set, condition, or return.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited
withArgument(String key, DVWorkflowValue? value) → DVWorkflowStep
A copy with one argument set, or removed when value is null.
withAssignTo(String? value) → DVWorkflowStep
A copy storing its result in value, or discarding it when null.
withName(String? value) → DVWorkflowStep
A copy with a different action or variable name.

Operators

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