org.drools.spi
Interface Consequence

All Superinterfaces:
SemanticComponent
All Known Subinterfaces:
Action, ConfigurableConsequence
All Known Implementing Classes:
BlockConsequence, BlockConsequence, JellyConsequence

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, WorkingMemory workingMemory)
          Execute the consequence for the supplied matching Tuple.
 

Method Detail

invoke

public void invoke(Tuple tuple,
                   WorkingMemory workingMemory)
            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-2003 The Werken Company. All Rights Reserved.