org.drools.semantics.groovy
Class GroovyBlockConsequence
java.lang.Object
org.drools.semantics.groovy.GroovyInterp
org.drools.semantics.groovy.GroovyBlockConsequence
- All Implemented Interfaces:
- Serializable, Consequence, SemanticComponent
public class GroovyBlockConsequence
- extends GroovyInterp
- implements Consequence
Groovy block semantics Consequence
.
- Author:
- James Strachan , bob mcwhirter , Christiaan ten Klooster
- See Also:
- Serialized Form
Method Summary |
void |
invoke(Tuple tuple)
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 |
GroovyBlockConsequence
public GroovyBlockConsequence(String text,
Rule rule)
- Construct.
- Parameters:
text
- The block text.rule
- The rule.
invoke
public void invoke(Tuple tuple)
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-2005 The Codehaus. All Rights Reserved.