Package org.flowable.dmn.api
Interface ExecuteDecisionBuilder
-
public interface ExecuteDecisionBuilderHelper 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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ExecuteDecisionBuilderactivityId(String activityId)Set the activity idExecuteDecisionContextbuildExecuteDecisionContext()ExecuteDecisionBuilderdecisionKey(String decisionKey)Set the key of the decisionList<Map<String,Object>>execute()Deprecated.UseexecuteDecision()to execute a Decision (table)List<Map<String,Object>>executeDecision()Executes a decision (table)Map<String,List<Map<String,Object>>>executeDecisionService()Execute a decision serviceDecisionServiceExecutionAuditContainerexecuteDecisionServiceWithAuditTrail()Execute a decision serviceMap<String,Object>executeDecisionServiceWithSingleResult()Execute a decision serviceDecisionExecutionAuditContainerexecuteDecisionWithAuditTrail()Execute a decision (table)Map<String,Object>executeDecisionWithSingleResult()Execute a decision (table)DecisionExecutionAuditContainerexecuteWithAuditTrail()Execute a single decision or a decision service depending on the provided decision keyMap<String,Object>executeWithSingleResult()Execute a single decision or a decision service depending on the provided decision keyExecuteDecisionBuilderexecutionId(String executionId)Set the execution idExecuteDecisionBuilderfallbackToDefaultTenant()allow to search for definition by key in the default tenant when tenant specific search failsExecuteDecisionBuilderinstanceId(String instanceId)Set the instance idExecuteDecisionBuilderparentDeploymentId(String parentDeploymentId)Set the parent deployment idExecuteDecisionBuilderscopeType(String scopeType)Set the scope typeExecuteDecisionBuildertenantId(String tenantId)Set the tenantIdExecuteDecisionBuildervariable(String variableName, Object value)Adds a variableExecuteDecisionBuildervariables(Map<String,Object> variables)Sets the variables
-
-
-
Method Detail
-
decisionKey
ExecuteDecisionBuilder decisionKey(String decisionKey)
Set the key of the decision
-
parentDeploymentId
ExecuteDecisionBuilder parentDeploymentId(String parentDeploymentId)
Set the parent deployment id
-
instanceId
ExecuteDecisionBuilder instanceId(String instanceId)
Set the instance id
-
executionId
ExecuteDecisionBuilder executionId(String executionId)
Set the execution id
-
activityId
ExecuteDecisionBuilder activityId(String activityId)
Set the activity id
-
scopeType
ExecuteDecisionBuilder scopeType(String scopeType)
Set the scope type
-
tenantId
ExecuteDecisionBuilder tenantId(String tenantId)
Set the tenantId
-
fallbackToDefaultTenant
ExecuteDecisionBuilder fallbackToDefaultTenant()
allow to search for definition by key in the default tenant when tenant specific search fails
-
variables
ExecuteDecisionBuilder variables(Map<String,Object> variables)
Sets the variables
-
variable
ExecuteDecisionBuilder variable(String variableName, Object value)
Adds a variable
-
execute
@Deprecated List<Map<String,Object>> execute()
Deprecated.UseexecuteDecision()to execute a Decision (table)Executes a decision returning one or more output results with variables
-
executeWithSingleResult
Map<String,Object> 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
FlowableExceptionwill 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
DecisionExecutionAuditContainerwhen a decision was executed or aDecisionServiceExecutionAuditContainerwhen a decision service was executed
-
executeDecision
List<Map<String,Object>> executeDecision()
Executes a decision (table)- Returns:
- A List with one or more rule results mapped to variables
-
executeDecisionService
Map<String,List<Map<String,Object>>> 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
Map<String,Object> executeDecisionWithSingleResult()
Execute a decision (table)- Returns:
- a Map with the decision result.
An
FlowableExceptionwill be thrown when multiple rules were hit.
-
executeDecisionServiceWithSingleResult
Map<String,Object> 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
FlowableExceptionwill be thrown when multiple rules were hit.
-
buildExecuteDecisionContext
ExecuteDecisionContext buildExecuteDecisionContext()
-
-