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 |
addVariable(String variableName,
Object value)
Add a variable to the process instance
|
ProcessInstanceBuilder |
businessKey(String businessKey)
Set the businessKey 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.
|
ProcessInstanceBuilder |
processInstanceName(String processInstanceName)
Set the name of process instance
|
ProcessInstance |
start()
Start the process instance
|
ProcessInstanceBuilder |
tenantId(String tenantId)
Set the tenantId of process instance
|
ProcessInstanceBuilder processDefinitionId(String processDefinitionId)
ProcessInstanceBuilder processDefinitionKey(String processDefinitionKey)
ProcessInstanceBuilder processInstanceName(String processInstanceName)
ProcessInstanceBuilder businessKey(String businessKey)
ProcessInstanceBuilder tenantId(String tenantId)
ProcessInstanceBuilder addVariable(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 © 2016 Alfresco. All rights reserved.