org.drools.semantics.groovy
Class GroovyBlockConsequence

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

public class GroovyBlockConsequence
extends GroovyInterp
implements Consequence

Groovy block semantics Consequence.

See Also:
Serialized Form
 

Constructor Summary
GroovyBlockConsequence(java.lang.String text, Rule rule)
          Construct.
 
Method Summary
 void invoke(Tuple tuple, WorkingMemory workingMemory)
          Execute the consequence for the supplied matching Tuple.
 
Methods inherited from class org.drools.semantics.groovy.GroovyInterp
getCode, getRule, getText, setUpDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyBlockConsequence

public GroovyBlockConsequence(java.lang.String text,
                              Rule rule)
Construct.

Parameters:
text - The block text.
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.