org.drools.semantics.java
Class JavaBlockConsequence

java.lang.Object
  extended byorg.drools.semantics.java.JavaBlockConsequence
All Implemented Interfaces:
Consequence, SemanticComponent, java.io.Serializable

public class JavaBlockConsequence
extends java.lang.Object
implements Consequence, java.io.Serializable

Java block semantics Consequence.

See Also:
Serialized Form
 

Nested Class Summary
static interface JavaBlockConsequence.Script
           
 
Constructor Summary
JavaBlockConsequence(Rule rule, int id, java.lang.String block)
          Construct.
 
Method Summary
 void invoke(Tuple tuple, WorkingMemory workingMemory)
          Execute the consequence for the supplied matching Tuple.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaBlockConsequence

public JavaBlockConsequence(Rule rule,
                            int id,
                            java.lang.String block)
                     throws java.lang.Exception
Construct.

Parameters:
block - The statement block.
rule - The rule.
Method Detail

invoke

public void invoke(Tuple tuple,
                   WorkingMemory workingMemory)
            throws ConsequenceException
Execute the consequence for the supplied matching Tuple.

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