|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConditionEvaluationBuilder
A fluent builder for defining conditional start event correlation
| Method Summary | |
|---|---|
List<ProcessInstance> |
evaluateStartConditions()
|
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. |
| Method Detail |
|---|
ConditionEvaluationBuilder processInstanceBusinessKey(String businessKey)
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 evaluateStartConditions().
businessKey - the businessKey to correlate on.
ConditionEvaluationBuilder processDefinitionId(String processDefinitionId)
Correlate the condition such that a process definition with the given id is selected.
Is only supported for evaluateStartConditions().
processDefinitionId - the id of the process definition to correlate on.
ConditionEvaluationBuilder setVariable(String variableName,
Object variableValue)
Pass a variable to the condition.
Invoking this method multiple times allows passing multiple variables.
variableName - the name of the variable to setvariableValue - the value of the variable to set
ConditionEvaluationBuilder setVariables(Map<String,Object> variables)
Pass a variables to the condition.
variables - the map of variables
ConditionEvaluationBuilder tenantId(String tenantId)
tenantId - the id of the tenant
ConditionEvaluationBuilder withoutTenantId()
List<ProcessInstance> evaluateStartConditions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||