Class DefaultProcessInstanceService
java.lang.Object
org.flowable.cmmn.engine.configurator.impl.process.DefaultProcessInstanceService
- All Implemented Interfaces:
ProcessInstanceService
- Author:
- Joram Barrez
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultProcessInstanceService(ProcessEngineConfigurationImpl processEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteProcessInstance(String processInstanceId) Deletes the given process instance.getOutputParametersOfCaseTask(String executionId) Retrieves theIOParameterout parameters of a case task currently being execution by the given execution.getVariable(String executionId, String variableName) Returns the variable value for a given variable.getVariables(String executionId) Returns all variables for the given execution (or process instance).voidhandleCaseTaskError(String executionId, BusinessError error) Propagates an uncaught business error from a child case instance to the parent BPMN execution.booleanisHistoryEnabledForProcessDefinitionId(String processDefinitionId) Checks whether history is enabled for the given process definition id.booleanisHistoryEnabledForProcessInstance(String processInstanceId) Checks whether history is enabled for the given process instance id.resolveExpression(String executionId, String expressionString) Resolves the given expression within the context of the passed execution.resolveProcessDefinitionId(String processDefinitionKey, String tenantId, Boolean fallbackToDefaultTenant, String parentDeploymentId) Resolves the process definition id from the given key and parameters.startProcessInstance(String processDefinitionId, String predefinedProcessInstanceId, String planItemInstanceId, String stageInstanceId, String tenantId, Map<String, Object> inParametersMap, String businessKey, Map<String, Object> variableFormVariables, FormInfo variableFormInfo, String variableFormOutcome) Starts a process instance with a reference to a plan item instance (i.e. blocking behavior).startProcessInstance(String processDefinitionId, String predefinedProcessInstanceId, String stageInstanceId, String tenantId, Map<String, Object> inParametersMap, String businessKey, Map<String, Object> variableFormVariables, FormInfo variableFormInfo, String variableFormOutcome) Starts a process instance without a reference to a plan item instance (i.e. non-blocking behavior).voidtriggerCaseTask(String executionId, Map<String, Object> variables) Triggers a case instance that was started by a process instance.
-
Field Details
-
processEngineConfiguration
-
-
Constructor Details
-
DefaultProcessInstanceService
-
-
Method Details
-
generateNewProcessInstanceId
- Specified by:
generateNewProcessInstanceIdin interfaceProcessInstanceService- Returns:
- A new id that will be used when starting a process instance. This is for example needed to set the bidirectional relation when a case instance starts a process instance through a process task.
-
startProcessInstance
public String startProcessInstance(String processDefinitionId, String predefinedProcessInstanceId, String stageInstanceId, String tenantId, Map<String, Object> inParametersMap, String businessKey, Map<String, Object> variableFormVariables, FormInfo variableFormInfo, String variableFormOutcome) Description copied from interface:ProcessInstanceServiceStarts a process instance without a reference to a plan item instance (i.e. non-blocking behavior).- Specified by:
startProcessInstancein interfaceProcessInstanceService
-
startProcessInstance
public String startProcessInstance(String processDefinitionId, String predefinedProcessInstanceId, String planItemInstanceId, String stageInstanceId, String tenantId, Map<String, Object> inParametersMap, String businessKey, Map<String, Object> variableFormVariables, FormInfo variableFormInfo, String variableFormOutcome) Description copied from interface:ProcessInstanceServiceStarts a process instance with a reference to a plan item instance (i.e. blocking behavior).- Specified by:
startProcessInstancein interfaceProcessInstanceService
-
triggerCaseTask
Description copied from interface:ProcessInstanceServiceTriggers a case instance that was started by a process instance.- Specified by:
triggerCaseTaskin interfaceProcessInstanceService
-
handleCaseTaskError
Description copied from interface:ProcessInstanceServicePropagates an uncaught business error from a child case instance to the parent BPMN execution. This triggers BPMN error propagation (boundary error events) on the CaseTask.- Specified by:
handleCaseTaskErrorin interfaceProcessInstanceService
-
getOutputParametersOfCaseTask
Description copied from interface:ProcessInstanceServiceRetrieves theIOParameterout parameters of a case task currently being execution by the given execution.- Specified by:
getOutputParametersOfCaseTaskin interfaceProcessInstanceService
-
resolveProcessDefinitionId
public String resolveProcessDefinitionId(String processDefinitionKey, String tenantId, Boolean fallbackToDefaultTenant, String parentDeploymentId) Description copied from interface:ProcessInstanceServiceResolves the process definition id from the given key and parameters.- Specified by:
resolveProcessDefinitionIdin interfaceProcessInstanceService
-
isHistoryEnabledForProcessDefinitionId
Description copied from interface:ProcessInstanceServiceChecks whether history is enabled for the given process definition id.- Specified by:
isHistoryEnabledForProcessDefinitionIdin interfaceProcessInstanceService
-
isHistoryEnabledForProcessInstance
Description copied from interface:ProcessInstanceServiceChecks whether history is enabled for the given process instance id.- Specified by:
isHistoryEnabledForProcessInstancein interfaceProcessInstanceService
-
deleteProcessInstance
Description copied from interface:ProcessInstanceServiceDeletes the given process instance. Typically used to propagate termination.- Specified by:
deleteProcessInstancein interfaceProcessInstanceService
-
getVariable
Description copied from interface:ProcessInstanceServiceReturns the variable value for a given variable.- Specified by:
getVariablein interfaceProcessInstanceService
-
getVariables
Description copied from interface:ProcessInstanceServiceReturns all variables for the given execution (or process instance).- Specified by:
getVariablesin interfaceProcessInstanceService
-
resolveExpression
Description copied from interface:ProcessInstanceServiceResolves the given expression within the context of the passed execution.- Specified by:
resolveExpressionin interfaceProcessInstanceService
-