public interface ProcessInstantiationBuilder extends ActivityInstantiationBuilder<ProcessInstantiationBuilder>, InstantiationBuilder<ProcessInstantiationBuilder>
Modifier and Type | Method and Description |
---|---|
ProcessInstantiationBuilder |
businessKey(String businessKey)
Set the business key for the process instance
|
ProcessInstantiationBuilder |
caseInstanceId(String caseInstanceId)
Associate a case instance with the process instance
|
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.
|
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.
|
setVariable, setVariableLocal, setVariables, setVariablesLocal
startAfterActivity, startBeforeActivity, startTransition
ProcessInstantiationBuilder processDefinitionTenantId(String tenantId)
key
and not by id
.ProcessInstantiationBuilder processDefinitionWithoutTenantId()
key
and not by id
.ProcessInstantiationBuilder businessKey(String businessKey)
ProcessInstantiationBuilder caseInstanceId(String caseInstanceId)
ProcessInstance execute()
AuthorizationException
- if the user has no Permissions.CREATE
permission on
Resources.PROCESS_INSTANCE
and no
Permissions.CREATE_INSTANCE
permission on
Resources.PROCESS_DEFINITION
.{@link #executeWithVariablesInReturn()}.
ProcessInstance execute(boolean skipCustomListeners, boolean skipIoMappings)
skipCustomListeners
- 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.{@link #executeWithVariablesInReturn(boolean, boolean)}.
ProcessInstanceWithVariables executeWithVariablesInReturn()
AuthorizationException
- if the user has no Permissions.CREATE
permission on
Resources.PROCESS_INSTANCE
and no
Permissions.CREATE_INSTANCE
permission on
Resources.PROCESS_DEFINITION
.ProcessInstanceWithVariables executeWithVariablesInReturn(boolean skipCustomListeners, boolean skipIoMappings)
skipCustomListeners
- 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.AuthorizationException
- if the user has no Permissions.CREATE
permission on
Resources.PROCESS_INSTANCE
and no
Permissions.CREATE_INSTANCE
permission on
Resources.PROCESS_DEFINITION
.ProcessEngineException
- if skipCustomListeners
or skipIoMappings
is set
to true but no instructions are submitted. Both options are not
supported when the instance starts at the default start activity.
Use execute()
instead.Copyright © 2019. All rights reserved.