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 |
compile(MVELDialectRuntimeData runtimeData,
RuleImpl rule) |
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 ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void compile(MVELDialectRuntimeData runtimeData)
compile in interface MVELCompileablepublic void compile(MVELDialectRuntimeData runtimeData, RuleImpl rule)
compile in interface MVELCompileablepublic void evaluate(KnowledgeHelper knowledgeHelper, WorkingMemory workingMemory) throws Exception
ConsequenceTuple.evaluate in interface ConsequenceworkingMemory - The working memory session.ConsequenceException - If an error occurs while attempting to invoke the
consequence.Exceptionpublic Serializable getCompExpr()
public String getName()
getName in interface ConsequenceCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.