Interface Action

  • 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 Action
    This interface represents a rule's action.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Method Detail

      • execute

        void execute​(Facts facts)
              throws Exception
        Execute the action when the rule's condition evaluates to true.
        Parameters:
        facts - known at the time of execution of the action
        Throws:
        Exception - when unable to execute the action