Package org.flowable.dmn.engine.impl
Class DmnDecisionServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<DmnEngineConfiguration>
org.flowable.dmn.engine.impl.DmnDecisionServiceImpl
- All Implemented Interfaces:
DmnDecisionService
public class DmnDecisionServiceImpl
extends CommonEngineServiceImpl<DmnEngineConfiguration>
implements DmnDecisionService
- Author:
- Yvo Swillens, Valentin Zickner
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutorFields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomposeDecisionResult(ExecuteDecisionContext executeDecisionContext) composeDecisionServiceResult(ExecuteDecisionContext executeDecisionContext) composeEvaluateDecisionResult(ExecuteDecisionContext executeDecisionContext) Create a builder to execute a decision or decision service.executeDecision(ExecuteDecisionBuilder builder) Execute a single decisionExecute a decision serviceExecute a decision serviceExecute a decision serviceExecute a single decisionExecute a single decisionExecute a single decision or a decision service depending on the provided decision keyExecute a single decision or a decision service depending on the provided decision keyprotected DecisionExecutionAuditContainerpersistDecisionAudit(ExecuteDecisionContext executeDecisionContext) Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
DmnDecisionServiceImpl
-
-
Method Details
-
createExecuteDecisionBuilder
Description copied from interface:DmnDecisionServiceCreate a builder to execute a decision or decision service.- Specified by:
createExecuteDecisionBuilderin interfaceDmnDecisionService- Returns:
- the
ExecuteDecisionBuilderbuild
-
executeDecision
Description copied from interface:DmnDecisionServiceExecute a single decision- Specified by:
executeDecisionin interfaceDmnDecisionService- Returns:
- a List with decision result(s)
-
executeDecisionService
Description copied from interface:DmnDecisionServiceExecute a decision service- Specified by:
executeDecisionServicein interfaceDmnDecisionService- Returns:
- a Map with decision result(s) per output decision
-
executeWithSingleResult
Description copied from interface:DmnDecisionServiceExecute a single decision or a decision service depending on the provided decision key- Specified by:
executeWithSingleResultin interfaceDmnDecisionService- Returns:
- a Map with the decision(s) result(s). When multiple output decisions use the same
variable IDs the last occurrence will be present in the Map.
An
FlowableExceptionwill be thrown when multiple rules were hit.
-
executeDecisionWithSingleResult
Description copied from interface:DmnDecisionServiceExecute a single decision- Specified by:
executeDecisionWithSingleResultin interfaceDmnDecisionService- Returns:
- a Map with the decision result.
An
FlowableExceptionwill be thrown when multiple rules were hit.
-
executeDecisionServiceWithSingleResult
Description copied from interface:DmnDecisionServiceExecute a decision service- Specified by:
executeDecisionServiceWithSingleResultin interfaceDmnDecisionService- Returns:
- a Map with the decision service result.
An
FlowableExceptionwill be thrown when multiple rules were hit.
-
executeWithAuditTrail
Description copied from interface:DmnDecisionServiceExecute a single decision or a decision service depending on the provided decision key- Specified by:
executeWithAuditTrailin interfaceDmnDecisionService- Returns:
- the
DecisionExecutionAuditContainerwhen a decision was executed or aDecisionServiceExecutionAuditContainerwhen a decision service was executed
-
executeDecisionWithAuditTrail
public DecisionExecutionAuditContainer executeDecisionWithAuditTrail(ExecuteDecisionBuilder builder) Description copied from interface:DmnDecisionServiceExecute a single decision- Specified by:
executeDecisionWithAuditTrailin interfaceDmnDecisionService- Returns:
- a List with decision result(s)
-
executeDecisionServiceWithAuditTrail
public DecisionServiceExecutionAuditContainer executeDecisionServiceWithAuditTrail(ExecuteDecisionBuilder builder) Description copied from interface:DmnDecisionServiceExecute a decision service- Specified by:
executeDecisionServiceWithAuditTrailin interfaceDmnDecisionService- Returns:
- a
DecisionServiceExecutionAuditContainerwhen a decision service was executed
-
composeEvaluateDecisionResult
-
composeDecisionResult
protected List<Map<String,Object>> composeDecisionResult(ExecuteDecisionContext executeDecisionContext) -
composeDecisionServiceResult
-
persistDecisionAudit
protected DecisionExecutionAuditContainer persistDecisionAudit(ExecuteDecisionContext executeDecisionContext)
-