org.drools.base.mvel
Class MVELConsequence
java.lang.Object
org.drools.base.mvel.MVELConsequence
- All Implemented Interfaces:
- Externalizable, Serializable, MVELCompileable, Consequence, Invoker, RuleComponent
public class MVELConsequence
- extends Object
- implements Consequence, MVELCompileable, Externalizable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MVELConsequence
public MVELConsequence()
MVELConsequence
public MVELConsequence(MVELCompilationUnit unit,
String id)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
compile
public void compile(MVELDialectRuntimeData runtimeData)
- Specified by:
compile
in interface MVELCompileable
evaluate
public void evaluate(KnowledgeHelper knowledgeHelper,
WorkingMemory workingMemory)
throws Exception
- Description copied from interface:
Consequence
- Execute the consequence for the supplied matching
Tuple
.
- Specified by:
evaluate
in interface Consequence
workingMemory
- The working memory session.
- Throws:
ConsequenceException
- If an error occurs while attempting to invoke the
consequence.
Exception
getCompExpr
public Serializable getCompExpr()
getName
public String getName()
- Specified by:
getName
in interface Consequence
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.