Class HistoryServiceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.ServiceImpl
-
- org.camunda.bpm.engine.impl.HistoryServiceImpl
-
- All Implemented Interfaces:
HistoryService
public class HistoryServiceImpl extends ServiceImpl implements 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 Constructor Description HistoryServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobcleanUpHistoryAsync()Schedules history cleanup job at batch window start time.JobcleanUpHistoryAsync(boolean immediatelyDue)Schedules history cleanup job at batch window start time.voidclearAnnotationForOperationLogById(java.lang.String operationId)Clear the annotation for user operation log entries.CleanableHistoricBatchReportcreateCleanableHistoricBatchReport()Creates a new programmatic query to create a cleanable historic batch report.CleanableHistoricCaseInstanceReportcreateCleanableHistoricCaseInstanceReport()Creates a new programmatic query to create a cleanable historic case instance report.CleanableHistoricDecisionInstanceReportcreateCleanableHistoricDecisionInstanceReport()Creates a new programmatic query to create a cleanable historic decision instance report.CleanableHistoricProcessInstanceReportcreateCleanableHistoricProcessInstanceReport()Creates a new programmatic query to create a cleanable historic process instance report.HistoricActivityInstanceQuerycreateHistoricActivityInstanceQuery()Creates a new programmatic query to search forHistoricActivityInstances.HistoricActivityStatisticsQuerycreateHistoricActivityStatisticsQuery(java.lang.String processDefinitionId)Query for the number of historic activity instances aggregated by activities of a single process definition.HistoricBatchQuerycreateHistoricBatchQuery()Creates a query to search forHistoricBatchinstances.HistoricCaseActivityInstanceQuerycreateHistoricCaseActivityInstanceQuery()Creates a new programmatic query to search forHistoricCaseActivityInstances.HistoricCaseActivityStatisticsQuerycreateHistoricCaseActivityStatisticsQuery(java.lang.String caseDefinitionId)Query for the number of historic case activity instances aggregated by case activities of a single case definition.HistoricCaseInstanceQuerycreateHistoricCaseInstanceQuery()Creates a new programmatic query to search forHistoricCaseInstances.HistoricDecisionInstanceQuerycreateHistoricDecisionInstanceQuery()Creates a new programmatic query to search forHistoricDecisionInstances.HistoricDecisionInstanceStatisticsQuerycreateHistoricDecisionInstanceStatisticsQuery(java.lang.String decisionRequirementsDefinitionId)Query for the statistics of DRD evaluation.HistoricDetailQuerycreateHistoricDetailQuery()Creates a new programmatic query to search forHistoricDetails.HistoricExternalTaskLogQuerycreateHistoricExternalTaskLogQuery()Creates a new programmatic query to search forhistoric external task logs.HistoricIdentityLinkLogQueryImplcreateHistoricIdentityLinkLogQuery()Creates a new programmatic query to search forhistoric identity links.HistoricIncidentQuerycreateHistoricIncidentQuery()Creates a new programmatic query to search forhistoric incidents.HistoricJobLogQuerycreateHistoricJobLogQuery()Creates a new programmatic query to search forhistoric job logs.HistoricProcessInstanceQuerycreateHistoricProcessInstanceQuery()Creates a new programmatic query to search forHistoricProcessInstances.HistoricProcessInstanceReportcreateHistoricProcessInstanceReport()Creates a new programmatic query to create a historic process instance report.HistoricTaskInstanceQuerycreateHistoricTaskInstanceQuery()Creates a new programmatic query to search forHistoricTaskInstances.HistoricTaskInstanceReportcreateHistoricTaskInstanceReport()Creates a new programmatic query to create a historic task instance report.HistoricVariableInstanceQuerycreateHistoricVariableInstanceQuery()Creates a new programmatic query to search forHistoricVariableInstances.NativeHistoricActivityInstanceQuerycreateNativeHistoricActivityInstanceQuery()creates a native query to search forHistoricActivityInstances via SQLNativeHistoricCaseActivityInstanceQuerycreateNativeHistoricCaseActivityInstanceQuery()creates a native query to search forHistoricCaseActivityInstances via SQLNativeHistoricCaseInstanceQuerycreateNativeHistoricCaseInstanceQuery()creates a native query to search forHistoricCaseInstances via SQLNativeHistoricDecisionInstanceQuerycreateNativeHistoricDecisionInstanceQuery()creates a native query to search forHistoricDecisionInstances via SQLNativeHistoricProcessInstanceQuerycreateNativeHistoricProcessInstanceQuery()creates a native query to search forHistoricProcessInstances via SQLNativeHistoricTaskInstanceQuerycreateNativeHistoricTaskInstanceQuery()creates a native query to search forHistoricTaskInstances via SQLNativeHistoricVariableInstanceQuerycreateNativeHistoricVariableInstanceQuery()creates a native query to search forHistoricVariableInstances via SQLUserOperationLogQuerycreateUserOperationLogQuery()Creates a new programmatic query to search forUserOperationLogEntryinstances.voiddeleteHistoricBatch(java.lang.String batchId)Deletes a historic batch instance.voiddeleteHistoricCaseInstance(java.lang.String caseInstanceId)Deletes historic case instance.voiddeleteHistoricCaseInstancesBulk(java.util.List<java.lang.String> caseInstanceIds)Deletes historic case instances and all related historic data in bulk manner.voiddeleteHistoricDecisionInstance(java.lang.String decisionDefinitionId)Deletes historic decision instances of a decision definition.voiddeleteHistoricDecisionInstanceByDefinitionId(java.lang.String decisionDefinitionId)Deletes historic decision instances of a decision definition.voiddeleteHistoricDecisionInstanceByInstanceId(java.lang.String historicDecisionInstanceId)Deletes historic decision instances by its id.BatchdeleteHistoricDecisionInstancesAsync(java.util.List<java.lang.String> decisionInstanceIds, java.lang.String deleteReason)Deletes historic decision instances asynchronously based on a list of decision instances.BatchdeleteHistoricDecisionInstancesAsync(java.util.List<java.lang.String> decisionInstanceIds, HistoricDecisionInstanceQuery query, java.lang.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.BatchdeleteHistoricDecisionInstancesAsync(HistoricDecisionInstanceQuery query, java.lang.String deleteReason)Deletes historic decision instances asynchronously based on query of decision instances.voiddeleteHistoricDecisionInstancesBulk(java.util.List<java.lang.String> decisionInstanceIds)Deletes decision instances and all related historic data in bulk manner.voiddeleteHistoricProcessInstance(java.lang.String processInstanceId)Deletes historic process instance.voiddeleteHistoricProcessInstanceIfExists(java.lang.String processInstanceId)Deletes historic process instance.voiddeleteHistoricProcessInstances(java.util.List<java.lang.String> processInstanceIds)Deletes historic process instances.BatchdeleteHistoricProcessInstancesAsync(java.util.List<java.lang.String> processInstanceIds, java.lang.String deleteReason)Deletes historic process instances asynchronously.BatchdeleteHistoricProcessInstancesAsync(java.util.List<java.lang.String> processInstanceIds, HistoricProcessInstanceQuery query, java.lang.String deleteReason)Deletes historic process instances asynchronously based on query and a list of process instances.BatchdeleteHistoricProcessInstancesAsync(HistoricProcessInstanceQuery query, java.lang.String deleteReason)Deletes historic process instances asynchronously based on query.voiddeleteHistoricProcessInstancesBulk(java.util.List<java.lang.String> processInstanceIds)Deletes historic process instances and all related historic data in bulk manner.voiddeleteHistoricProcessInstancesIfExists(java.util.List<java.lang.String> processInstanceIds)Deletes historic process instances.voiddeleteHistoricTaskInstance(java.lang.String taskId)Deletes historic task instance.voiddeleteHistoricVariableInstance(java.lang.String variableInstanceId)Deletes a historic variable instance by its id.voiddeleteHistoricVariableInstancesByProcessInstanceId(java.lang.String processInstanceId)Deletes all historic variables and historic details (variable updates, form properties) of a process instance.voiddeleteUserOperationLogEntry(java.lang.String entryId)Deletes a user operation log entry.JobfindHistoryCleanupJob()Finds history cleanup job, if present.java.util.List<Job>findHistoryCleanupJobs()Finds history cleanup jobs if present.java.lang.StringgetHistoricExternalTaskLogErrorDetails(java.lang.String historicExternalTaskLogId)Returns the full error details that occurs when the historic external task log with the given id was last executed.java.lang.StringgetHistoricJobLogExceptionStacktrace(java.lang.String historicJobLogId)Returns the full stacktrace of the exception that occurs when the historic job log with the given id was last executed.voidsetAnnotationForOperationLogById(java.lang.String operationId, java.lang.String annotation)Set an annotation to user operation log entries.SetRemovalTimeSelectModeForHistoricBatchesBuildersetRemovalTimeToHistoricBatches()Set a removal time to historic batches and all associated historic entities using a fluent builder.SetRemovalTimeSelectModeForHistoricDecisionInstancesBuildersetRemovalTimeToHistoricDecisionInstances()Set a removal time to historic decision instances and all associated historic entities using a fluent builder.SetRemovalTimeSelectModeForHistoricProcessInstancesBuildersetRemovalTimeToHistoricProcessInstances()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
-
-
-
-
Method Detail
-
createHistoricProcessInstanceQuery
public HistoricProcessInstanceQuery 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
public HistoricActivityInstanceQuery 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(java.lang.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(java.lang.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
public HistoricTaskInstanceQuery 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
public HistoricDetailQuery 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
public UserOperationLogQuery 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
public HistoricVariableInstanceQuery 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
public HistoricIncidentQuery 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
public HistoricIdentityLinkLogQueryImpl 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
public HistoricCaseInstanceQuery createHistoricCaseInstanceQuery()
Description copied from interface:HistoryServiceCreates a new programmatic query to search forHistoricCaseInstances.- Specified by:
createHistoricCaseInstanceQueryin interfaceHistoryService
-
createHistoricCaseActivityInstanceQuery
public HistoricCaseActivityInstanceQuery createHistoricCaseActivityInstanceQuery()
Description copied from interface:HistoryServiceCreates a new programmatic query to search forHistoricCaseActivityInstances.- Specified by:
createHistoricCaseActivityInstanceQueryin interfaceHistoryService
-
createHistoricDecisionInstanceQuery
public HistoricDecisionInstanceQuery 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
public void deleteHistoricTaskInstance(java.lang.String taskId)
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
public void deleteHistoricProcessInstance(java.lang.String processInstanceId)
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
public void deleteHistoricProcessInstanceIfExists(java.lang.String processInstanceId)
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
public void deleteHistoricProcessInstances(java.util.List<java.lang.String> processInstanceIds)
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
public void deleteHistoricProcessInstancesIfExists(java.util.List<java.lang.String> processInstanceIds)
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
public void deleteHistoricProcessInstancesBulk(java.util.List<java.lang.String> processInstanceIds)
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
public Job 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
public Job cleanUpHistoryAsync(boolean immediatelyDue)
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
public Job findHistoryCleanupJob()
Description copied from interface:HistoryServiceFinds history cleanup job, if present.- Specified by:
findHistoryCleanupJobin interfaceHistoryService- Returns:
- history cleanup job entity
-
findHistoryCleanupJobs
public java.util.List<Job> findHistoryCleanupJobs()
Description copied from interface:HistoryServiceFinds history cleanup jobs if present.- Specified by:
findHistoryCleanupJobsin interfaceHistoryService- Returns:
- history cleanup job entities
-
deleteHistoricProcessInstancesAsync
public Batch deleteHistoricProcessInstancesAsync(java.util.List<java.lang.String> processInstanceIds, java.lang.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, java.lang.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(java.util.List<java.lang.String> processInstanceIds, HistoricProcessInstanceQuery query, java.lang.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
public void deleteUserOperationLogEntry(java.lang.String entryId)
Description copied from interface:HistoryServiceDeletes a user operation log entry. Does not cascade to any related entities.- Specified by:
deleteUserOperationLogEntryin interfaceHistoryService
-
deleteHistoricCaseInstance
public void deleteHistoricCaseInstance(java.lang.String caseInstanceId)
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
public void deleteHistoricCaseInstancesBulk(java.util.List<java.lang.String> caseInstanceIds)
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
public void deleteHistoricDecisionInstance(java.lang.String decisionDefinitionId)
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
public void deleteHistoricDecisionInstancesBulk(java.util.List<java.lang.String> decisionInstanceIds)
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
public void deleteHistoricDecisionInstanceByDefinitionId(java.lang.String decisionDefinitionId)
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
public void deleteHistoricDecisionInstanceByInstanceId(java.lang.String historicDecisionInstanceId)
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(java.util.List<java.lang.String> decisionInstanceIds, java.lang.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, java.lang.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(java.util.List<java.lang.String> decisionInstanceIds, HistoricDecisionInstanceQuery query, java.lang.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
public void deleteHistoricVariableInstance(java.lang.String variableInstanceId)
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
public void deleteHistoricVariableInstancesByProcessInstanceId(java.lang.String processInstanceId)
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
public NativeHistoricProcessInstanceQuery createNativeHistoricProcessInstanceQuery()
Description copied from interface:HistoryServicecreates a native query to search forHistoricProcessInstances via SQL- Specified by:
createNativeHistoricProcessInstanceQueryin interfaceHistoryService
-
createNativeHistoricTaskInstanceQuery
public NativeHistoricTaskInstanceQuery createNativeHistoricTaskInstanceQuery()
Description copied from interface:HistoryServicecreates a native query to search forHistoricTaskInstances via SQL- Specified by:
createNativeHistoricTaskInstanceQueryin interfaceHistoryService
-
createNativeHistoricActivityInstanceQuery
public NativeHistoricActivityInstanceQuery createNativeHistoricActivityInstanceQuery()
Description copied from interface:HistoryServicecreates a native query to search forHistoricActivityInstances via SQL- Specified by:
createNativeHistoricActivityInstanceQueryin interfaceHistoryService
-
createNativeHistoricCaseInstanceQuery
public NativeHistoricCaseInstanceQuery createNativeHistoricCaseInstanceQuery()
Description copied from interface:HistoryServicecreates a native query to search forHistoricCaseInstances via SQL- Specified by:
createNativeHistoricCaseInstanceQueryin interfaceHistoryService
-
createNativeHistoricCaseActivityInstanceQuery
public NativeHistoricCaseActivityInstanceQuery createNativeHistoricCaseActivityInstanceQuery()
Description copied from interface:HistoryServicecreates a native query to search forHistoricCaseActivityInstances via SQL- Specified by:
createNativeHistoricCaseActivityInstanceQueryin interfaceHistoryService
-
createNativeHistoricDecisionInstanceQuery
public NativeHistoricDecisionInstanceQuery createNativeHistoricDecisionInstanceQuery()
Description copied from interface:HistoryServicecreates a native query to search forHistoricDecisionInstances via SQL- Specified by:
createNativeHistoricDecisionInstanceQueryin interfaceHistoryService
-
createNativeHistoricVariableInstanceQuery
public NativeHistoricVariableInstanceQuery createNativeHistoricVariableInstanceQuery()
Description copied from interface:HistoryServicecreates a native query to search forHistoricVariableInstances via SQL- Specified by:
createNativeHistoricVariableInstanceQueryin interfaceHistoryService
-
createHistoricJobLogQuery
public HistoricJobLogQuery 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
public java.lang.String getHistoricJobLogExceptionStacktrace(java.lang.String historicJobLogId)
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
public HistoricProcessInstanceReport createHistoricProcessInstanceReport()
Description copied from interface:HistoryServiceCreates a new programmatic query to create a historic process instance report.- Specified by:
createHistoricProcessInstanceReportin interfaceHistoryService
-
createHistoricTaskInstanceReport
public HistoricTaskInstanceReport 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
public CleanableHistoricProcessInstanceReport createCleanableHistoricProcessInstanceReport()
Description copied from interface:HistoryServiceCreates a new programmatic query to create a cleanable historic process instance report.- Specified by:
createCleanableHistoricProcessInstanceReportin interfaceHistoryService
-
createCleanableHistoricDecisionInstanceReport
public CleanableHistoricDecisionInstanceReport createCleanableHistoricDecisionInstanceReport()
Description copied from interface:HistoryServiceCreates a new programmatic query to create a cleanable historic decision instance report.- Specified by:
createCleanableHistoricDecisionInstanceReportin interfaceHistoryService
-
createCleanableHistoricCaseInstanceReport
public CleanableHistoricCaseInstanceReport createCleanableHistoricCaseInstanceReport()
Description copied from interface:HistoryServiceCreates a new programmatic query to create a cleanable historic case instance report.- Specified by:
createCleanableHistoricCaseInstanceReportin interfaceHistoryService
-
createCleanableHistoricBatchReport
public CleanableHistoricBatchReport createCleanableHistoricBatchReport()
Description copied from interface:HistoryServiceCreates a new programmatic query to create a cleanable historic batch report.- Specified by:
createCleanableHistoricBatchReportin interfaceHistoryService
-
createHistoricBatchQuery
public HistoricBatchQuery createHistoricBatchQuery()
Description copied from interface:HistoryServiceCreates a query to search forHistoricBatchinstances.- Specified by:
createHistoricBatchQueryin interfaceHistoryService
-
deleteHistoricBatch
public void deleteHistoricBatch(java.lang.String batchId)
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(java.lang.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
public HistoricExternalTaskLogQuery 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
public java.lang.String getHistoricExternalTaskLogErrorDetails(java.lang.String historicExternalTaskLogId)
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
public SetRemovalTimeSelectModeForHistoricBatchesBuilder 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
public void setAnnotationForOperationLogById(java.lang.String operationId, java.lang.String annotation)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
public void clearAnnotationForOperationLogById(java.lang.String operationId)
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
-
-