Interface RuleEvaluator

  • All Known Implementing Classes:
    RuleEvaluatorImpl

    public interface RuleEvaluator
    The Rule Evaluator evaluates the operation and returns details of the commands to implement those operations.

    It is configured with a list of scenarios.

    • Method Detail

      • createContext

        EvaluatorContext createContext​(java.util.Map<java.lang.String,​java.lang.Object> sessionContext)
        Create a new evaluator context. Typically for a particular folder. An evaluator context groups operations together.
        Returns:
        the new context.
      • evaluate

        Command evaluate​(EvaluatorContext context,
                         Operation operation)
        Evaluate the scenarios contained within the context against the current operation
        Parameters:
        context - - the context to evaluate the operation
        operation - - the operation to be evaluated.
        Returns:
        Command the command to fulfil the operation