public class ConditionEvaluationBuilderImpl extends Object implements ConditionEvaluationBuilder
| Modifier and Type | Field and Description |
|---|---|
protected String |
businessKey |
protected CommandExecutor |
commandExecutor |
protected boolean |
isTenantIdSet |
protected String |
processDefinitionId |
protected String |
tenantId |
protected VariableMap |
variables |
| Constructor and Description |
|---|
ConditionEvaluationBuilderImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
List<ProcessInstance> |
evaluateStartConditions() |
protected <T> T |
execute(Command<T> command) |
String |
getBusinessKey() |
CommandExecutor |
getCommandExecutor() |
String |
getProcessDefinitionId() |
String |
getTenantId() |
VariableMap |
getVariables() |
boolean |
isTenantIdSet() |
ConditionEvaluationBuilder |
processDefinitionId(String processDefinitionId)
Correlate the condition such that a process definition with the given id is selected.
|
ConditionEvaluationBuilder |
processInstanceBusinessKey(String businessKey)
Correlate the condition such that the process instance has a business key with
the given name.
|
ConditionEvaluationBuilder |
setVariable(String variableName,
Object variableValue)
Pass a variable to the condition.
|
ConditionEvaluationBuilder |
setVariables(Map<String,Object> variables)
Pass a variables to the condition.
|
ConditionEvaluationBuilder |
tenantId(String tenantId)
Specify a tenant to correlate a condition to.
|
ConditionEvaluationBuilder |
withoutTenantId()
Specify that the condition can only be correlated on process
definitions which belongs to no tenant.
|
protected CommandExecutor commandExecutor
protected String businessKey
protected String processDefinitionId
protected VariableMap variables
protected String tenantId
protected boolean isTenantIdSet
public ConditionEvaluationBuilderImpl(CommandExecutor commandExecutor)
public CommandExecutor getCommandExecutor()
public String getBusinessKey()
public String getProcessDefinitionId()
public VariableMap getVariables()
public String getTenantId()
public boolean isTenantIdSet()
protected <T> T execute(Command<T> command)
public ConditionEvaluationBuilder processInstanceBusinessKey(String businessKey)
ConditionEvaluationBuilder
Correlate the condition such that the process instance has a business key with
the given name. If the condition is correlated to a conditional start
event then the given business key is set on the created process instance.
Is only supported for ConditionEvaluationBuilder.evaluateStartConditions().
processInstanceBusinessKey in interface ConditionEvaluationBuilderbusinessKey - the businessKey to correlate on.public ConditionEvaluationBuilder processDefinitionId(String processDefinitionId)
ConditionEvaluationBuilderCorrelate the condition such that a process definition with the given id is selected.
Is only supported for ConditionEvaluationBuilder.evaluateStartConditions().
processDefinitionId in interface ConditionEvaluationBuilderprocessDefinitionId - the id of the process definition to correlate on.public ConditionEvaluationBuilder setVariable(String variableName, Object variableValue)
ConditionEvaluationBuilderPass a variable to the condition.
Invoking this method multiple times allows passing multiple variables.
setVariable in interface ConditionEvaluationBuildervariableName - the name of the variable to setvariableValue - the value of the variable to setpublic ConditionEvaluationBuilder setVariables(Map<String,Object> variables)
ConditionEvaluationBuilderPass a variables to the condition.
setVariables in interface ConditionEvaluationBuildervariables - the map of variablespublic ConditionEvaluationBuilder tenantId(String tenantId)
ConditionEvaluationBuildertenantId in interface ConditionEvaluationBuildertenantId - the id of the tenantpublic ConditionEvaluationBuilder withoutTenantId()
ConditionEvaluationBuilderwithoutTenantId in interface ConditionEvaluationBuilderpublic List<ProcessInstance> evaluateStartConditions()
evaluateStartConditions in interface ConditionEvaluationBuilderCopyright © 2022. All rights reserved.