org.drools.spi
Interface Consequence

All Superinterfaces:
SemanticComponent, java.io.Serializable
All Known Implementing Classes:
GroovyBlockConsequence, JavaBlockConsequence, PojoConsequence, 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)
          Execute the consequence for the supplied matching Tuple.
 

Method Detail

invoke

void invoke(Tuple tuple)
            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.