Package org.flowable.dmn.api
Interface ExecuteDecisionBuilder
- All Known Implementing Classes:
ExecuteDecisionBuilderImpl
public interface ExecuteDecisionBuilder
Helper for execution a decision.
An instance can be obtained through DmnDecisionService.createExecuteDecisionBuilder()
.
decisionKey should be set before calling execute()
to execute a decision.
- Author:
- Tijs Rademakers
-
Method Summary
Modifier and TypeMethodDescriptionactivityId
(String activityId) Set the activity iddecisionKey
(String decisionKey) Set the key of the decisionexecute()
Deprecated.Executes a decision (table)Execute a decision serviceExecute a decision serviceExecute a decision serviceExecute a decision (table)Execute a decision (table)Execute 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 keyexecutionId
(String executionId) Set the execution idallow to search for definition by key in the default tenant when tenant specific search failsinstanceId
(String instanceId) Set the instance idparentDeploymentId
(String parentDeploymentId) Set the parent deployment idSet the scope typeSet the tenantIdAdds a variableSets the variables
-
Method Details
-
decisionKey
Set the key of the decision -
parentDeploymentId
Set the parent deployment id -
instanceId
Set the instance id -
executionId
Set the execution id -
activityId
Set the activity id -
scopeType
Set the scope type -
tenantId
Set the tenantId -
fallbackToDefaultTenant
ExecuteDecisionBuilder fallbackToDefaultTenant()allow to search for definition by key in the default tenant when tenant specific search fails -
variables
Sets the variables -
variable
Adds a variable -
execute
Deprecated.UseexecuteDecision()
to execute a Decision (table)Executes a decision returning one or more output results with variables -
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
DecisionExecutionAuditContainer 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
Executes a decision (table)- Returns:
- A List with one or more rule results mapped to variables
-
executeDecisionService
Execute a decision service- Returns:
- a Map with decision rule result(s) mapped to variables per output decision
-
executeDecisionWithAuditTrail
DecisionExecutionAuditContainer executeDecisionWithAuditTrail()Execute a decision (table)- Returns:
- a
DecisionExecutionAuditContainer
-
executeDecisionServiceWithAuditTrail
DecisionServiceExecutionAuditContainer executeDecisionServiceWithAuditTrail()Execute a decision service- Returns:
- a
DecisionServiceExecutionAuditContainer
-
executeDecisionWithSingleResult
Execute a decision (table)- 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(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.
-
buildExecuteDecisionContext
ExecuteDecisionContext buildExecuteDecisionContext()
-
executeDecision()
to execute a Decision (table)