Interface IStatelessRuleSession


  • public interface IStatelessRuleSession

    This interface represents a stateless rule session. Basically, the session holds the rules (compiled from the rule resources which are added into the rule base) and matches that rules against the input objects.
    A stateless session can be called like a function passing it some data and then receiving some results back. The result may be the changed/updated objects or side effects from the rules (e.g. send email).

    API:
    This is a public API.
    • Method Detail

      • execute

        void execute​(Object object)
        Execute the rules on the parameter object.
        Parameters:
        object - The input object for the Rule Engine.
        API:
        This public API is available in IvyScript and Java. It has the visibility NOVICE.
      • execute

        void execute​(Iterable<?> objects)
        Execute the rules on all elements in this collection of objects.
        Parameters:
        objects - The input objects for the Rule Engine.
        API:
        This public API is available in IvyScript and Java. It has the visibility NOVICE.