Uses of Interface
org.camunda.bpm.engine.runtime.ProcessInstance
Package
Description
Public API of the Camunda Platform 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
sRuntimeService
:
For starting and searching ProcessInstance
sTaskService
:
Exposes operations to manage human (standalone) Task
s,
such as claiming, completing and assigning tasksIdentityService
:
Used for managing User
s,
Group
s and the relations between themManagementService
:
Exposes engine admin and maintenance operations,
which have no relation to the runtime execution of business processesHistoryService
:
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 ProcessInstance in org.camunda.bpm.engine
Modifier and TypeMethodDescriptionRuntimeService.startProcessInstanceById
(String processDefinitionId) Starts a new process instance in the exactly specified version of the process definition with the given id.RuntimeService.startProcessInstanceById
(String processDefinitionId, String businessKey) Starts a new process instance in the exactly specified version of the process definition with the given id.RuntimeService.startProcessInstanceById
(String processDefinitionId, String businessKey, String caseInstanceId) Starts a new process instance in the exactly specified version of the process definition with the given id.RuntimeService.startProcessInstanceById
(String processDefinitionId, String businessKey, String caseInstanceId, Map<String, Object> variables) Starts a new process instance in the exactly specified version of the process definition with the given id.RuntimeService.startProcessInstanceById
(String processDefinitionId, String businessKey, Map<String, Object> variables) Starts a new process instance in the exactly specified version of the process definition with the given id.RuntimeService.startProcessInstanceById
(String processDefinitionId, Map<String, Object> variables) Starts a new process instance in the exactly specified version of the process definition with the given id.RuntimeService.startProcessInstanceByKey
(String processDefinitionKey) Starts a new process instance in the latest version of the process definition with the given key.RuntimeService.startProcessInstanceByKey
(String processDefinitionKey, String businessKey) Starts a new process instance in the latest version of the process definition with the given key.RuntimeService.startProcessInstanceByKey
(String processDefinitionKey, String businessKey, String caseInstanceId) Starts a new process instance in the latest version of the process definition with the given key.RuntimeService.startProcessInstanceByKey
(String processDefinitionKey, String businessKey, String caseInstanceId, Map<String, Object> variables) Starts a new process instance in the latest version of the process definition with the given key.RuntimeService.startProcessInstanceByKey
(String processDefinitionKey, String businessKey, Map<String, Object> variables) Starts a new process instance in the latest version of the process definition with the given key.RuntimeService.startProcessInstanceByKey
(String processDefinitionKey, Map<String, Object> variables) Starts a new process instance in the latest version of the process definition with the given keyRuntimeService.startProcessInstanceByMessage
(String messageName) Signals the process engine that a message is received and starts a newProcessInstance
.RuntimeService.startProcessInstanceByMessage
(String messageName, String businessKey) Signals the process engine that a message is received and starts a newProcessInstance
.RuntimeService.startProcessInstanceByMessage
(String messageName, String businessKey, Map<String, Object> processVariables) Signals the process engine that a message is received and starts a newProcessInstance
.RuntimeService.startProcessInstanceByMessage
(String messageName, Map<String, Object> processVariables) Signals the process engine that a message is received and starts a newProcessInstance
.RuntimeService.startProcessInstanceByMessageAndProcessDefinitionId
(String messageName, String processDefinitionId) Signals the process engine that a message is received and starts a newProcessInstance
.RuntimeService.startProcessInstanceByMessageAndProcessDefinitionId
(String messageName, String processDefinitionId, String businessKey) Signals the process engine that a message is received and starts a newProcessInstance
.RuntimeService.startProcessInstanceByMessageAndProcessDefinitionId
(String messageName, String processDefinitionId, String businessKey, Map<String, Object> processVariables) Signals the process engine that a message is received and starts a newProcessInstance
.RuntimeService.startProcessInstanceByMessageAndProcessDefinitionId
(String messageName, String processDefinitionId, Map<String, Object> processVariables) Signals the process engine that a message is received and starts a newProcessInstance
.FormService.submitStartForm
(String processDefinitionId, String businessKey, Map<String, Object> properties) Start a new process instance with the user data that was entered as properties in a start form.FormService.submitStartForm
(String processDefinitionId, Map<String, Object> properties) Start a new process instance with the user data that was entered as properties in a start form.FormService.submitStartFormData
(String processDefinitionId, String businessKey, Map<String, String> properties) Deprecated.FormService.submitStartFormData
(String processDefinitionId, Map<String, String> properties) Deprecated. -
Uses of ProcessInstance in org.camunda.bpm.engine.cdi
Modifier and TypeMethodDescriptionBusinessProcess.getProcessInstance()
Returns theProcessInstance
currently associated or 'null'CurrentProcessInstance.getProcessInstance()
Returns theProcessInstance
currently associated or 'null'BusinessProcess.startProcessById
(String processDefinitionId) BusinessProcess.startProcessById
(String processDefinitionId, String businessKey) BusinessProcess.startProcessById
(String processDefinitionId, String businessKey, Map<String, Object> variables) BusinessProcess.startProcessById
(String processDefinitionId, Map<String, Object> variables) BusinessProcess.startProcessByKey
(String key) BusinessProcess.startProcessByKey
(String key, String businessKey) BusinessProcess.startProcessByKey
(String key, Map<String, Object> variables) BusinessProcess.startProcessByMessage
(String messageName) BusinessProcess.startProcessByMessage
(String messageName, String businessKey, Map<String, Object> processVariables) BusinessProcess.startProcessByMessage
(String messageName, Map<String, Object> processVariables) -
Uses of ProcessInstance in org.camunda.bpm.engine.cdi.impl.annotation
Modifier and TypeMethodDescriptionBusinessKeyProducer.businessKey
(ProcessInstance processInstance) -
Uses of ProcessInstance in org.camunda.bpm.engine.impl
Modifier and TypeMethodDescriptionMessageCorrelationBuilderImpl.correlateStartMessage()
ProcessInstantiationBuilderImpl.execute()
ProcessInstantiationBuilderImpl.execute
(boolean skipCustomListeners, boolean skipIoMappings) RuntimeServiceImpl.startProcessInstanceById
(String processDefinitionId) RuntimeServiceImpl.startProcessInstanceById
(String processDefinitionId, String businessKey) RuntimeServiceImpl.startProcessInstanceById
(String processDefinitionId, String businessKey, String caseInstanceId) RuntimeServiceImpl.startProcessInstanceById
(String processDefinitionId, String businessKey, String caseInstanceId, Map<String, Object> variables) RuntimeServiceImpl.startProcessInstanceById
(String processDefinitionId, String businessKey, Map<String, Object> variables) RuntimeServiceImpl.startProcessInstanceById
(String processDefinitionId, Map<String, Object> variables) RuntimeServiceImpl.startProcessInstanceByKey
(String processDefinitionKey) RuntimeServiceImpl.startProcessInstanceByKey
(String processDefinitionKey, String businessKey) RuntimeServiceImpl.startProcessInstanceByKey
(String processDefinitionKey, String businessKey, String caseInstanceId) RuntimeServiceImpl.startProcessInstanceByKey
(String processDefinitionKey, String businessKey, String caseInstanceId, Map<String, Object> variables) RuntimeServiceImpl.startProcessInstanceByKey
(String processDefinitionKey, String businessKey, Map<String, Object> variables) RuntimeServiceImpl.startProcessInstanceByKey
(String processDefinitionKey, Map<String, Object> variables) RuntimeServiceImpl.startProcessInstanceByMessage
(String messageName) RuntimeServiceImpl.startProcessInstanceByMessage
(String messageName, String businessKey) RuntimeServiceImpl.startProcessInstanceByMessage
(String messageName, String businessKey, Map<String, Object> processVariables) RuntimeServiceImpl.startProcessInstanceByMessage
(String messageName, Map<String, Object> processVariables) RuntimeServiceImpl.startProcessInstanceByMessageAndProcessDefinitionId
(String messageName, String processDefinitionId) RuntimeServiceImpl.startProcessInstanceByMessageAndProcessDefinitionId
(String messageName, String processDefinitionId, String businessKey) RuntimeServiceImpl.startProcessInstanceByMessageAndProcessDefinitionId
(String messageName, String processDefinitionId, String businessKey, Map<String, Object> processVariables) RuntimeServiceImpl.startProcessInstanceByMessageAndProcessDefinitionId
(String messageName, String processDefinitionId, Map<String, Object> processVariables) FormServiceImpl.submitStartForm
(String processDefinitionId, String businessKey, Map<String, Object> properties) FormServiceImpl.submitStartForm
(String processDefinitionId, Map<String, Object> properties) FormServiceImpl.submitStartFormData
(String processDefinitionId, String businessKey, Map<String, String> properties) FormServiceImpl.submitStartFormData
(String processDefinitionId, Map<String, String> properties) Modifier and TypeMethodDescriptionConditionEvaluationBuilderImpl.evaluateStartConditions()
NativeProcessInstanceQueryImpl.executeList
(CommandContext commandContext, Map<String, Object> parameterMap, int firstResult, int maxResults) ProcessInstanceQueryImpl.executeList
(CommandContext commandContext, Page page) -
Uses of ProcessInstance in org.camunda.bpm.engine.impl.cfg.auth
Modifier and TypeMethodDescriptionDefaultAuthorizationProvider.newProcessInstance
(ProcessInstance processInstance) ResourceAuthorizationProvider.newProcessInstance
(ProcessInstance processInstance) Invoked whenever a new process instance is started -
Uses of ProcessInstance in org.camunda.bpm.engine.impl.cmd
Modifier and TypeMethodDescriptionSubmitStartFormCmd.execute
(CommandContext commandContext) protected ProcessInstance
AbstractCorrelateMessageCmd.instantiateProcess
(CommandContext commandContext, CorrelationHandlerResult correlationResult) protected ProcessInstance
EvaluateStartConditionCmd.instantiateProcess
(CommandContext commandContext, ConditionHandlerResult result) Modifier and TypeMethodDescriptionEvaluateStartConditionCmd.execute
(CommandContext commandContext) protected List<ProcessInstance>
AbstractSetProcessInstanceStateCmd.obtainProcessInstances
(CommandContext commandContext) Modifier and TypeMethodDescriptionvoid
AbstractDeleteProcessInstanceCmd.triggerHistoryEvent
(List<ProcessInstance> subProcesslist) -
Uses of ProcessInstance in org.camunda.bpm.engine.impl.persistence.entity
Modifier and TypeMethodDescriptionExecutionManager.findProcessInstanceByNativeQuery
(Map<String, Object> parameterMap, int firstResult, int maxResults) ExecutionManager.findProcessInstancesByQueryCriteria
(ProcessInstanceQueryImpl processInstanceQuery, Page page) -
Uses of ProcessInstance in org.camunda.bpm.engine.impl.runtime
Modifier and TypeFieldDescriptionprotected ProcessInstance
MessageCorrelationResultImpl.processInstance
Modifier and TypeMethodDescriptionvoid
MessageCorrelationResultImpl.setProcessInstance
(ProcessInstance processInstance) -
Uses of ProcessInstance in org.camunda.bpm.engine.rest.dto.runtime
Modifier and TypeMethodDescriptionstatic ProcessInstanceDto
ProcessInstanceDto.fromProcessInstance
(ProcessInstance instance) -
Uses of ProcessInstance in org.camunda.bpm.engine.runtime
Modifier and TypeInterfaceDescriptioninterface
Represents a process instance with the corresponding latest variables.Modifier and TypeMethodDescriptionMessageCorrelationBuilder.correlateStartMessage()
Executes the message correlation.ProcessInstantiationBuilder.execute()
Start the process instance.ProcessInstantiationBuilder.execute
(boolean skipCustomListeners, boolean skipIoMappings) Start the process instance.MessageCorrelationResult.getProcessInstance()
Returns the process instance id on which the message was correlated to. -
Uses of ProcessInstance in org.camunda.bpm.engine.test.assertions.bpmn
Modifier and TypeMethodDescriptionstatic ProcessInstance
BpmnAwareTests.calledProcessInstance()
Helper method to easily access the only called process instance currently available in the context of the last asserted process instance.static ProcessInstance
BpmnAwareTests.calledProcessInstance
(String processDefinitionKey) Helper method to easily access the only called process instance with the given processDefinitionKey currently available in the context of the last asserted process instance.static ProcessInstance
BpmnAwareTests.calledProcessInstance
(String processDefinitionKey, ProcessInstance processInstance) Helper method to easily access the only called process instance with the given processDefinitionKey currently available in the context of the given process instance.static ProcessInstance
BpmnAwareTests.calledProcessInstance
(ProcessInstance processInstance) Helper method to easily access the only called process instance currently available in the context of the given process instance.static ProcessInstance
BpmnAwareTests.calledProcessInstance
(ProcessInstanceQuery processInstanceQuery) Helper method to easily access the only called process instance compliant to a given processInstanceQuery and currently available in the context of the last asserted process instance.static ProcessInstance
BpmnAwareTests.calledProcessInstance
(ProcessInstanceQuery processInstanceQuery, ProcessInstance processInstance) Helper method to easily access the only called process instance compliant to a given processInstanceQuery and currently available in the context of the given process instance.protected ProcessInstance
ProcessInstanceAssert.getCurrent()
Modifier and TypeMethodDescriptionstatic ProcessInstanceAssert
BpmnAwareTests.assertThat
(ProcessInstance actual) Assert that...protected static CalledProcessInstanceAssert
CalledProcessInstanceAssert.assertThat
(ProcessEngine engine, ProcessInstance actual) protected static ProcessInstanceAssert
ProcessInstanceAssert.assertThat
(ProcessEngine engine, ProcessInstance actual) static ProcessInstance
BpmnAwareTests.calledProcessInstance
(String processDefinitionKey, ProcessInstance processInstance) Helper method to easily access the only called process instance with the given processDefinitionKey currently available in the context of the given process instance.static ProcessInstance
BpmnAwareTests.calledProcessInstance
(ProcessInstance processInstance) Helper method to easily access the only called process instance currently available in the context of the given process instance.static ProcessInstance
BpmnAwareTests.calledProcessInstance
(ProcessInstanceQuery processInstanceQuery, ProcessInstance processInstance) Helper method to easily access the only called process instance compliant to a given processInstanceQuery and currently available in the context of the given process instance.static ExternalTask
BpmnAwareTests.externalTask
(String activityId, ProcessInstance processInstance) Helper method to easily access the only external task with the given activityId currently available in the context of the given process instance.static ExternalTask
BpmnAwareTests.externalTask
(ExternalTaskQuery externalTaskQuery, ProcessInstance processInstance) Helper method to easily access the only external task compliant to a given externalTaskQuery and currently available in the context of the given process instance.static ExternalTask
BpmnAwareTests.externalTask
(ProcessInstance processInstance) Helper method to easily access the only external task currently available in the context of the given process instance.static Job
BpmnAwareTests.job
(String activityId, ProcessInstance processInstance) Helper method to easily access the only job with the given activityId currently available in the context of the given process instance.static Job
BpmnAwareTests.job
(JobQuery jobQuery, ProcessInstance processInstance) Helper method to easily access the only job compliant to a given jobQuery and currently available in the context of the given process instance.static Job
BpmnAwareTests.job
(ProcessInstance processInstance) Helper method to easily access the only job currently available in the context of the given process instance.static ProcessDefinition
BpmnAwareTests.processDefinition
(ProcessInstance processInstance) Helper method to easily access the process definition on which the given process instance is based.static Task
BpmnAwareTests.task
(String taskDefinitionKey, ProcessInstance processInstance) Helper method to easily access the only task with the given taskDefinitionKey currently available in the context of the given process instance.static Task
BpmnAwareTests.task
(ProcessInstance processInstance) Helper method to easily access the only task currently available in the context of the given process instance.static Task
BpmnAwareTests.task
(TaskQuery taskQuery, ProcessInstance processInstance) Helper method to easily access the only task compliant to a given taskQuery and currently available in the context of the given process instance.protected String
ProcessInstanceAssert.toString
(ProcessInstance processInstance) ModifierConstructorDescriptionprotected
CalledProcessInstanceAssert
(ProcessEngine engine, ProcessInstance actual) protected
ProcessInstanceAssert
(ProcessEngine engine, ProcessInstance actual) protected
ProcessInstanceAssert
(ProcessEngine engine, ProcessInstance actual, Class<?> selfType) -
Uses of ProcessInstance in org.camunda.bpm.qa.upgrade
FormService.submitStartForm(String, String, Map)