Package org.rossonet.ext.rules.api
Interface Action
-
- All Known Implementing Classes:
JexlAction,MVELAction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ActionThis interface represents a rule's action.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(Facts facts)Execute the action when the rule's condition evaluates to true.
-
-
-
Method Detail
-
execute
void execute(Facts facts) throws java.lang.Exception
Execute the action when the rule's condition evaluates to true.- Parameters:
facts- known at the time of execution of the action- Throws:
java.lang.Exception- when unable to execute the action
-
-