public interface ProcessInstanceBuilder
RuntimeService.createProcessInstanceBuilder()
.
processDefinitionId or processDefinitionKey should be set before calling start()
to start a process instance.Modifier and Type | Method and Description |
---|---|
ProcessInstanceBuilder |
businessKey(String businessKey)
Set the businessKey of process instance
|
ProcessInstanceBuilder |
messageName(String messageName)
Set the message name that needs to be used to look up the process definition that needs to be used to start the process instance.
|
ProcessInstanceBuilder |
name(String processInstanceName)
Set the name of process instance
|
ProcessInstanceBuilder |
processDefinitionId(String processDefinitionId)
Set the id of the process definition
|
ProcessInstanceBuilder |
processDefinitionKey(String processDefinitionKey)
Set the key of the process definition, latest version of the process definition with the given key.
|
ProcessInstance |
start()
Start the process instance
|
ProcessInstanceBuilder |
tenantId(String tenantId)
Set the tenantId of process instance
|
ProcessInstanceBuilder |
transientVariable(String variableName,
Object value)
Adds a transient variable to the process instance
|
ProcessInstanceBuilder |
transientVariables(Map<String,Object> transientVariables)
Sets the transient variables
|
ProcessInstanceBuilder |
variable(String variableName,
Object value)
Adds a variable to the process instance
|
ProcessInstanceBuilder |
variables(Map<String,Object> variables)
Sets the process variables
|
ProcessInstanceBuilder processDefinitionId(String processDefinitionId)
ProcessInstanceBuilder processDefinitionKey(String processDefinitionKey)
ProcessInstanceBuilder messageName(String messageName)
ProcessInstanceBuilder name(String processInstanceName)
ProcessInstanceBuilder businessKey(String businessKey)
ProcessInstanceBuilder tenantId(String tenantId)
ProcessInstanceBuilder variables(Map<String,Object> variables)
ProcessInstanceBuilder variable(String variableName, Object value)
ProcessInstanceBuilder transientVariables(Map<String,Object> transientVariables)
ProcessInstanceBuilder transientVariable(String variableName, Object value)
ProcessInstance start()
ActivitiIllegalArgumentException
- if processDefinitionKey and processDefinitionId are nullActivitiObjectNotFoundException
- when no process definition is deployed with the given processDefinitionKey or processDefinitionIdCopyright © 2017 Alfresco. All rights reserved.