org.drools.spi
Interface Consequence
- All Superinterfaces:
- SemanticComponent, java.io.Serializable
- All Known Implementing Classes:
- FactorConsequence, GroovyBlockConsequence, JavaBlockConsequence, PythonBlockConsequence
- public interface Consequence
- extends SemanticComponent
Consequence to be fired upon successful match of a Rule
.
- See Also:
Rule
-

Method Summary |
void |
invoke(Tuple tuple,
WorkingMemory workingMemory)
Execute the consequence for the supplied matching Tuple . |
invoke
public void invoke(Tuple tuple,
WorkingMemory workingMemory)
throws ConsequenceException
- Execute the consequence for the supplied matching
Tuple
.
- Throws:
ConsequenceException
- If an error occurs while attempting to invoke the
consequence.- Parameters:
tuple
- The matching tuple.workingMemory
- The working memory session.