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 TypeMethodDescriptionvoid
deleteProcessInstance
(String processInstanceId) Deletes the given process instance.getOutputParametersOfCaseTask
(String executionId) Retrieves theIOParameter
out 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).resolveExpression
(String executionId, String expressionString) Resolves the given expression within the context of the passed execution.startProcessInstanceByKey
(String processDefinitionKey, String predefinedProcessInstanceId, String stageInstanceId, String tenantId, Boolean fallbackToDefaultTenant, String parentDeploymentId, 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.startProcessInstanceByKey
(String processDefinitionKey, String predefinedProcessInstanceId, String planItemInstanceId, String stageInstanceId, String tenantId, Boolean fallbackToDefaultTenant, String parentDeploymentId, 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.void
triggerCaseTask
(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:
generateNewProcessInstanceId
in 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.
-
startProcessInstanceByKey
public String startProcessInstanceByKey(String processDefinitionKey, String predefinedProcessInstanceId, String stageInstanceId, String tenantId, Boolean fallbackToDefaultTenant, String parentDeploymentId, Map<String, Object> inParametersMap, String businessKey, Map<String, Object> variableFormVariables, FormInfo variableFormInfo, String variableFormOutcome) Description copied from interface:ProcessInstanceService
Starts a process instance without a reference to a plan item instance (i.e. non-blocking behavior).- Specified by:
startProcessInstanceByKey
in interfaceProcessInstanceService
-
startProcessInstanceByKey
public String startProcessInstanceByKey(String processDefinitionKey, String predefinedProcessInstanceId, String planItemInstanceId, String stageInstanceId, String tenantId, Boolean fallbackToDefaultTenant, String parentDeploymentId, Map<String, Object> inParametersMap, String businessKey, Map<String, Object> variableFormVariables, FormInfo variableFormInfo, String variableFormOutcome) Description copied from interface:ProcessInstanceService
Starts a process instance with a reference to a plan item instance (i.e. blocking behavior).- Specified by:
startProcessInstanceByKey
in interfaceProcessInstanceService
-
triggerCaseTask
Description copied from interface:ProcessInstanceService
Triggers a case instance that was started by a process instance.- Specified by:
triggerCaseTask
in interfaceProcessInstanceService
-
getOutputParametersOfCaseTask
Description copied from interface:ProcessInstanceService
Retrieves theIOParameter
out parameters of a case task currently being execution by the given execution.- Specified by:
getOutputParametersOfCaseTask
in interfaceProcessInstanceService
-
deleteProcessInstance
Description copied from interface:ProcessInstanceService
Deletes the given process instance. Typically used to propagate termination.- Specified by:
deleteProcessInstance
in interfaceProcessInstanceService
-
getVariable
Description copied from interface:ProcessInstanceService
Returns the variable value for a given variable.- Specified by:
getVariable
in interfaceProcessInstanceService
-
getVariables
Description copied from interface:ProcessInstanceService
Returns all variables for the given execution (or process instance).- Specified by:
getVariables
in interfaceProcessInstanceService
-
resolveExpression
Description copied from interface:ProcessInstanceService
Resolves the given expression within the context of the passed execution.- Specified by:
resolveExpression
in interfaceProcessInstanceService
-