Uses of Interface
org.flowable.engine.runtime.ProcessInstanceBuilder
Package
Description
Public API of the Flowable engine.
Typical usage of the API starts by the creation of a
Through the services obtained from such a
Typical usage of the API starts by the creation of a
ProcessEngineConfiguration
(typically based on a configuration file), from which a ProcessEngine
can be obtained.Through the services obtained from such a
ProcessEngine
, BPM and workflow operation
can be executed:RepositoryService
: Manages Deployment
s.RuntimeService
: For starting and searching ProcessInstance
s.TaskService
: Exposes operations to manage human (standalone) tasks, such as claiming, completing and assigning tasks.IdentityService
: Used for managing users, groups and the relations between them.ManagementService
: Exposes engine administration and maintenance operations,
which have no relation to the runtime exection of business processes.HistoryService
: Exposes information about ongoing and past process instances.FormService
: Access to form data and rendered forms for starting new process instances and completing tasks.API implementation classes, which shouldn't directly be used by end-users.
Classes related to the
RuntimeService
.-
Uses of ProcessInstanceBuilder in org.flowable.engine
Modifier and TypeMethodDescriptionRuntimeService.createProcessInstanceBuilder()
Create aProcessInstanceBuilder
, that allows to set various options for starting a process instance, as an alternative to the various startProcessInstanceByXX methods. -
Uses of ProcessInstanceBuilder in org.flowable.engine.impl
-
Uses of ProcessInstanceBuilder in org.flowable.engine.runtime
Modifier and TypeMethodDescriptionSet the assignee of the process instance to be created to the given user id.ProcessInstanceBuilder.businessKey
(String businessKey) Set the businessKey of process instanceProcessInstanceBuilder.businessStatus
(String businessStatus) Set the businessStatus of process instanceProcessInstanceBuilder.callbackId
(String callbackId) Sets the callback identifier of the process instance.ProcessInstanceBuilder.callbackType
(String callbackType) Sets the callback type of the process instance.ProcessInstanceBuilder.fallbackToDefaultTenant()
Use default tenant as a fallback in the case when process definition was not found by key and tenant idProcessInstanceBuilder.formVariables
(Map<String, Object> formVariables, org.flowable.form.api.FormInfo formInfo, String formOutcome) Start the process instance with the given form variables from the givenformInfo
.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.Set the name of process instanceAllows to set an outcome for a start form.ProcessInstanceBuilder.overrideProcessDefinitionTenantId
(String tenantId) Indicator to override the tenant id of the process definition with the provided value.Set the owner of the process instance to be created to the given user id.ProcessInstanceBuilder.predefineProcessInstanceId
(String processInstanceId) When starting a process instance from the CMMN engine process task, the process instance id needs to be known beforehand to store entity links and callback references before the process instance is started.ProcessInstanceBuilder.processDefinitionId
(String processDefinitionId) Set the id of the process definitionProcessInstanceBuilder.processDefinitionKey
(String processDefinitionKey) Set the key of the process definition, latest version of the process definition with the given key.ProcessInstanceBuilder.processDefinitionParentDeploymentId
(String parentDeploymentId) When looking up for a process definition by key it would first lookup for a process definition within the given parent deployment.ProcessInstanceBuilder.referenceId
(String referenceId) Sets the reference identifier of the process instance.ProcessInstanceBuilder.referenceType
(String referenceType) Sets the reference type of the process instance.ProcessInstanceBuilder.stageInstanceId
(String stageInstanceId) Set the optional instance id of the stage this process instance belongs to, if it runs in the context of a CMMN case.ProcessInstanceBuilder.startEventId
(String startEventId) Set the start event in case of an event registry start event that is triggered to start the process instance.ProcessInstanceBuilder.startFormVariable
(String variableName, Object value) Adds one variable from a start form to the process instance.ProcessInstanceBuilder.startFormVariables
(Map<String, Object> startFormVariables) Adds variables from a start form to the process instance.Set the tenantId of to lookup the process definitionProcessInstanceBuilder.transientVariable
(String variableName, Object value) Adds a transient variable to the process instanceProcessInstanceBuilder.transientVariables
(Map<String, Object> transientVariables) Sets the transient variablesAdds a variable to the process instanceSets the process variables