org.drools.spi
Interface Consequence

All Superinterfaces:
SemanticComponent, Serializable
All Known Implementing Classes:
GroovyBlockConsequence, JavaBlockConsequence, PojoConsequence, PythonBlockConsequence

public interface Consequence
extends SemanticComponent

Consequence to be fired upon successful match of a Rule.

Author:
bob mcwhirter
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.

Parameters:
tuple - The matching tuple.
workingMemory - The working memory session.
Throws:
ConsequenceException - If an error occurs while attempting to invoke the consequence.


Copyright © 2001-2005 The Codehaus. All Rights Reserved.