Package org.drools.core.spi
Interface Consequence
-
- All Superinterfaces:
Invoker
,RuleComponent
- All Known Subinterfaces:
ConsequenceStub
- All Known Implementing Classes:
Consequence.SafeConsequence
public interface Consequence extends Invoker
Consequence to be fired upon successful match of aRule
.- See Also:
org.kie.rule.Rule
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Consequence.SafeConsequence
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
evaluate(KnowledgeHelper knowledgeHelper, WorkingMemory workingMemory)
Execute the consequence for the supplied matchingTuple
.String
getName()
static boolean
isCompiledInvoker(Consequence consequence)
-
-
-
Method Detail
-
getName
String getName()
-
evaluate
void evaluate(KnowledgeHelper knowledgeHelper, WorkingMemory workingMemory) throws Exception
Execute the consequence for the supplied matchingTuple
.- Parameters:
knowledgeHelper
-workingMemory
- The working memory session.- Throws:
ConsequenceException
- If an error occurs while attempting to invoke the consequence.Exception
-
isCompiledInvoker
static boolean isCompiledInvoker(Consequence consequence)
-
-