|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.ProcessInstantiationBuilderImpl
public class ProcessInstantiationBuilderImpl
Simply wraps a modification builder because their API is equivalent.
| Field Summary | |
|---|---|
protected String |
businessKey
|
protected String |
caseInstanceId
|
protected CommandExecutor |
commandExecutor
|
protected boolean |
isTenantIdSet
|
protected ProcessInstanceModificationBuilderImpl |
modificationBuilder
|
protected String |
processDefinitionId
|
protected String |
processDefinitionKey
|
protected String |
processDefinitionTenantId
|
| Method Summary | |
|---|---|
ProcessInstantiationBuilder |
businessKey(String businessKey)
Set the business key for the process instance |
ProcessInstantiationBuilder |
caseInstanceId(String caseInstanceId)
Associate a case instance with the process instance |
static ProcessInstantiationBuilder |
createProcessInstanceById(CommandExecutor commandExecutor,
String processDefinitionId)
|
static ProcessInstantiationBuilder |
createProcessInstanceByKey(CommandExecutor commandExecutor,
String processDefinitionKey)
|
ProcessInstance |
execute()
Start the process instance. |
ProcessInstance |
execute(boolean skipCustomListeners,
boolean skipIoMappings)
Start the process instance. |
ProcessInstanceWithVariables |
executeWithVariablesInReturn()
Start the process instance. |
ProcessInstanceWithVariables |
executeWithVariablesInReturn(boolean skipCustomListeners,
boolean skipIoMappings)
Start the process instance. |
String |
getBusinessKey()
|
String |
getCaseInstanceId()
|
ProcessInstanceModificationBuilderImpl |
getModificationBuilder()
|
String |
getProcessDefinitionId()
|
String |
getProcessDefinitionKey()
|
String |
getProcessDefinitionTenantId()
|
Map<String,Object> |
getVariables()
|
boolean |
isTenantIdSet()
|
ProcessInstantiationBuilder |
processDefinitionTenantId(String tenantId)
Specify the id of the tenant the process definition belongs to. |
ProcessInstantiationBuilder |
processDefinitionWithoutTenantId()
Specify that the process definition belongs to no tenant. |
ProcessInstantiationBuilder |
setVariable(String name,
Object value)
If an instruction is submitted before then the variable is set when the instruction is executed. |
ProcessInstantiationBuilder |
setVariableLocal(String name,
Object value)
If an instruction is submitted before then the local variable is set when the instruction is executed. |
ProcessInstantiationBuilder |
setVariables(Map<String,Object> variables)
If an instruction is submitted before then all variables are set when the instruction is executed. |
ProcessInstantiationBuilder |
setVariablesLocal(Map<String,Object> variables)
If an instruction is submitted before then all local variables are set when the instruction is executed. |
ProcessInstantiationBuilder |
startAfterActivity(String activityId)
Submits an instruction that behaves like InstantiationBuilder.startTransition(String) and always instantiates
the single outgoing sequence flow of the given activity. |
ProcessInstantiationBuilder |
startBeforeActivity(String activityId)
Submits the instruction: |
ProcessInstantiationBuilder |
startTransition(String transitionId)
Submits the instruction: |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CommandExecutor commandExecutor
protected String processDefinitionId
protected String processDefinitionKey
protected String businessKey
protected String caseInstanceId
protected String processDefinitionTenantId
protected boolean isTenantIdSet
protected ProcessInstanceModificationBuilderImpl modificationBuilder
| Method Detail |
|---|
public ProcessInstantiationBuilder startBeforeActivity(String activityId)
InstantiationBuilderSubmits the instruction:
Start before the specified activity.
In particular:
startBeforeActivity in interface InstantiationBuilder<ProcessInstantiationBuilder>activityId - the activity to instantiatepublic ProcessInstantiationBuilder startAfterActivity(String activityId)
InstantiationBuilderInstantiationBuilder.startTransition(String) and always instantiates
the single outgoing sequence flow of the given activity. Does not consider asyncAfter.
startAfterActivity in interface InstantiationBuilder<ProcessInstantiationBuilder>activityId - the activity for which the outgoing flow should be executedpublic ProcessInstantiationBuilder startTransition(String transitionId)
InstantiationBuilderSubmits the instruction:
Start a sequence flow.
In particular:
startTransition in interface InstantiationBuilder<ProcessInstantiationBuilder>transitionId - the sequence flow to execute
public ProcessInstantiationBuilder setVariable(String name,
Object value)
ActivityInstantiationBuilder
setVariable in interface ActivityInstantiationBuilder<ProcessInstantiationBuilder>
public ProcessInstantiationBuilder setVariableLocal(String name,
Object value)
ActivityInstantiationBuilder
setVariableLocal in interface ActivityInstantiationBuilder<ProcessInstantiationBuilder>public ProcessInstantiationBuilder setVariables(Map<String,Object> variables)
ActivityInstantiationBuilder
setVariables in interface ActivityInstantiationBuilder<ProcessInstantiationBuilder>public ProcessInstantiationBuilder setVariablesLocal(Map<String,Object> variables)
ActivityInstantiationBuilder
setVariablesLocal in interface ActivityInstantiationBuilder<ProcessInstantiationBuilder>public ProcessInstantiationBuilder businessKey(String businessKey)
ProcessInstantiationBuilder
businessKey in interface ProcessInstantiationBuilderpublic ProcessInstantiationBuilder caseInstanceId(String caseInstanceId)
ProcessInstantiationBuilder
caseInstanceId in interface ProcessInstantiationBuilderpublic ProcessInstantiationBuilder processDefinitionTenantId(String tenantId)
ProcessInstantiationBuilderkey and not by id.
processDefinitionTenantId in interface ProcessInstantiationBuilderpublic ProcessInstantiationBuilder processDefinitionWithoutTenantId()
ProcessInstantiationBuilderkey and not by id.
processDefinitionWithoutTenantId in interface ProcessInstantiationBuilderpublic ProcessInstance execute()
ProcessInstantiationBuilder
execute in interface ProcessInstantiationBuilder
public ProcessInstance execute(boolean skipCustomListeners,
boolean skipIoMappings)
ProcessInstantiationBuilder
execute in interface ProcessInstantiationBuilderskipCustomListeners - specifies whether custom listeners (task and execution) should be
invoked when executing the instructions. Only supported for
instructions.skipIoMappings - specifies whether input/output mappings for tasks should be
invoked throughout the transaction when executing the
instructions. Only supported for instructions.
public ProcessInstanceWithVariables executeWithVariablesInReturn()
ProcessInstantiationBuilder
executeWithVariablesInReturn in interface ProcessInstantiationBuilder
public ProcessInstanceWithVariables executeWithVariablesInReturn(boolean skipCustomListeners,
boolean skipIoMappings)
ProcessInstantiationBuilder
executeWithVariablesInReturn in interface ProcessInstantiationBuilderskipCustomListeners - specifies whether custom listeners (task and execution) should be
invoked when executing the instructions. Only supported for
instructions.skipIoMappings - specifies whether input/output mappings for tasks should be
invoked throughout the transaction when executing the
instructions. Only supported for instructions.
public String getProcessDefinitionId()
public String getProcessDefinitionKey()
public ProcessInstanceModificationBuilderImpl getModificationBuilder()
public String getBusinessKey()
public String getCaseInstanceId()
public Map<String,Object> getVariables()
public String getProcessDefinitionTenantId()
public boolean isTenantIdSet()
public static ProcessInstantiationBuilder createProcessInstanceById(CommandExecutor commandExecutor,
String processDefinitionId)
public static ProcessInstantiationBuilder createProcessInstanceByKey(CommandExecutor commandExecutor,
String processDefinitionKey)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||