Package org.camunda.bpm.engine.impl
Class ConditionEvaluationBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.ConditionEvaluationBuilderImpl
- All Implemented Interfaces:
ConditionEvaluationBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected CommandExecutorprotected booleanprotected Stringprotected Stringprotected VariableMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TbooleanprocessDefinitionId(String processDefinitionId) Correlate the condition such that a process definition with the given id is selected.processInstanceBusinessKey(String businessKey) Correlate the condition such that the process instance has a business key with the given name.setVariable(String variableName, Object variableValue) Pass a variable to the condition.setVariables(Map<String, Object> variables) Pass a variables to the condition.Specify a tenant to correlate a condition to.Specify that the condition can only be correlated on process definitions which belongs to no tenant.
-
Field Details
-
commandExecutor
-
businessKey
-
processDefinitionId
-
variables
-
tenantId
-
isTenantIdSet
protected boolean isTenantIdSet
-
-
Constructor Details
-
ConditionEvaluationBuilderImpl
-
-
Method Details
-
getCommandExecutor
-
getBusinessKey
-
getProcessDefinitionId
-
getVariables
-
getTenantId
-
isTenantIdSet
public boolean isTenantIdSet() -
execute
-
processInstanceBusinessKey
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 interfaceConditionEvaluationBuilder- Parameters:
businessKey- the businessKey to correlate on.- Returns:
- the builder
-
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 interfaceConditionEvaluationBuilder- Parameters:
processDefinitionId- the id of the process definition to correlate on.- Returns:
- the builder
-
setVariable
Description copied from interface:ConditionEvaluationBuilderPass a variable to the condition.
Invoking this method multiple times allows passing multiple variables.
- Specified by:
setVariablein interfaceConditionEvaluationBuilder- Parameters:
variableName- the name of the variable to setvariableValue- the value of the variable to set- Returns:
- the builder
-
setVariables
Description copied from interface:ConditionEvaluationBuilderPass a variables to the condition.
- Specified by:
setVariablesin interfaceConditionEvaluationBuilder- Parameters:
variables- the map of variables- Returns:
- the builder
-
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 interfaceConditionEvaluationBuilder- Parameters:
tenantId- the id of the tenant- Returns:
- the builder
-
withoutTenantId
Description copied from interface:ConditionEvaluationBuilderSpecify that the condition can only be correlated on process definitions which belongs to no tenant.- Specified by:
withoutTenantIdin interfaceConditionEvaluationBuilder- Returns:
- the builder
-
evaluateStartConditions
- Specified by:
evaluateStartConditionsin interfaceConditionEvaluationBuilder- Returns:
- the list of the newly created process instances
-