public class MVELConsequence extends Object implements Consequence, MVELCompileable, Externalizable
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
MVELConsequence() |
MVELConsequence(MVELCompilationUnit unit,
String id,
String consequenceName) |
Modifier and Type | Method and Description |
---|---|
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) |
public MVELConsequence()
public MVELConsequence(MVELCompilationUnit unit, String id, String consequenceName)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void compile(MVELDialectRuntimeData runtimeData)
compile
in interface MVELCompileable
public void evaluate(KnowledgeHelper knowledgeHelper, WorkingMemory workingMemory) throws Exception
Consequence
Tuple
.evaluate
in interface Consequence
workingMemory
- The working memory session.ConsequenceException
- If an error occurs while attempting to invoke the
consequence.Exception
public Serializable getCompExpr()
public String getName()
getName
in interface Consequence
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.