org.drools.semantics.python
Class PythonBlockConsequence

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

public class PythonBlockConsequence
extends PythonInterp
implements Consequence

Python block semantics Consequence.

See Also:
Serialized Form
 

Constructor Summary
protected PythonBlockConsequence(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.python.PythonInterp
getCode, getGlobals, getGlobals, getNode, getRule, getText, setUpDictionary, stripOuterIndention
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PythonBlockConsequence

protected PythonBlockConsequence(java.lang.String text,
                                 Rule rule)
Construct.

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.