org.drools.semantics.java
Class JavaBlockConsequence

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

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)
          Execute the consequence for the supplied matching Tuple.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaBlockConsequence

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

Throws:
java.lang.Exception
Parameters:
block - The statement block.
rule - The rule.
Method Detail

invoke

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object