Class HistoryServiceImpl
- All Implemented Interfaces:
HistoryService
- Author:
- Tom Baeyens, Bernd Ruecker (camunda), Christian Stettler
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.ServiceImpl
commandExecutor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSchedules history cleanup job at batch window start time.cleanUpHistoryAsync
(boolean immediatelyDue) Schedules history cleanup job at batch window start time.void
clearAnnotationForOperationLogById
(String operationId) Clear the annotation for user operation log entries.Creates a new programmatic query to create a cleanable historic batch report.Creates a new programmatic query to create a cleanable historic case instance report.Creates a new programmatic query to create a cleanable historic decision instance report.Creates a new programmatic query to create a cleanable historic process instance report.Creates a new programmatic query to search forHistoricActivityInstance
s.createHistoricActivityStatisticsQuery
(String processDefinitionId) Query for the number of historic activity instances aggregated by activities of a single process definition.Creates a query to search forHistoricBatch
instances.Creates a new programmatic query to search forHistoricCaseActivityInstance
s.createHistoricCaseActivityStatisticsQuery
(String caseDefinitionId) Query for the number of historic case activity instances aggregated by case activities of a single case definition.Creates a new programmatic query to search forHistoricCaseInstance
s.Creates a new programmatic query to search forHistoricDecisionInstance
s.createHistoricDecisionInstanceStatisticsQuery
(String decisionRequirementsDefinitionId) Query for the statistics of DRD evaluation.Creates a new programmatic query to search forHistoricDetail
s.Creates a new programmatic query to search forhistoric external task logs
.Creates a new programmatic query to search forhistoric identity links
.Creates a new programmatic query to search forhistoric incidents
.Creates a new programmatic query to search forhistoric job logs
.Creates a new programmatic query to search forHistoricProcessInstance
s.Creates a new programmatic query to create a historic process instance report.Creates a new programmatic query to search forHistoricTaskInstance
s.Creates a new programmatic query to create a historic task instance report.Creates a new programmatic query to search forHistoricVariableInstance
s.creates a native query to search forHistoricActivityInstance
s via SQLcreates a native query to search forHistoricCaseActivityInstance
s via SQLcreates a native query to search forHistoricCaseInstance
s via SQLcreates a native query to search forHistoricDecisionInstance
s via SQLcreates a native query to search forHistoricProcessInstance
s via SQLcreates a native query to search forHistoricTaskInstance
s via SQLcreates a native query to search forHistoricVariableInstance
s via SQLCreates a new programmatic query to search forUserOperationLogEntry
instances.void
deleteHistoricBatch
(String batchId) Deletes a historic batch instance.void
deleteHistoricCaseInstance
(String caseInstanceId) Deletes historic case instance.void
deleteHistoricCaseInstancesBulk
(List<String> caseInstanceIds) Deletes historic case instances and all related historic data in bulk manner.void
deleteHistoricDecisionInstance
(String decisionDefinitionId) Deletes historic decision instances of a decision definition.void
deleteHistoricDecisionInstanceByDefinitionId
(String decisionDefinitionId) Deletes historic decision instances of a decision definition.void
deleteHistoricDecisionInstanceByInstanceId
(String historicDecisionInstanceId) Deletes historic decision instances by its id.deleteHistoricDecisionInstancesAsync
(List<String> decisionInstanceIds, String deleteReason) Deletes historic decision instances asynchronously based on a list of decision instances.deleteHistoricDecisionInstancesAsync
(List<String> decisionInstanceIds, HistoricDecisionInstanceQuery query, String deleteReason) Deletes historic decision instances asynchronously based on query and a list of decision instances, whereby query result and list of ids will be merged.deleteHistoricDecisionInstancesAsync
(HistoricDecisionInstanceQuery query, String deleteReason) Deletes historic decision instances asynchronously based on query of decision instances.void
deleteHistoricDecisionInstancesBulk
(List<String> decisionInstanceIds) Deletes decision instances and all related historic data in bulk manner.void
deleteHistoricProcessInstance
(String processInstanceId) Deletes historic process instance.void
deleteHistoricProcessInstanceIfExists
(String processInstanceId) Deletes historic process instance.void
deleteHistoricProcessInstances
(List<String> processInstanceIds) Deletes historic process instances.deleteHistoricProcessInstancesAsync
(List<String> processInstanceIds, String deleteReason) Deletes historic process instances asynchronously.deleteHistoricProcessInstancesAsync
(List<String> processInstanceIds, HistoricProcessInstanceQuery query, String deleteReason) Deletes historic process instances asynchronously based on query and a list of process instances.deleteHistoricProcessInstancesAsync
(HistoricProcessInstanceQuery query, String deleteReason) Deletes historic process instances asynchronously based on query.void
deleteHistoricProcessInstancesBulk
(List<String> processInstanceIds) Deletes historic process instances and all related historic data in bulk manner.void
deleteHistoricProcessInstancesIfExists
(List<String> processInstanceIds) Deletes historic process instances.void
deleteHistoricTaskInstance
(String taskId) Deletes historic task instance.void
deleteHistoricVariableInstance
(String variableInstanceId) Deletes a historic variable instance by its id.void
deleteHistoricVariableInstancesByProcessInstanceId
(String processInstanceId) Deletes all historic variables and historic details (variable updates, form properties) of a process instance.void
deleteUserOperationLogEntry
(String entryId) Deletes a user operation log entry.Finds history cleanup job, if present.Finds history cleanup jobs if present.getHistoricExternalTaskLogErrorDetails
(String historicExternalTaskLogId) Returns the full error details that occurs when the historic external task log with the given id was last executed.getHistoricJobLogExceptionStacktrace
(String historicJobLogId) Returns the full stacktrace of the exception that occurs when the historic job log with the given id was last executed.void
setAnnotationForOperationLogById
(String operationId, String annotation) Set an annotation to user operation log entries.Set a removal time to historic batches and all associated historic entities using a fluent builder.Set a removal time to historic decision instances and all associated historic entities using a fluent builder.Set a removal time to historic process instances and all associated historic entities using a fluent builder.Methods inherited from class org.camunda.bpm.engine.impl.ServiceImpl
getCommandExecutor, setCommandExecutor
-
Constructor Details
-
HistoryServiceImpl
public HistoryServiceImpl()
-
-
Method Details
-
createHistoricProcessInstanceQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search for
HistoricProcessInstance
s.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORY
permission onResources.PROCESS_DEFINITION
OR - The user has no
HistoricProcessInstancePermissions.READ
permission onResources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
)
- Specified by:
createHistoricProcessInstanceQuery
in interfaceHistoryService
- The user has no
-
createHistoricActivityInstanceQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search for
HistoricActivityInstance
s.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORY
permission onResources.PROCESS_DEFINITION
OR - The user has no
HistoricProcessInstancePermissions.READ
permission onResources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
)
- Specified by:
createHistoricActivityInstanceQuery
in interfaceHistoryService
- The user has no
-
createHistoricActivityStatisticsQuery
public HistoricActivityStatisticsQuery createHistoricActivityStatisticsQuery(String processDefinitionId) Description copied from interface:HistoryService
Query for the number of historic activity instances aggregated by activities of a single process definition.
The result of the query is empty when the user has no
Permissions.READ_HISTORY
permission onResources.PROCESS_DEFINITION
- Specified by:
createHistoricActivityStatisticsQuery
in interfaceHistoryService
-
createHistoricCaseActivityStatisticsQuery
public HistoricCaseActivityStatisticsQuery createHistoricCaseActivityStatisticsQuery(String caseDefinitionId) Description copied from interface:HistoryService
Query for the number of historic case activity instances aggregated by case activities of a single case definition.- Specified by:
createHistoricCaseActivityStatisticsQuery
in interfaceHistoryService
-
createHistoricTaskInstanceQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search for
HistoricTaskInstance
s.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORY
permission onResources.PROCESS_DEFINITION
OR - The user has no
HistoricProcessInstancePermissions.READ
permission onResources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
) OR - The user has no
HistoricTaskPermissions.READ
permission onResources.HISTORIC_TASK
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
)
- Specified by:
createHistoricTaskInstanceQuery
in interfaceHistoryService
- The user has no
-
createHistoricDetailQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search for
HistoricDetail
s.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORY
permission onResources.PROCESS_DEFINITION
OR - The user has no
HistoricTaskPermissions.READ
permission onResources.HISTORIC_TASK
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
) OR - The user has no
HistoricProcessInstancePermissions.READ
permission onResources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
) OR - The user has no
ProcessDefinitionPermissions.READ_HISTORY_VARIABLE
permission onResources.PROCESS_DEFINITION
(ProcessEngineConfiguration.enforceSpecificVariablePermission
must be set totrue
) OR - The user has no
HistoricTaskPermissions.READ_VARIABLE
permission onResources.HISTORIC_TASK
(enforceSpecificVariablePermission
andenableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
)
- Specified by:
createHistoricDetailQuery
in interfaceHistoryService
- The user has no
-
createUserOperationLogQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search for
UserOperationLogEntry
instances.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORY
permission onResources.PROCESS_DEFINITION
OR - The user has no
HistoricProcessInstancePermissions.READ
permission onResources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
) OR - The user has no
HistoricTaskPermissions.READ
permission onResources.HISTORIC_TASK
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
)
- Specified by:
createUserOperationLogQuery
in interfaceHistoryService
- The user has no
-
createHistoricVariableInstanceQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search for
HistoricVariableInstance
s.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORY
permission onResources.PROCESS_DEFINITION
OR - The user has no
HistoricTaskPermissions.READ
permission onResources.HISTORIC_TASK
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
) OR - The user has no
HistoricProcessInstancePermissions.READ
permission onResources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
) OR - The user has no
ProcessDefinitionPermissions.READ_HISTORY_VARIABLE
permission onResources.PROCESS_DEFINITION
(ProcessEngineConfiguration.enforceSpecificVariablePermission
must be set totrue
) OR - The user has no
HistoricTaskPermissions.READ_VARIABLE
permission onResources.HISTORIC_TASK
(enforceSpecificVariablePermission
andenableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
)
- Specified by:
createHistoricVariableInstanceQuery
in interfaceHistoryService
- The user has no
-
createHistoricIncidentQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search for
historic incidents
.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORY
permission onResources.PROCESS_DEFINITION
OR - The user has no
HistoricProcessInstancePermissions.READ
permission onResources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
)
- Specified by:
createHistoricIncidentQuery
in interfaceHistoryService
- The user has no
-
createHistoricIdentityLinkLogQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search for
historic identity links
.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORY
permission onResources.PROCESS_DEFINITION
OR - The user has no
HistoricTaskPermissions.READ
permission onResources.HISTORIC_TASK
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
)
- Specified by:
createHistoricIdentityLinkLogQuery
in interfaceHistoryService
- The user has no
-
createHistoricCaseInstanceQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search forHistoricCaseInstance
s.- Specified by:
createHistoricCaseInstanceQuery
in interfaceHistoryService
-
createHistoricCaseActivityInstanceQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search forHistoricCaseActivityInstance
s.- Specified by:
createHistoricCaseActivityInstanceQuery
in interfaceHistoryService
-
createHistoricDecisionInstanceQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search forHistoricDecisionInstance
s. If the user has noPermissions.READ_HISTORY
permission onResources.DECISION_DEFINITION
then the result of the query is empty.- Specified by:
createHistoricDecisionInstanceQuery
in interfaceHistoryService
-
deleteHistoricTaskInstance
Description copied from interface:HistoryService
Deletes historic task instance. This might be useful for tasks that aredynamically created
and thencompleted
. If the historic task instance doesn't exist, no exception is thrown and the method returns normal.- Specified by:
deleteHistoricTaskInstance
in interfaceHistoryService
-
deleteHistoricProcessInstance
Description copied from interface:HistoryService
Deletes historic process instance. All historic activities, historic task and historic details (variable updates, form properties) are deleted as well.- Specified by:
deleteHistoricProcessInstance
in interfaceHistoryService
-
deleteHistoricProcessInstanceIfExists
Description copied from interface:HistoryService
Deletes historic process instance. All historic activities, historic task and historic details (variable updates, form properties) are deleted as well. Does not fail if a process instance was not found.- Specified by:
deleteHistoricProcessInstanceIfExists
in interfaceHistoryService
-
deleteHistoricProcessInstances
Description copied from interface:HistoryService
Deletes historic process instances. All historic activities, historic task and historic details (variable updates, form properties) are deleted as well.- Specified by:
deleteHistoricProcessInstances
in interfaceHistoryService
-
deleteHistoricProcessInstancesIfExists
Description copied from interface:HistoryService
Deletes historic process instances. All historic activities, historic task and historic details (variable updates, form properties) are deleted as well. Does not fail if a process instance was not found.- Specified by:
deleteHistoricProcessInstancesIfExists
in interfaceHistoryService
-
deleteHistoricProcessInstancesBulk
Description copied from interface:HistoryService
Deletes historic process instances and all related historic data in bulk manner. DELETE SQL statement will be created for each entity type. They will have list of given process instance ids in IN clause. Therefore, DB limitation for number of values in IN clause must be taken into account.- Specified by:
deleteHistoricProcessInstancesBulk
in interfaceHistoryService
- Parameters:
processInstanceIds
- list of process instance ids for removal
-
cleanUpHistoryAsync
Description copied from interface:HistoryService
Schedules history cleanup job at batch window start time. The job will delete historic data for finished process, decision and case instances, and batch operations taking into accountResourceDefinition.getHistoryTimeToLive()
,DecisionDefinition#getHistoryTimeToLive()
,CaseDefinition#getHistoryTimeToLive()
,ProcessEngineConfigurationImpl.getBatchOperationHistoryTimeToLive()
andProcessEngineConfigurationImpl.getBatchOperationsForHistoryCleanup()
values.- Specified by:
cleanUpHistoryAsync
in interfaceHistoryService
- Returns:
- history cleanup job. NB! As of v. 7.9.0, method does not guarantee to return a job. Use
HistoryService.findHistoryCleanupJobs()
instead.
-
cleanUpHistoryAsync
Description copied from interface:HistoryService
Schedules history cleanup job at batch window start time. The job will delete historic data for finished process, decision and case instances, and batch operations taking into accountResourceDefinition.getHistoryTimeToLive()
,DecisionDefinition#getHistoryTimeToLive()
,CaseDefinition#getHistoryTimeToLive()
,ProcessEngineConfigurationImpl.getBatchOperationHistoryTimeToLive()
andProcessEngineConfigurationImpl.getBatchOperationsForHistoryCleanup()
values.- Specified by:
cleanUpHistoryAsync
in interfaceHistoryService
- Parameters:
immediatelyDue
- must be true if cleanup must be scheduled at once, otherwise is will be scheduled according to configured batch window- Returns:
- history cleanup job. Job id can be used to check job logs, incident etc.
-
findHistoryCleanupJob
Description copied from interface:HistoryService
Finds history cleanup job, if present.- Specified by:
findHistoryCleanupJob
in interfaceHistoryService
- Returns:
- history cleanup job entity
-
findHistoryCleanupJobs
Description copied from interface:HistoryService
Finds history cleanup jobs if present.- Specified by:
findHistoryCleanupJobs
in interfaceHistoryService
- Returns:
- history cleanup job entities
-
deleteHistoricProcessInstancesAsync
public Batch deleteHistoricProcessInstancesAsync(List<String> processInstanceIds, String deleteReason) Description copied from interface:HistoryService
Deletes historic process instances asynchronously. All historic activities, historic task and historic details (variable updates, form properties) are deleted as well.- Specified by:
deleteHistoricProcessInstancesAsync
in interfaceHistoryService
-
deleteHistoricProcessInstancesAsync
public Batch deleteHistoricProcessInstancesAsync(HistoricProcessInstanceQuery query, String deleteReason) Description copied from interface:HistoryService
Deletes historic process instances asynchronously based on query. All historic activities, historic task and historic details (variable updates, form properties) are deleted as well.- Specified by:
deleteHistoricProcessInstancesAsync
in interfaceHistoryService
-
deleteHistoricProcessInstancesAsync
public Batch deleteHistoricProcessInstancesAsync(List<String> processInstanceIds, HistoricProcessInstanceQuery query, String deleteReason) Description copied from interface:HistoryService
Deletes historic process instances asynchronously based on query and a list of process instances. Query result and list of ids will be merged. All historic activities, historic task and historic details (variable updates, form properties) are deleted as well.- Specified by:
deleteHistoricProcessInstancesAsync
in interfaceHistoryService
-
deleteUserOperationLogEntry
Description copied from interface:HistoryService
Deletes a user operation log entry. Does not cascade to any related entities.- Specified by:
deleteUserOperationLogEntry
in interfaceHistoryService
-
deleteHistoricCaseInstance
Description copied from interface:HistoryService
Deletes historic case instance. All historic case activities, historic task and historic details are deleted as well.- Specified by:
deleteHistoricCaseInstance
in interfaceHistoryService
-
deleteHistoricCaseInstancesBulk
Description copied from interface:HistoryService
Deletes historic case instances and all related historic data in bulk manner. DELETE SQL statement will be created for each entity type. They will have list of given case instance ids in IN clause. Therefore, DB limitation for number of values in IN clause must be taken into account.- Specified by:
deleteHistoricCaseInstancesBulk
in interfaceHistoryService
- Parameters:
caseInstanceIds
- list of case instance ids for removal
-
deleteHistoricDecisionInstance
Description copied from interface:HistoryService
Deletes historic decision instances of a decision definition. All historic decision inputs and outputs are deleted as well.- Specified by:
deleteHistoricDecisionInstance
in interfaceHistoryService
- Parameters:
decisionDefinitionId
- the id of the decision definition
-
deleteHistoricDecisionInstancesBulk
Description copied from interface:HistoryService
Deletes decision instances and all related historic data in bulk manner. DELETE SQL statement will be created for each entity type. They will have list of given decision instance ids in IN clause. Therefore, DB limitation for number of values in IN clause must be taken into account.- Specified by:
deleteHistoricDecisionInstancesBulk
in interfaceHistoryService
- Parameters:
decisionInstanceIds
- list of decision instance ids for removal.
-
deleteHistoricDecisionInstanceByDefinitionId
Description copied from interface:HistoryService
Deletes historic decision instances of a decision definition. All historic decision inputs and outputs are deleted as well.- Specified by:
deleteHistoricDecisionInstanceByDefinitionId
in interfaceHistoryService
- Parameters:
decisionDefinitionId
- the id of the decision definition
-
deleteHistoricDecisionInstanceByInstanceId
Description copied from interface:HistoryService
Deletes historic decision instances by its id. All historic decision inputs and outputs are deleted as well.- Specified by:
deleteHistoricDecisionInstanceByInstanceId
in interfaceHistoryService
- Parameters:
historicDecisionInstanceId
- the id of the historic decision instance
-
deleteHistoricDecisionInstancesAsync
public Batch deleteHistoricDecisionInstancesAsync(List<String> decisionInstanceIds, String deleteReason) Description copied from interface:HistoryService
Deletes historic decision instances asynchronously based on a list of decision instances.- Specified by:
deleteHistoricDecisionInstancesAsync
in interfaceHistoryService
-
deleteHistoricDecisionInstancesAsync
public Batch deleteHistoricDecisionInstancesAsync(HistoricDecisionInstanceQuery query, String deleteReason) Description copied from interface:HistoryService
Deletes historic decision instances asynchronously based on query of decision instances.- Specified by:
deleteHistoricDecisionInstancesAsync
in interfaceHistoryService
-
deleteHistoricDecisionInstancesAsync
public Batch deleteHistoricDecisionInstancesAsync(List<String> decisionInstanceIds, HistoricDecisionInstanceQuery query, String deleteReason) Description copied from interface:HistoryService
Deletes historic decision instances asynchronously based on query and a list of decision instances, whereby query result and list of ids will be merged.- Specified by:
deleteHistoricDecisionInstancesAsync
in interfaceHistoryService
-
deleteHistoricVariableInstance
Description copied from interface:HistoryService
Deletes a historic variable instance by its id. All related historic details (variable updates, form properties) are deleted as well.- Specified by:
deleteHistoricVariableInstance
in interfaceHistoryService
- Parameters:
variableInstanceId
- the id of the variable instance
-
deleteHistoricVariableInstancesByProcessInstanceId
Description copied from interface:HistoryService
Deletes all historic variables and historic details (variable updates, form properties) of a process instance.- Specified by:
deleteHistoricVariableInstancesByProcessInstanceId
in interfaceHistoryService
- Parameters:
processInstanceId
- the id of the process instance
-
createNativeHistoricProcessInstanceQuery
Description copied from interface:HistoryService
creates a native query to search forHistoricProcessInstance
s via SQL- Specified by:
createNativeHistoricProcessInstanceQuery
in interfaceHistoryService
-
createNativeHistoricTaskInstanceQuery
Description copied from interface:HistoryService
creates a native query to search forHistoricTaskInstance
s via SQL- Specified by:
createNativeHistoricTaskInstanceQuery
in interfaceHistoryService
-
createNativeHistoricActivityInstanceQuery
Description copied from interface:HistoryService
creates a native query to search forHistoricActivityInstance
s via SQL- Specified by:
createNativeHistoricActivityInstanceQuery
in interfaceHistoryService
-
createNativeHistoricCaseInstanceQuery
Description copied from interface:HistoryService
creates a native query to search forHistoricCaseInstance
s via SQL- Specified by:
createNativeHistoricCaseInstanceQuery
in interfaceHistoryService
-
createNativeHistoricCaseActivityInstanceQuery
Description copied from interface:HistoryService
creates a native query to search forHistoricCaseActivityInstance
s via SQL- Specified by:
createNativeHistoricCaseActivityInstanceQuery
in interfaceHistoryService
-
createNativeHistoricDecisionInstanceQuery
Description copied from interface:HistoryService
creates a native query to search forHistoricDecisionInstance
s via SQL- Specified by:
createNativeHistoricDecisionInstanceQuery
in interfaceHistoryService
-
createNativeHistoricVariableInstanceQuery
Description copied from interface:HistoryService
creates a native query to search forHistoricVariableInstance
s via SQL- Specified by:
createNativeHistoricVariableInstanceQuery
in interfaceHistoryService
-
createHistoricJobLogQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search for
historic job logs
.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORY
permission onResources.PROCESS_DEFINITION
OR - The user has no
HistoricProcessInstancePermissions.READ
permission onResources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
)
- Specified by:
createHistoricJobLogQuery
in interfaceHistoryService
- The user has no
-
getHistoricJobLogExceptionStacktrace
Description copied from interface:HistoryService
Returns the full stacktrace of the exception that occurs when the historic job log with the given id was last executed. Returns null when the historic job log has no exception stacktrace.- Specified by:
getHistoricJobLogExceptionStacktrace
in interfaceHistoryService
- Parameters:
historicJobLogId
- id of the historic job log, cannot be null.
-
createHistoricProcessInstanceReport
Description copied from interface:HistoryService
Creates a new programmatic query to create a historic process instance report.- Specified by:
createHistoricProcessInstanceReport
in interfaceHistoryService
-
createHistoricTaskInstanceReport
Description copied from interface:HistoryService
Creates a new programmatic query to create a historic task instance report.
Subsequent builder methods throw
AuthorizationException
when the user has noPermissions.READ_HISTORY
permission on anyResources.PROCESS_DEFINITION
.- Specified by:
createHistoricTaskInstanceReport
in interfaceHistoryService
-
createCleanableHistoricProcessInstanceReport
Description copied from interface:HistoryService
Creates a new programmatic query to create a cleanable historic process instance report.- Specified by:
createCleanableHistoricProcessInstanceReport
in interfaceHistoryService
-
createCleanableHistoricDecisionInstanceReport
Description copied from interface:HistoryService
Creates a new programmatic query to create a cleanable historic decision instance report.- Specified by:
createCleanableHistoricDecisionInstanceReport
in interfaceHistoryService
-
createCleanableHistoricCaseInstanceReport
Description copied from interface:HistoryService
Creates a new programmatic query to create a cleanable historic case instance report.- Specified by:
createCleanableHistoricCaseInstanceReport
in interfaceHistoryService
-
createCleanableHistoricBatchReport
Description copied from interface:HistoryService
Creates a new programmatic query to create a cleanable historic batch report.- Specified by:
createCleanableHistoricBatchReport
in interfaceHistoryService
-
createHistoricBatchQuery
Description copied from interface:HistoryService
Creates a query to search forHistoricBatch
instances.- Specified by:
createHistoricBatchQuery
in interfaceHistoryService
-
deleteHistoricBatch
Description copied from interface:HistoryService
Deletes a historic batch instance. All corresponding historic job logs are deleted as well;- Specified by:
deleteHistoricBatch
in interfaceHistoryService
-
createHistoricDecisionInstanceStatisticsQuery
public HistoricDecisionInstanceStatisticsQuery createHistoricDecisionInstanceStatisticsQuery(String decisionRequirementsDefinitionId) Description copied from interface:HistoryService
Query for the statistics of DRD evaluation.- Specified by:
createHistoricDecisionInstanceStatisticsQuery
in interfaceHistoryService
- Parameters:
decisionRequirementsDefinitionId
- - id of decision requirement definition
-
createHistoricExternalTaskLogQuery
Description copied from interface:HistoryService
Creates a new programmatic query to search for
historic external task logs
.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORY
permission onResources.PROCESS_DEFINITION
OR - The user has no
HistoricProcessInstancePermissions.READ
permission onResources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
inProcessEngineConfigurationImpl
must be set totrue
)
- Specified by:
createHistoricExternalTaskLogQuery
in interfaceHistoryService
- The user has no
-
getHistoricExternalTaskLogErrorDetails
Description copied from interface:HistoryService
Returns the full error details that occurs when the historic external task log with the given id was last executed. Returns null when the historic external task log contains no error details.- Specified by:
getHistoricExternalTaskLogErrorDetails
in interfaceHistoryService
- Parameters:
historicExternalTaskLogId
- id of the historic external task log, cannot be null.
-
setRemovalTimeToHistoricProcessInstances
public SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder setRemovalTimeToHistoricProcessInstances()Description copied from interface:HistoryService
Set a removal time to historic process instances and all associated historic entities using a fluent builder.
Historic process instances can be specified by passing a query to
SetRemovalTimeToHistoricProcessInstancesBuilder.byQuery(HistoricProcessInstanceQuery)
.An absolute time can be specified via
SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder.absoluteRemovalTime(Date)
. Passnull
to clear the removal time.As an alternative, the removal time can also be calculated via
SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder.calculatedRemovalTime()
based on the configured time to live values.To additionally take those historic process instances into account that are part of a hierarchy, enable the flag
SetRemovalTimeToHistoricProcessInstancesBuilder.hierarchical()
To create the batch and complete the configuration chain, call
SetRemovalTimeToHistoricProcessInstancesBuilder.executeAsync()
.- Specified by:
setRemovalTimeToHistoricProcessInstances
in interfaceHistoryService
-
setRemovalTimeToHistoricDecisionInstances
public SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder setRemovalTimeToHistoricDecisionInstances()Description copied from interface:HistoryService
Set a removal time to historic decision instances and all associated historic entities using a fluent builder.
Historic decision instances can be specified by passing a query to
SetRemovalTimeToHistoricDecisionInstancesBuilder.byQuery(HistoricDecisionInstanceQuery)
.An absolute time can be specified via
SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder.absoluteRemovalTime(Date)
. Passnull
to clear the removal time.As an alternative, the removal time can also be calculated via
SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder.calculatedRemovalTime()
based on the configured time to live values.To additionally take those historic decision instances into account that are part of a hierarchy, enable the flag
SetRemovalTimeToHistoricProcessInstancesBuilder.hierarchical()
To create the batch and complete the configuration chain, call
SetRemovalTimeToHistoricDecisionInstancesBuilder.executeAsync()
.- Specified by:
setRemovalTimeToHistoricDecisionInstances
in interfaceHistoryService
-
setRemovalTimeToHistoricBatches
Description copied from interface:HistoryService
Set a removal time to historic batches and all associated historic entities using a fluent builder.
Historic batches can be specified by passing a query to
SetRemovalTimeToHistoricBatchesBuilder.byQuery(HistoricBatchQuery)
.An absolute time can be specified via
SetRemovalTimeSelectModeForHistoricBatchesBuilder.absoluteRemovalTime(Date)
. Passnull
to clear the removal time.As an alternative, the removal time can also be calculated via
SetRemovalTimeSelectModeForHistoricBatchesBuilder.calculatedRemovalTime()
based on the configured time to live values.To create the batch and complete the configuration chain, call
SetRemovalTimeToHistoricBatchesBuilder.executeAsync()
.- Specified by:
setRemovalTimeToHistoricBatches
in interfaceHistoryService
-
setAnnotationForOperationLogById
Description copied from interface:HistoryService
Set an annotation to user operation log entries.
- Specified by:
setAnnotationForOperationLogById
in interfaceHistoryService
- Parameters:
operationId
- of the user operation log entries that are updatedannotation
- that is set to the user operation log entries
-
clearAnnotationForOperationLogById
Description copied from interface:HistoryService
Clear the annotation for user operation log entries.
- Specified by:
clearAnnotationForOperationLogById
in interfaceHistoryService
- Parameters:
operationId
- of the user operation log entries that are updated
-