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 Summary

    Modifier and Type
    Method
    Description
    void
    execute(Facts facts)
    Execute the action when the rule's condition evaluates to true.
  • Method Details

    • 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