Package org.flowable.dmn.api
Interface DmnDecisionService
- All Known Implementing Classes:
DmnDecisionServiceImpl
public interface DmnDecisionService
Service for executing DMN decisions
- Author:
- Tijs Rademakers, Yvo Swillens
-
Method Summary
Modifier and TypeMethodDescriptionCreate 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 key
-
Method Details
-
createExecuteDecisionBuilder
ExecuteDecisionBuilder createExecuteDecisionBuilder()Create a builder to execute a decision or decision service.- Returns:
- the
ExecuteDecisionBuilder
build
-
executeWithSingleResult
Execute a single decision or a decision service depending on the provided decision key- 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
FlowableException
will be thrown when multiple rules were hit.
-
executeWithAuditTrail
Execute a single decision or a decision service depending on the provided decision key- Returns:
- the
DecisionExecutionAuditContainer
when a decision was executed or aDecisionServiceExecutionAuditContainer
when a decision service was executed
-
executeDecision
Execute a single decision- Returns:
- a List with decision result(s)
-
executeDecisionService
Execute a decision service- Returns:
- a Map with decision result(s) per output decision
-
executeDecisionWithSingleResult
Execute a single decision- Returns:
- a Map with the decision result.
An
FlowableException
will be thrown when multiple rules were hit.
-
executeDecisionServiceWithSingleResult
Execute a decision service- Returns:
- a Map with the decision service result.
An
FlowableException
will be thrown when multiple rules were hit.
-
executeDecisionWithAuditTrail
Execute a single decision- Returns:
- a List with decision result(s)
-
executeDecisionServiceWithAuditTrail
DecisionServiceExecutionAuditContainer executeDecisionServiceWithAuditTrail(ExecuteDecisionBuilder builder) Execute a decision service- Returns:
- a
DecisionServiceExecutionAuditContainer
when a decision service was executed
-