@PersistantProperty(property="condition") @PersistantProperty(property="thens",alias="then") @PersistantProperty(property="elseifs",alias="elseif") @PersistantProperty(property="elses",alias="else") @PersistantProperty(property="stopAtFirstValidatedCondition",defaultValue="false") public class MRule extends AbstractExecutable
Modifier and Type | Class and Description |
---|---|
static class |
MRule.ElseIf |
IExecutable.ValueReturning
Constructor and Description |
---|
MRule()
Empty Constructor.
|
MRule(ICondition condition,
List<IExecutable> thens)
Constructor without thens
|
MRule(ICondition condition,
List<IExecutable> thens,
List<IExecutable> elses)
Complete constructor
|
MRule(List<IExecutable> thens)
Constructor typically used for default rule
|
combineResults, compile, compileExecutables, execute, execute, execute, getProperties, getProperty, hasProperties, hasProperty, removeProperty, setProperty
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, toString, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public static final String RULE_ID
public MRule()
public MRule(List<IExecutable> thens)
public MRule(ICondition condition, List<IExecutable> thens)
public MRule(ICondition condition, List<IExecutable> thens, List<IExecutable> elses)
protected void compileExecutable(ICompilationContext ctxt) throws MRuleValidationException
AbstractExecutable
AbstractExecutable.compile(ICompilationContext)
to perform compilation operations.compileExecutable
in class AbstractExecutable
MRuleValidationException
protected IExecutionResult internalExecute(IExecutionContext ctxt) throws MExecutionException
internalExecute
in class AbstractExecutable
true
("thens" have been executed)false
("elses" have been executed)ExecutionResultState.combineActionState(ExecutionResultState)
) :
MExecutionException
public void debugEntering(IExecutionContext ctxt, IAddon addon)
AbstractExecutable.execute(IExecutionContext)
.public String getImplementationId()
IAddon
public MRule clone()
IAddon
clone
in interface IAddon
clone
in interface IMRulesObject
clone
in interface IExecutable
clone
in class AbstractExecutable
public void toString(OuterWithLevel outer) throws IOException
Outable
OuterWithLevel
.IOException
public ICondition getCondition()
public void setCondition(ICondition conditions)
public List<? extends IExecutable> getThens()
public void setThens(List<? extends IExecutable> thens)
public List<MRule.ElseIf> getElseifs()
public void setElseifs(List<MRule.ElseIf> elseifs)
public List<? extends IExecutable> getElses()
public void setElses(List<? extends IExecutable> elses)
public boolean isStopAtFirstValidatedCondition()
public void setStopAtFirstValidatedCondition(boolean stopAtFirstValidatedCondition)