org.drools.semantics.jelly
Class JellyConsequence

java.lang.Object
  |
  +--org.drools.semantics.jelly.JellyConsequence
All Implemented Interfaces:
Consequence, SemanticComponent

public class JellyConsequence
extends java.lang.Object
implements Consequence

Jelly-script semantics Consequence.

Version:
$Id: JellyConsequence.java,v 1.5 2002/08/28 20:24:59 bob Exp $
Author:
bob mcwhirteR

Constructor Summary
JellyConsequence(org.apache.commons.jelly.Script script, org.apache.commons.jelly.XMLOutput output)
          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

JellyConsequence

public JellyConsequence(org.apache.commons.jelly.Script script,
                        org.apache.commons.jelly.XMLOutput output)
Construct.

Parameters:
script - The script to execute when matched.
output - The output sink for the script.
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
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.