Package org.camunda.bpm.engine.impl
Class ConditionEvaluationBuilderImpl
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.ConditionEvaluationBuilderImpl
 
- 
- All Implemented Interfaces:
- ConditionEvaluationBuilder
 
 public class ConditionEvaluationBuilderImpl extends Object implements ConditionEvaluationBuilder 
- 
- 
Field SummaryFields Modifier and Type Field Description protected StringbusinessKeyprotected CommandExecutorcommandExecutorprotected booleanisTenantIdSetprotected StringprocessDefinitionIdprotected StringtenantIdprotected VariableMapvariables
 - 
Constructor SummaryConstructors Constructor Description ConditionEvaluationBuilderImpl(CommandExecutor commandExecutor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ProcessInstance>evaluateStartConditions()protected <T> Texecute(Command<T> command)StringgetBusinessKey()CommandExecutorgetCommandExecutor()StringgetProcessDefinitionId()StringgetTenantId()VariableMapgetVariables()booleanisTenantIdSet()ConditionEvaluationBuilderprocessDefinitionId(String processDefinitionId)Correlate the condition such that a process definition with the given id is selected.ConditionEvaluationBuilderprocessInstanceBusinessKey(String businessKey)Correlate the condition such that the process instance has a business key with the given name.ConditionEvaluationBuildersetVariable(String variableName, Object variableValue)Pass a variable to the condition.ConditionEvaluationBuildersetVariables(Map<String,Object> variables)Pass a variables to the condition.ConditionEvaluationBuildertenantId(String tenantId)Specify a tenant to correlate a condition to.ConditionEvaluationBuilderwithoutTenantId()Specify that the condition can only be correlated on process definitions which belongs to no tenant.
 
- 
- 
- 
Field Detail- 
commandExecutorprotected CommandExecutor commandExecutor 
 - 
businessKeyprotected String businessKey 
 - 
processDefinitionIdprotected String processDefinitionId 
 - 
variablesprotected VariableMap variables 
 - 
tenantIdprotected String tenantId 
 - 
isTenantIdSetprotected boolean isTenantIdSet 
 
- 
 - 
Constructor Detail- 
ConditionEvaluationBuilderImplpublic ConditionEvaluationBuilderImpl(CommandExecutor commandExecutor) 
 
- 
 - 
Method Detail- 
getCommandExecutorpublic CommandExecutor getCommandExecutor() 
 - 
getBusinessKeypublic String getBusinessKey() 
 - 
getProcessDefinitionIdpublic String getProcessDefinitionId() 
 - 
getVariablespublic VariableMap getVariables() 
 - 
getTenantIdpublic String getTenantId() 
 - 
isTenantIdSetpublic boolean isTenantIdSet() 
 - 
executeprotected <T> T execute(Command<T> command) 
 - 
processInstanceBusinessKeypublic ConditionEvaluationBuilder processInstanceBusinessKey(String businessKey) Description copied from interface:ConditionEvaluationBuilderCorrelate 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().- Specified by:
- processInstanceBusinessKeyin interface- ConditionEvaluationBuilder
- Parameters:
- businessKey- the businessKey to correlate on.
- Returns:
- the builder
 
 - 
processDefinitionIdpublic ConditionEvaluationBuilder processDefinitionId(String processDefinitionId) Description copied from interface:ConditionEvaluationBuilderCorrelate the condition such that a process definition with the given id is selected. Is only supported for ConditionEvaluationBuilder.evaluateStartConditions().- Specified by:
- processDefinitionIdin interface- ConditionEvaluationBuilder
- Parameters:
- processDefinitionId- the id of the process definition to correlate on.
- Returns:
- the builder
 
 - 
setVariablepublic ConditionEvaluationBuilder setVariable(String variableName, Object variableValue) Description copied from interface:ConditionEvaluationBuilderPass a variable to the condition. Invoking this method multiple times allows passing multiple variables. - Specified by:
- setVariablein interface- ConditionEvaluationBuilder
- Parameters:
- variableName- the name of the variable to set
- variableValue- the value of the variable to set
- Returns:
- the builder
 
 - 
setVariablespublic ConditionEvaluationBuilder setVariables(Map<String,Object> variables) Description copied from interface:ConditionEvaluationBuilderPass a variables to the condition. - Specified by:
- setVariablesin interface- ConditionEvaluationBuilder
- Parameters:
- variables- the map of variables
- Returns:
- the builder
 
 - 
tenantIdpublic ConditionEvaluationBuilder tenantId(String tenantId) Description copied from interface:ConditionEvaluationBuilderSpecify a tenant to correlate a condition to. The condition can only be correlated on process definitions which belongs to the given tenant.- Specified by:
- tenantIdin interface- ConditionEvaluationBuilder
- Parameters:
- tenantId- the id of the tenant
- Returns:
- the builder
 
 - 
withoutTenantIdpublic ConditionEvaluationBuilder withoutTenantId() Description copied from interface:ConditionEvaluationBuilderSpecify that the condition can only be correlated on process definitions which belongs to no tenant.- Specified by:
- withoutTenantIdin interface- ConditionEvaluationBuilder
- Returns:
- the builder
 
 - 
evaluateStartConditionspublic List<ProcessInstance> evaluateStartConditions() - Specified by:
- evaluateStartConditionsin interface- ConditionEvaluationBuilder
- Returns:
- the list of the newly created process instances
 
 
- 
 
-