CustomAction class
Represents a custom action that is defined by the user.
The user can define a custom action by providing a name and a function that takes a list of parameters and a RuleContext and returns a Future. The function should return the result of the action.
- Implemented types
Constructors
- CustomAction.new(String _action, Future _function(List, RuleContext))
Properties
Methods
-
execute(
List parameters, RuleContext context) → Future< ActionResult> -
Execute the action with the given parameters and context.
override
-
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