Class ExpressionBasedProposition

java.lang.Object
org.kuali.rice.krms.framework.engine.expression.ExpressionBasedProposition
All Implemented Interfaces:
Proposition

public class ExpressionBasedProposition extends Object implements Proposition
An implementation of Proposition which uses a given Expression<Boolean>
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • ExpressionBasedProposition

      public ExpressionBasedProposition(Expression<Boolean> expression)
      Create an ExpressionBasedProposition with the given value
      Parameters:
      expression - Expression to set the expression to
  • Method Details

    • evaluate

      public PropositionResult evaluate(org.kuali.rice.krms.api.engine.ExecutionEnvironment environment)
      Description copied from interface: Proposition
      Evaluates this proposition -- and in the case of Propositions containing children, those children as well -- and returns the boolean result;
      Specified by:
      evaluate in interface Proposition
      Parameters:
      environment - the ExecutionEnvironment that this Proposition is running in
      Returns:
      the boolean result of evaluation
    • getChildren

      public List<Proposition> getChildren()
      Description copied from interface: Proposition
      Returns the List of child Propositions that belong to this object. If there are no children (e.g. for simple Proposition types), this must return an empty List.
      Specified by:
      getChildren in interface Proposition
      Returns:
      a List containing any child Propositions that belong to this object. Must never return null.
    • isCompound

      public boolean isCompound()
      Description copied from interface: Proposition
      Indicates whether this Proposition can have children.
      Specified by:
      isCompound in interface Proposition
      Returns:
      true if this Proposition can contain child Propositions.