org.camunda.bpm.engine.impl
Class ConditionEvaluationBuilderImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.ConditionEvaluationBuilderImpl
All Implemented Interfaces:
ConditionEvaluationBuilder

public class ConditionEvaluationBuilderImpl
extends Object
implements ConditionEvaluationBuilder


Field Summary
protected  String businessKey
           
protected  CommandExecutor commandExecutor
           
protected  boolean isTenantIdSet
           
protected  String processDefinitionId
           
protected  String tenantId
           
protected  org.camunda.bpm.engine.variable.VariableMap variables
           
 
Constructor Summary
ConditionEvaluationBuilderImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandExecutor

protected CommandExecutor commandExecutor

businessKey

protected String businessKey

processDefinitionId

protected String processDefinitionId

variables

protected org.camunda.bpm.engine.variable.VariableMap variables

tenantId

protected String tenantId

isTenantIdSet

protected boolean isTenantIdSet
Constructor Detail

ConditionEvaluationBuilderImpl

public ConditionEvaluationBuilderImpl(CommandExecutor commandExecutor)
Method Detail

getCommandExecutor

public CommandExecutor getCommandExecutor()

getBusinessKey

public String getBusinessKey()

getProcessDefinitionId

public String getProcessDefinitionId()

getVariables

public org.camunda.bpm.engine.variable.VariableMap getVariables()

getTenantId

public String getTenantId()

isTenantIdSet

public boolean isTenantIdSet()

execute

protected <T> T execute(Command<T> command)

processInstanceBusinessKey

public ConditionEvaluationBuilder processInstanceBusinessKey(String businessKey)
Description copied from interface: 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().

Specified by:
processInstanceBusinessKey in interface ConditionEvaluationBuilder
Parameters:
businessKey - the businessKey to correlate on.
Returns:
the builder

processDefinitionId

public ConditionEvaluationBuilder processDefinitionId(String processDefinitionId)
Description copied from interface: ConditionEvaluationBuilder

Correlate the condition such that a process definition with the given id is selected. Is only supported for ConditionEvaluationBuilder.evaluateStartConditions().

Specified by:
processDefinitionId in interface ConditionEvaluationBuilder
Parameters:
processDefinitionId - the id of the process definition to correlate on.
Returns:
the builder

setVariable

public ConditionEvaluationBuilder setVariable(String variableName,
                                              Object variableValue)
Description copied from interface: ConditionEvaluationBuilder

Pass a variable to the condition.

Invoking this method multiple times allows passing multiple variables.

Specified by:
setVariable in interface ConditionEvaluationBuilder
Parameters:
variableName - the name of the variable to set
variableValue - the value of the variable to set
Returns:
the builder

setVariables

public ConditionEvaluationBuilder setVariables(Map<String,Object> variables)
Description copied from interface: ConditionEvaluationBuilder

Pass a variables to the condition.

Specified by:
setVariables in interface ConditionEvaluationBuilder
Parameters:
variables - the map of variables
Returns:
the builder

tenantId

public ConditionEvaluationBuilder tenantId(String tenantId)
Description copied from interface: ConditionEvaluationBuilder
Specify a tenant to correlate a condition to. The condition can only be correlated on process definitions which belongs to the given tenant.

Specified by:
tenantId in interface ConditionEvaluationBuilder
Parameters:
tenantId - the id of the tenant
Returns:
the builder

withoutTenantId

public ConditionEvaluationBuilder withoutTenantId()
Description copied from interface: ConditionEvaluationBuilder
Specify that the condition can only be correlated on process definitions which belongs to no tenant.

Specified by:
withoutTenantId in interface ConditionEvaluationBuilder
Returns:
the builder

evaluateStartConditions

public List<ProcessInstance> evaluateStartConditions()
Specified by:
evaluateStartConditions in interface ConditionEvaluationBuilder
Returns:
the list of the newly created process instances


Copyright © 2018 camunda services GmbH. All rights reserved.