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 org.camunda.bpm.engine.variable.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() |
org.camunda.bpm.engine.variable.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 org.camunda.bpm.engine.variable.VariableMap variables
protected String tenantId
protected boolean isTenantIdSet
public ConditionEvaluationBuilderImpl(CommandExecutor commandExecutor)
public CommandExecutor getCommandExecutor()
public String getBusinessKey()
public String getProcessDefinitionId()
public org.camunda.bpm.engine.variable.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 ConditionEvaluationBuilder
businessKey
- the businessKey to correlate on.public ConditionEvaluationBuilder processDefinitionId(String processDefinitionId)
ConditionEvaluationBuilder
Correlate the condition such that a process definition with the given id is selected.
Is only supported for ConditionEvaluationBuilder.evaluateStartConditions()
.
processDefinitionId
in interface ConditionEvaluationBuilder
processDefinitionId
- the id of the process definition to correlate on.public ConditionEvaluationBuilder setVariable(String variableName, Object variableValue)
ConditionEvaluationBuilder
Pass a variable to the condition.
Invoking this method multiple times allows passing multiple variables.
setVariable
in interface ConditionEvaluationBuilder
variableName
- the name of the variable to setvariableValue
- the value of the variable to setpublic ConditionEvaluationBuilder setVariables(Map<String,Object> variables)
ConditionEvaluationBuilder
Pass a variables to the condition.
setVariables
in interface ConditionEvaluationBuilder
variables
- the map of variablespublic ConditionEvaluationBuilder tenantId(String tenantId)
ConditionEvaluationBuilder
tenantId
in interface ConditionEvaluationBuilder
tenantId
- the id of the tenantpublic ConditionEvaluationBuilder withoutTenantId()
ConditionEvaluationBuilder
withoutTenantId
in interface ConditionEvaluationBuilder
public List<ProcessInstance> evaluateStartConditions()
evaluateStartConditions
in interface ConditionEvaluationBuilder
Copyright © 2020. All rights reserved.