org.drools.base.mvel
Class MVELConsequence

java.lang.Object
  extended by 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

Constructor Summary
MVELConsequence()
           
MVELConsequence(MVELCompilationUnit unit, String id)
           
 
Method Summary
 void compile(MVELDialectRuntimeData runtimeData)
           
 void evaluate(KnowledgeHelper knowledgeHelper, WorkingMemory workingMemory)
          Execute the consequence for the supplied matching Tuple.
 Serializable getCompExpr()
           
 String getName()
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MVELConsequence

public MVELConsequence()

MVELConsequence

public MVELConsequence(MVELCompilationUnit unit,
                       String id)
Method Detail

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.