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
Constructors -
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.voidclearAnnotationForOperationLogById(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 forHistoricActivityInstances.createHistoricActivityStatisticsQuery(String processDefinitionId) Query for the number of historic activity instances aggregated by activities of a single process definition.Creates a query to search forHistoricBatchinstances.Creates a new programmatic query to search forHistoricCaseActivityInstances.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 forHistoricCaseInstances.Creates a new programmatic query to search forHistoricDecisionInstances.createHistoricDecisionInstanceStatisticsQuery(String decisionRequirementsDefinitionId) Query for the statistics of DRD evaluation.Creates a new programmatic query to search forHistoricDetails.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 forHistoricProcessInstances.Creates a new programmatic query to create a historic process instance report.Creates a new programmatic query to search forHistoricTaskInstances.Creates a new programmatic query to create a historic task instance report.Creates a new programmatic query to search forHistoricVariableInstances.creates a native query to search forHistoricActivityInstances via SQLcreates a native query to search forHistoricCaseActivityInstances via SQLcreates a native query to search forHistoricCaseInstances via SQLcreates a native query to search forHistoricDecisionInstances via SQLcreates a native query to search forHistoricProcessInstances via SQLcreates a native query to search forHistoricTaskInstances via SQLcreates a native query to search forHistoricVariableInstances via SQLCreates a new programmatic query to search forUserOperationLogEntryinstances.voiddeleteHistoricBatch(String batchId) Deletes a historic batch instance.voiddeleteHistoricCaseInstance(String caseInstanceId) Deletes historic case instance.voiddeleteHistoricCaseInstancesBulk(List<String> caseInstanceIds) Deletes historic case instances and all related historic data in bulk manner.voiddeleteHistoricDecisionInstance(String decisionDefinitionId) Deletes historic decision instances of a decision definition.voiddeleteHistoricDecisionInstanceByDefinitionId(String decisionDefinitionId) Deletes historic decision instances of a decision definition.voiddeleteHistoricDecisionInstanceByInstanceId(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.voiddeleteHistoricDecisionInstancesBulk(List<String> decisionInstanceIds) Deletes decision instances and all related historic data in bulk manner.voiddeleteHistoricProcessInstance(String processInstanceId) Deletes historic process instance.voiddeleteHistoricProcessInstanceIfExists(String processInstanceId) Deletes historic process instance.voiddeleteHistoricProcessInstances(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.voiddeleteHistoricProcessInstancesBulk(List<String> processInstanceIds) Deletes historic process instances and all related historic data in bulk manner.voiddeleteHistoricProcessInstancesIfExists(List<String> processInstanceIds) Deletes historic process instances.voiddeleteHistoricTaskInstance(String taskId) Deletes historic task instance.voiddeleteHistoricVariableInstance(String variableInstanceId) Deletes a historic variable instance by its id.voiddeleteHistoricVariableInstancesByProcessInstanceId(String processInstanceId) Deletes all historic variables and historic details (variable updates, form properties) of a process instance.voiddeleteUserOperationLogEntry(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.voidsetAnnotationForOperationLogById(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:HistoryServiceCreates a new programmatic query to search for
HistoricProcessInstances.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORYpermission onResources.PROCESS_DEFINITIONOR - The user has no
HistoricProcessInstancePermissions.READpermission onResources.HISTORIC_PROCESS_INSTANCE(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue)
- Specified by:
createHistoricProcessInstanceQueryin interfaceHistoryService
- The user has no
-
createHistoricActivityInstanceQuery
Description copied from interface:HistoryServiceCreates a new programmatic query to search for
HistoricActivityInstances.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORYpermission onResources.PROCESS_DEFINITIONOR - The user has no
HistoricProcessInstancePermissions.READpermission onResources.HISTORIC_PROCESS_INSTANCE(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue)
- Specified by:
createHistoricActivityInstanceQueryin interfaceHistoryService
- The user has no
-
createHistoricActivityStatisticsQuery
public HistoricActivityStatisticsQuery createHistoricActivityStatisticsQuery(String processDefinitionId) Description copied from interface:HistoryServiceQuery 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_HISTORYpermission onResources.PROCESS_DEFINITION- Specified by:
createHistoricActivityStatisticsQueryin interfaceHistoryService
-
createHistoricCaseActivityStatisticsQuery
public HistoricCaseActivityStatisticsQuery createHistoricCaseActivityStatisticsQuery(String caseDefinitionId) Description copied from interface:HistoryServiceQuery for the number of historic case activity instances aggregated by case activities of a single case definition.- Specified by:
createHistoricCaseActivityStatisticsQueryin interfaceHistoryService
-
createHistoricTaskInstanceQuery
Description copied from interface:HistoryServiceCreates a new programmatic query to search for
HistoricTaskInstances.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORYpermission onResources.PROCESS_DEFINITIONOR - The user has no
HistoricProcessInstancePermissions.READpermission onResources.HISTORIC_PROCESS_INSTANCE(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue) OR - The user has no
HistoricTaskPermissions.READpermission onResources.HISTORIC_TASK(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue)
- Specified by:
createHistoricTaskInstanceQueryin interfaceHistoryService
- The user has no
-
createHistoricDetailQuery
Description copied from interface:HistoryServiceCreates a new programmatic query to search for
HistoricDetails.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORYpermission onResources.PROCESS_DEFINITIONOR - The user has no
HistoricTaskPermissions.READpermission onResources.HISTORIC_TASK(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue) OR - The user has no
HistoricProcessInstancePermissions.READpermission onResources.HISTORIC_PROCESS_INSTANCE(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue) OR - The user has no
ProcessDefinitionPermissions.READ_HISTORY_VARIABLEpermission onResources.PROCESS_DEFINITION(ProcessEngineConfiguration.enforceSpecificVariablePermissionmust be set totrue) OR - The user has no
HistoricTaskPermissions.READ_VARIABLEpermission onResources.HISTORIC_TASK(enforceSpecificVariablePermissionandenableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue)
- Specified by:
createHistoricDetailQueryin interfaceHistoryService
- The user has no
-
createUserOperationLogQuery
Description copied from interface:HistoryServiceCreates a new programmatic query to search for
UserOperationLogEntryinstances.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORYpermission onResources.PROCESS_DEFINITIONOR - The user has no
HistoricProcessInstancePermissions.READpermission onResources.HISTORIC_PROCESS_INSTANCE(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue) OR - The user has no
HistoricTaskPermissions.READpermission onResources.HISTORIC_TASK(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue)
- Specified by:
createUserOperationLogQueryin interfaceHistoryService
- The user has no
-
createHistoricVariableInstanceQuery
Description copied from interface:HistoryServiceCreates a new programmatic query to search for
HistoricVariableInstances.The result of the query is empty in the following cases:
- The user has no
Permissions.READ_HISTORYpermission onResources.PROCESS_DEFINITIONOR - The user has no
HistoricTaskPermissions.READpermission onResources.HISTORIC_TASK(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue) OR - The user has no
HistoricProcessInstancePermissions.READpermission onResources.HISTORIC_PROCESS_INSTANCE(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue) OR - The user has no
ProcessDefinitionPermissions.READ_HISTORY_VARIABLEpermission onResources.PROCESS_DEFINITION(ProcessEngineConfiguration.enforceSpecificVariablePermissionmust be set totrue) OR - The user has no
HistoricTaskPermissions.READ_VARIABLEpermission onResources.HISTORIC_TASK(enforceSpecificVariablePermissionandenableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue)
- Specified by:
createHistoricVariableInstanceQueryin interfaceHistoryService
- The user has no
-
createHistoricIncidentQuery
Description copied from interface:HistoryServiceCreates 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_HISTORYpermission onResources.PROCESS_DEFINITIONOR - The user has no
HistoricProcessInstancePermissions.READpermission onResources.HISTORIC_PROCESS_INSTANCE(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue)
- Specified by:
createHistoricIncidentQueryin interfaceHistoryService
- The user has no
-
createHistoricIdentityLinkLogQuery
Description copied from interface:HistoryServiceCreates 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_HISTORYpermission onResources.PROCESS_DEFINITIONOR - The user has no
HistoricTaskPermissions.READpermission onResources.HISTORIC_TASK(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue)
- Specified by:
createHistoricIdentityLinkLogQueryin interfaceHistoryService
- The user has no
-
createHistoricCaseInstanceQuery
Description copied from interface:HistoryServiceCreates a new programmatic query to search forHistoricCaseInstances.- Specified by:
createHistoricCaseInstanceQueryin interfaceHistoryService
-
createHistoricCaseActivityInstanceQuery
Description copied from interface:HistoryServiceCreates a new programmatic query to search forHistoricCaseActivityInstances.- Specified by:
createHistoricCaseActivityInstanceQueryin interfaceHistoryService
-
createHistoricDecisionInstanceQuery
Description copied from interface:HistoryServiceCreates a new programmatic query to search forHistoricDecisionInstances. If the user has noPermissions.READ_HISTORYpermission onResources.DECISION_DEFINITIONthen the result of the query is empty.- Specified by:
createHistoricDecisionInstanceQueryin interfaceHistoryService
-
deleteHistoricTaskInstance
Description copied from interface:HistoryServiceDeletes historic task instance. This might be useful for tasks that aredynamically createdand thencompleted. If the historic task instance doesn't exist, no exception is thrown and the method returns normal.- Specified by:
deleteHistoricTaskInstancein interfaceHistoryService
-
deleteHistoricProcessInstance
Description copied from interface:HistoryServiceDeletes historic process instance. All historic activities, historic task and historic details (variable updates, form properties) are deleted as well.- Specified by:
deleteHistoricProcessInstancein interfaceHistoryService
-
deleteHistoricProcessInstanceIfExists
Description copied from interface:HistoryServiceDeletes 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:
deleteHistoricProcessInstanceIfExistsin interfaceHistoryService
-
deleteHistoricProcessInstances
Description copied from interface:HistoryServiceDeletes historic process instances. All historic activities, historic task and historic details (variable updates, form properties) are deleted as well.- Specified by:
deleteHistoricProcessInstancesin interfaceHistoryService
-
deleteHistoricProcessInstancesIfExists
Description copied from interface:HistoryServiceDeletes 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:
deleteHistoricProcessInstancesIfExistsin interfaceHistoryService
-
deleteHistoricProcessInstancesBulk
Description copied from interface:HistoryServiceDeletes 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:
deleteHistoricProcessInstancesBulkin interfaceHistoryService- Parameters:
processInstanceIds- list of process instance ids for removal
-
cleanUpHistoryAsync
Description copied from interface:HistoryServiceSchedules 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:
cleanUpHistoryAsyncin 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:HistoryServiceSchedules 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:
cleanUpHistoryAsyncin 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:HistoryServiceFinds history cleanup job, if present.- Specified by:
findHistoryCleanupJobin interfaceHistoryService- Returns:
- history cleanup job entity
-
findHistoryCleanupJobs
Description copied from interface:HistoryServiceFinds history cleanup jobs if present.- Specified by:
findHistoryCleanupJobsin interfaceHistoryService- Returns:
- history cleanup job entities
-
deleteHistoricProcessInstancesAsync
public Batch deleteHistoricProcessInstancesAsync(List<String> processInstanceIds, String deleteReason) Description copied from interface:HistoryServiceDeletes historic process instances asynchronously. All historic activities, historic task and historic details (variable updates, form properties) are deleted as well.- Specified by:
deleteHistoricProcessInstancesAsyncin interfaceHistoryService
-
deleteHistoricProcessInstancesAsync
public Batch deleteHistoricProcessInstancesAsync(HistoricProcessInstanceQuery query, String deleteReason) Description copied from interface:HistoryServiceDeletes 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:
deleteHistoricProcessInstancesAsyncin interfaceHistoryService
-
deleteHistoricProcessInstancesAsync
public Batch deleteHistoricProcessInstancesAsync(List<String> processInstanceIds, HistoricProcessInstanceQuery query, String deleteReason) Description copied from interface:HistoryServiceDeletes 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:
deleteHistoricProcessInstancesAsyncin interfaceHistoryService
-
deleteUserOperationLogEntry
Description copied from interface:HistoryServiceDeletes a user operation log entry. Does not cascade to any related entities.- Specified by:
deleteUserOperationLogEntryin interfaceHistoryService
-
deleteHistoricCaseInstance
Description copied from interface:HistoryServiceDeletes historic case instance. All historic case activities, historic task and historic details are deleted as well.- Specified by:
deleteHistoricCaseInstancein interfaceHistoryService
-
deleteHistoricCaseInstancesBulk
Description copied from interface:HistoryServiceDeletes 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:
deleteHistoricCaseInstancesBulkin interfaceHistoryService- Parameters:
caseInstanceIds- list of case instance ids for removal
-
deleteHistoricDecisionInstance
Description copied from interface:HistoryServiceDeletes historic decision instances of a decision definition. All historic decision inputs and outputs are deleted as well.- Specified by:
deleteHistoricDecisionInstancein interfaceHistoryService- Parameters:
decisionDefinitionId- the id of the decision definition
-
deleteHistoricDecisionInstancesBulk
Description copied from interface:HistoryServiceDeletes 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:
deleteHistoricDecisionInstancesBulkin interfaceHistoryService- Parameters:
decisionInstanceIds- list of decision instance ids for removal.
-
deleteHistoricDecisionInstanceByDefinitionId
Description copied from interface:HistoryServiceDeletes historic decision instances of a decision definition. All historic decision inputs and outputs are deleted as well.- Specified by:
deleteHistoricDecisionInstanceByDefinitionIdin interfaceHistoryService- Parameters:
decisionDefinitionId- the id of the decision definition
-
deleteHistoricDecisionInstanceByInstanceId
Description copied from interface:HistoryServiceDeletes historic decision instances by its id. All historic decision inputs and outputs are deleted as well.- Specified by:
deleteHistoricDecisionInstanceByInstanceIdin interfaceHistoryService- Parameters:
historicDecisionInstanceId- the id of the historic decision instance
-
deleteHistoricDecisionInstancesAsync
public Batch deleteHistoricDecisionInstancesAsync(List<String> decisionInstanceIds, String deleteReason) Description copied from interface:HistoryServiceDeletes historic decision instances asynchronously based on a list of decision instances.- Specified by:
deleteHistoricDecisionInstancesAsyncin interfaceHistoryService
-
deleteHistoricDecisionInstancesAsync
public Batch deleteHistoricDecisionInstancesAsync(HistoricDecisionInstanceQuery query, String deleteReason) Description copied from interface:HistoryServiceDeletes historic decision instances asynchronously based on query of decision instances.- Specified by:
deleteHistoricDecisionInstancesAsyncin interfaceHistoryService
-
deleteHistoricDecisionInstancesAsync
public Batch deleteHistoricDecisionInstancesAsync(List<String> decisionInstanceIds, HistoricDecisionInstanceQuery query, String deleteReason) Description copied from interface:HistoryServiceDeletes 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:
deleteHistoricDecisionInstancesAsyncin interfaceHistoryService
-
deleteHistoricVariableInstance
Description copied from interface:HistoryServiceDeletes a historic variable instance by its id. All related historic details (variable updates, form properties) are deleted as well.- Specified by:
deleteHistoricVariableInstancein interfaceHistoryService- Parameters:
variableInstanceId- the id of the variable instance
-
deleteHistoricVariableInstancesByProcessInstanceId
Description copied from interface:HistoryServiceDeletes all historic variables and historic details (variable updates, form properties) of a process instance.- Specified by:
deleteHistoricVariableInstancesByProcessInstanceIdin interfaceHistoryService- Parameters:
processInstanceId- the id of the process instance
-
createNativeHistoricProcessInstanceQuery
Description copied from interface:HistoryServicecreates a native query to search forHistoricProcessInstances via SQL- Specified by:
createNativeHistoricProcessInstanceQueryin interfaceHistoryService
-
createNativeHistoricTaskInstanceQuery
Description copied from interface:HistoryServicecreates a native query to search forHistoricTaskInstances via SQL- Specified by:
createNativeHistoricTaskInstanceQueryin interfaceHistoryService
-
createNativeHistoricActivityInstanceQuery
Description copied from interface:HistoryServicecreates a native query to search forHistoricActivityInstances via SQL- Specified by:
createNativeHistoricActivityInstanceQueryin interfaceHistoryService
-
createNativeHistoricCaseInstanceQuery
Description copied from interface:HistoryServicecreates a native query to search forHistoricCaseInstances via SQL- Specified by:
createNativeHistoricCaseInstanceQueryin interfaceHistoryService
-
createNativeHistoricCaseActivityInstanceQuery
Description copied from interface:HistoryServicecreates a native query to search forHistoricCaseActivityInstances via SQL- Specified by:
createNativeHistoricCaseActivityInstanceQueryin interfaceHistoryService
-
createNativeHistoricDecisionInstanceQuery
Description copied from interface:HistoryServicecreates a native query to search forHistoricDecisionInstances via SQL- Specified by:
createNativeHistoricDecisionInstanceQueryin interfaceHistoryService
-
createNativeHistoricVariableInstanceQuery
Description copied from interface:HistoryServicecreates a native query to search forHistoricVariableInstances via SQL- Specified by:
createNativeHistoricVariableInstanceQueryin interfaceHistoryService
-
createHistoricJobLogQuery
Description copied from interface:HistoryServiceCreates 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_HISTORYpermission onResources.PROCESS_DEFINITIONOR - The user has no
HistoricProcessInstancePermissions.READpermission onResources.HISTORIC_PROCESS_INSTANCE(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue)
- Specified by:
createHistoricJobLogQueryin interfaceHistoryService
- The user has no
-
getHistoricJobLogExceptionStacktrace
Description copied from interface:HistoryServiceReturns 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:
getHistoricJobLogExceptionStacktracein interfaceHistoryService- Parameters:
historicJobLogId- id of the historic job log, cannot be null.
-
createHistoricProcessInstanceReport
Description copied from interface:HistoryServiceCreates a new programmatic query to create a historic process instance report.- Specified by:
createHistoricProcessInstanceReportin interfaceHistoryService
-
createHistoricTaskInstanceReport
Description copied from interface:HistoryServiceCreates a new programmatic query to create a historic task instance report.
Subsequent builder methods throw
AuthorizationExceptionwhen the user has noPermissions.READ_HISTORYpermission on anyResources.PROCESS_DEFINITION.- Specified by:
createHistoricTaskInstanceReportin interfaceHistoryService
-
createCleanableHistoricProcessInstanceReport
Description copied from interface:HistoryServiceCreates a new programmatic query to create a cleanable historic process instance report.- Specified by:
createCleanableHistoricProcessInstanceReportin interfaceHistoryService
-
createCleanableHistoricDecisionInstanceReport
Description copied from interface:HistoryServiceCreates a new programmatic query to create a cleanable historic decision instance report.- Specified by:
createCleanableHistoricDecisionInstanceReportin interfaceHistoryService
-
createCleanableHistoricCaseInstanceReport
Description copied from interface:HistoryServiceCreates a new programmatic query to create a cleanable historic case instance report.- Specified by:
createCleanableHistoricCaseInstanceReportin interfaceHistoryService
-
createCleanableHistoricBatchReport
Description copied from interface:HistoryServiceCreates a new programmatic query to create a cleanable historic batch report.- Specified by:
createCleanableHistoricBatchReportin interfaceHistoryService
-
createHistoricBatchQuery
Description copied from interface:HistoryServiceCreates a query to search forHistoricBatchinstances.- Specified by:
createHistoricBatchQueryin interfaceHistoryService
-
deleteHistoricBatch
Description copied from interface:HistoryServiceDeletes a historic batch instance. All corresponding historic job logs are deleted as well;- Specified by:
deleteHistoricBatchin interfaceHistoryService
-
createHistoricDecisionInstanceStatisticsQuery
public HistoricDecisionInstanceStatisticsQuery createHistoricDecisionInstanceStatisticsQuery(String decisionRequirementsDefinitionId) Description copied from interface:HistoryServiceQuery for the statistics of DRD evaluation.- Specified by:
createHistoricDecisionInstanceStatisticsQueryin interfaceHistoryService- Parameters:
decisionRequirementsDefinitionId- - id of decision requirement definition
-
createHistoricExternalTaskLogQuery
Description copied from interface:HistoryServiceCreates 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_HISTORYpermission onResources.PROCESS_DEFINITIONOR - The user has no
HistoricProcessInstancePermissions.READpermission onResources.HISTORIC_PROCESS_INSTANCE(enableHistoricInstancePermissionsinProcessEngineConfigurationImplmust be set totrue)
- Specified by:
createHistoricExternalTaskLogQueryin interfaceHistoryService
- The user has no
-
getHistoricExternalTaskLogErrorDetails
Description copied from interface:HistoryServiceReturns 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:
getHistoricExternalTaskLogErrorDetailsin interfaceHistoryService- Parameters:
historicExternalTaskLogId- id of the historic external task log, cannot be null.
-
setRemovalTimeToHistoricProcessInstances
public SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder setRemovalTimeToHistoricProcessInstances()Description copied from interface:HistoryServiceSet 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). Passnullto 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:
setRemovalTimeToHistoricProcessInstancesin interfaceHistoryService
-
setRemovalTimeToHistoricDecisionInstances
public SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder setRemovalTimeToHistoricDecisionInstances()Description copied from interface:HistoryServiceSet 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). Passnullto 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:
setRemovalTimeToHistoricDecisionInstancesin interfaceHistoryService
-
setRemovalTimeToHistoricBatches
Description copied from interface:HistoryServiceSet 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). Passnullto 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:
setRemovalTimeToHistoricBatchesin interfaceHistoryService
-
setAnnotationForOperationLogById
Description copied from interface:HistoryServiceSet an annotation to user operation log entries.
- Specified by:
setAnnotationForOperationLogByIdin 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:HistoryServiceClear the annotation for user operation log entries.
- Specified by:
clearAnnotationForOperationLogByIdin interfaceHistoryService- Parameters:
operationId- of the user operation log entries that are updated
-