Package org.flowable.dmn.engine.impl
Class RuleEngineExecutorImpl
- java.lang.Object
-
- org.flowable.dmn.engine.impl.RuleEngineExecutorImpl
-
- All Implemented Interfaces:
RuleEngineExecutor
public class RuleEngineExecutorImpl extends Object implements RuleEngineExecutor
- Author:
- Yvo Swillens
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionManagerexpressionManagerprotected Map<String,AbstractHitPolicy>hitPolicyBehaviorsprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapper
-
Constructor Summary
Constructors Constructor Description RuleEngineExecutorImpl(Map<String,AbstractHitPolicy> hitPolicyBehaviors, ExpressionManager expressionManager, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
-
-
-
Field Detail
-
hitPolicyBehaviors
protected Map<String,AbstractHitPolicy> hitPolicyBehaviors
-
expressionManager
protected ExpressionManager expressionManager
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Detail
-
RuleEngineExecutorImpl
public RuleEngineExecutorImpl(Map<String,AbstractHitPolicy> hitPolicyBehaviors, ExpressionManager expressionManager, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
execute
public DecisionExecutionAuditContainer execute(Decision decision, ExecuteDecisionContext executeDecisionInfo)
Executes the given decision and creates the outcome results- Specified by:
executein interfaceRuleEngineExecutor- Parameters:
decision- the DMN decisionexecuteDecisionInfo-- Returns:
- updated execution variables map
-
evaluateDecisionTable
protected void evaluateDecisionTable(DecisionTable decisionTable, ELExecutionContext executionContext)
-
executeRule
protected boolean executeRule(DecisionRule rule, ELExecutionContext executionContext)
-
executeInputExpressionEvaluation
protected Boolean executeInputExpressionEvaluation(RuleInputClauseContainer ruleContainer, ELExecutionContext executionContext)
-
executeOutputEntryAction
protected void executeOutputEntryAction(int ruleNumber, List<RuleOutputClauseContainer> ruleOutputContainers, HitPolicy hitPolicy, ELExecutionContext executionContext)
-
composeOutputEntryResult
protected void composeOutputEntryResult(int ruleNumber, RuleOutputClauseContainer ruleClauseContainer, HitPolicy hitPolicy, ELExecutionContext executionContext)
-
getHitPolicyBehavior
protected AbstractHitPolicy getHitPolicyBehavior(HitPolicy hitPolicy)
-
sanityCheckDecisionTable
protected void sanityCheckDecisionTable(DecisionTable decisionTable)
-
getHitPolicyBehaviors
public Map<String,AbstractHitPolicy> getHitPolicyBehaviors()
- Specified by:
getHitPolicyBehaviorsin interfaceRuleEngineExecutor
-
setHitPolicyBehaviors
public void setHitPolicyBehaviors(Map<String,AbstractHitPolicy> hitPolicyBehaviors)
- Specified by:
setHitPolicyBehaviorsin interfaceRuleEngineExecutor
-
getExpressionManager
public ExpressionManager getExpressionManager()
- Specified by:
getExpressionManagerin interfaceRuleEngineExecutor
-
setExpressionManager
public void setExpressionManager(ExpressionManager expressionManager)
- Specified by:
setExpressionManagerin interfaceRuleEngineExecutor
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
- Specified by:
getObjectMapperin interfaceRuleEngineExecutor
-
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
- Specified by:
setObjectMapperin interfaceRuleEngineExecutor
-
-