Class ExpressionCondition

  • All Implemented Interfaces:
    ICondition

    public class ExpressionCondition
    extends java.lang.Object
    implements ICondition
    • Method Detail

      • evaluate

        public IFuture<Tuple2<java.lang.Boolean,​java.lang.Object>> evaluate​(IEvent event)
        Evaluate the condition.
        Specified by:
        evaluate in interface ICondition
        Parameters:
        event - The event.
        Returns:
        True, if condition is met (plus additional user data).
      • getExpression

        public UnparsedExpression getExpression()
        Get the expression.
        Returns:
        The expression.
      • setExpression

        public void setExpression​(UnparsedExpression expression)
        Set the expression.
        Parameters:
        expression - The expression to set.
      • getFetcher

        public SimpleValueFetcher getFetcher()
        Get the fetcher.
        Returns:
        The fetcher.
      • setFetcher

        public void setFetcher​(SimpleValueFetcher fetcher)
        Set the fetcher.
        Parameters:
        fetcher - The fetcher to set.