Class JexlCondition

  • All Implemented Interfaces:
    Condition

    public class JexlCondition
    extends java.lang.Object
    implements Condition
    • Constructor Summary

      Constructors 
      Constructor Description
      JexlCondition​(java.lang.String expression)  
      JexlCondition​(java.lang.String expression, org.apache.commons.jexl3.JexlEngine jexl)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(Facts facts)
      Evaluate the condition according to the known facts.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JexlCondition

        public JexlCondition​(java.lang.String expression)
      • JexlCondition

        public JexlCondition​(java.lang.String expression,
                             org.apache.commons.jexl3.JexlEngine jexl)
    • Method Detail

      • evaluate

        public boolean evaluate​(Facts facts)
        Description copied from interface: Condition
        Evaluate the condition according to the known facts.
        Specified by:
        evaluate in interface Condition
        Parameters:
        facts - known when evaluating the rule.
        Returns:
        true if the rule should be triggered, false otherwise