Interface Consequence<T extends ConsequenceContext>

All Superinterfaces:
Invoker, RuleComponent

public interface Consequence<T extends ConsequenceContext> extends Invoker
Consequence to be fired upon successful match of a Rule.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    evaluate(T knowledgeHelper, ValueResolver valueResolver)
    Execute the consequence for the supplied matching Tuple.
     

    Methods inherited from interface org.drools.base.rule.accessor.Invoker

    wrapsCompiledInvoker
  • Method Details

    • getName

      String getName()
    • evaluate

      void evaluate(T knowledgeHelper, ValueResolver valueResolver) throws Exception
      Execute the consequence for the supplied matching Tuple.
      Parameters:
      knowledgeHelper -
      valueResolver - The working memory session.
      Throws:
      ConsequenceException - If an error occurs while attempting to invoke the consequence.
      Exception