ActionDefinition class
Represents an action definition. An action definition is a set of parameters that can be used to execute an action.
An action definition has the following properties:
- operation: The operation to be executed.
- parameters: A list of parameters to be used in the operation.
The operation property can be one of the following built-in operations or any user-defined operation:
print
: Prints the output to the console.expression
: Evaluates a Dart expression.stop
: Stops further execution of the rule or other actions in the pipeline.chain
: All actions in the chain must be executed in the order they are defined.parallel
: All actions in the parallel block must be executed in parallel.pipe
: The output of one action is passed as input to the next action.
Constructors
- ActionDefinition.new({required String operation, required List parameters})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- operation → String
-
The operation to be executed.
final
- parameters → List
-
A list of parameters to be used in the operation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the ActionDefinition object to a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → ActionDefinition - Creates an ActionDefinition object from a JSON object.