public interface HistoryService
Modifier and Type | Method and Description |
---|---|
Job |
cleanUpHistoryAsync()
Schedules history cleanup job at batch window start time.
|
Job |
cleanUpHistoryAsync(boolean immediatelyDue)
Schedules history cleanup job at batch window start time.
|
void |
clearAnnotationForOperationLogById(String operationId)
Clear the annotation for user operation log entries.
|
CleanableHistoricBatchReport |
createCleanableHistoricBatchReport()
Creates a new programmatic query to create a cleanable historic batch report.
|
CleanableHistoricCaseInstanceReport |
createCleanableHistoricCaseInstanceReport()
Creates a new programmatic query to create a cleanable historic case instance report.
|
CleanableHistoricDecisionInstanceReport |
createCleanableHistoricDecisionInstanceReport()
Creates a new programmatic query to create a cleanable historic decision instance report.
|
CleanableHistoricProcessInstanceReport |
createCleanableHistoricProcessInstanceReport()
Creates a new programmatic query to create a cleanable historic process instance report.
|
HistoricActivityInstanceQuery |
createHistoricActivityInstanceQuery()
Creates a new programmatic query to search for
HistoricActivityInstance s. |
HistoricActivityStatisticsQuery |
createHistoricActivityStatisticsQuery(String processDefinitionId)
Query for the number of historic activity instances aggregated by activities of a single
process definition.
|
HistoricBatchQuery |
createHistoricBatchQuery()
Creates a query to search for
HistoricBatch instances. |
HistoricCaseActivityInstanceQuery |
createHistoricCaseActivityInstanceQuery()
Creates a new programmatic query to search for
HistoricCaseActivityInstance s. |
HistoricCaseActivityStatisticsQuery |
createHistoricCaseActivityStatisticsQuery(String caseDefinitionId)
Query for the number of historic case activity instances aggregated by case activities of a single case definition.
|
HistoricCaseInstanceQuery |
createHistoricCaseInstanceQuery()
Creates a new programmatic query to search for
HistoricCaseInstance s. |
HistoricDecisionInstanceQuery |
createHistoricDecisionInstanceQuery()
Creates a new programmatic query to search for
HistoricDecisionInstance s. |
HistoricDecisionInstanceStatisticsQuery |
createHistoricDecisionInstanceStatisticsQuery(String decisionRequirementsDefinitionId)
Query for the statistics of DRD evaluation.
|
HistoricDetailQuery |
createHistoricDetailQuery()
Creates a new programmatic query to search for
HistoricDetail s. |
HistoricExternalTaskLogQuery |
createHistoricExternalTaskLogQuery()
Creates a new programmatic query to search for
historic external task logs . |
HistoricIdentityLinkLogQuery |
createHistoricIdentityLinkLogQuery()
Creates a new programmatic query to search for
historic identity links . |
HistoricIncidentQuery |
createHistoricIncidentQuery()
Creates a new programmatic query to search for
historic incidents . |
HistoricJobLogQuery |
createHistoricJobLogQuery()
Creates a new programmatic query to search for
historic job logs . |
HistoricProcessInstanceQuery |
createHistoricProcessInstanceQuery()
Creates a new programmatic query to search for
HistoricProcessInstance s. |
HistoricProcessInstanceReport |
createHistoricProcessInstanceReport()
Creates a new programmatic query to create a historic process instance report.
|
HistoricTaskInstanceQuery |
createHistoricTaskInstanceQuery()
Creates a new programmatic query to search for
HistoricTaskInstance s. |
HistoricTaskInstanceReport |
createHistoricTaskInstanceReport()
Creates a new programmatic query to create a historic task instance report.
|
HistoricVariableInstanceQuery |
createHistoricVariableInstanceQuery()
Creates a new programmatic query to search for
HistoricVariableInstance s. |
NativeHistoricActivityInstanceQuery |
createNativeHistoricActivityInstanceQuery()
creates a native query to search for
HistoricActivityInstance s via SQL |
NativeHistoricCaseActivityInstanceQuery |
createNativeHistoricCaseActivityInstanceQuery()
creates a native query to search for
HistoricCaseActivityInstance s via SQL |
NativeHistoricCaseInstanceQuery |
createNativeHistoricCaseInstanceQuery()
creates a native query to search for
HistoricCaseInstance s via SQL |
NativeHistoricDecisionInstanceQuery |
createNativeHistoricDecisionInstanceQuery()
creates a native query to search for
HistoricDecisionInstance s via SQL |
NativeHistoricProcessInstanceQuery |
createNativeHistoricProcessInstanceQuery()
creates a native query to search for
HistoricProcessInstance s via SQL |
NativeHistoricTaskInstanceQuery |
createNativeHistoricTaskInstanceQuery()
creates a native query to search for
HistoricTaskInstance s via SQL |
NativeHistoricVariableInstanceQuery |
createNativeHistoricVariableInstanceQuery()
creates a native query to search for
HistoricVariableInstance s via SQL |
UserOperationLogQuery |
createUserOperationLogQuery()
Creates a new programmatic query to search for
UserOperationLogEntry instances. |
void |
deleteHistoricBatch(String id)
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)
Deprecated.
Note that this method name is not expressive enough, because it is also possible to delete the historic
decision instance by the instance id. Therefore use
deleteHistoricDecisionInstanceByDefinitionId(java.lang.String) instead
to delete the historic decision instance by the definition id. |
void |
deleteHistoricDecisionInstanceByDefinitionId(String decisionDefinitionId)
Deletes historic decision instances of a decision definition.
|
void |
deleteHistoricDecisionInstanceByInstanceId(String historicDecisionInstanceId)
Deletes historic decision instances by its id.
|
Batch |
deleteHistoricDecisionInstancesAsync(HistoricDecisionInstanceQuery query,
String deleteReason)
Deletes historic decision instances asynchronously based on query of decision instances.
|
Batch |
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.
|
Batch |
deleteHistoricDecisionInstancesAsync(List<String> decisionInstanceIds,
String deleteReason)
Deletes historic decision instances asynchronously based on a list 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.
|
Batch |
deleteHistoricProcessInstancesAsync(HistoricProcessInstanceQuery query,
String deleteReason)
Deletes historic process instances asynchronously based on query.
|
Batch |
deleteHistoricProcessInstancesAsync(List<String> processInstanceIds,
HistoricProcessInstanceQuery query,
String deleteReason)
Deletes historic process instances asynchronously based on query and a list of process instances.
|
Batch |
deleteHistoricProcessInstancesAsync(List<String> processInstanceIds,
String deleteReason)
Deletes historic process instances asynchronously.
|
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.
|
Job |
findHistoryCleanupJob()
Deprecated.
As of v. 7.9.0, because there can be more than one history cleanup job at once, use
findHistoryCleanupJobs() instead. |
List<Job> |
findHistoryCleanupJobs()
Finds history cleanup job if present.
|
String |
getHistoricExternalTaskLogErrorDetails(String historicExternalTaskLogId)
Returns the full error details that occurs when the
historic external task log with the given id was last executed.
|
String |
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.
|
SetRemovalTimeSelectModeForHistoricBatchesBuilder |
setRemovalTimeToHistoricBatches()
Set a removal time to historic batches and all
associated historic entities using a fluent builder.
|
SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder |
setRemovalTimeToHistoricDecisionInstances()
Set a removal time to historic decision instances and
all associated historic entities using a fluent builder.
|
SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder |
setRemovalTimeToHistoricProcessInstances()
Set a removal time to historic process instances and
all associated historic entities using a fluent builder.
|
HistoricProcessInstanceQuery createHistoricProcessInstanceQuery()
Creates a new programmatic query to search for HistoricProcessInstance
s.
The result of the query is empty in the following cases:
Permissions.READ_HISTORY
permission on
Resources.PROCESS_DEFINITION
OR
HistoricProcessInstancePermissions.READ
permission on
Resources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
)HistoricActivityInstanceQuery createHistoricActivityInstanceQuery()
Creates a new programmatic query to search for HistoricActivityInstance
s.
The result of the query is empty in the following cases:
Permissions.READ_HISTORY
permission on
Resources.PROCESS_DEFINITION
OR
HistoricProcessInstancePermissions.READ
permission on
Resources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
)HistoricActivityStatisticsQuery createHistoricActivityStatisticsQuery(String processDefinitionId)
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 on Resources.PROCESS_DEFINITION
HistoricCaseActivityStatisticsQuery createHistoricCaseActivityStatisticsQuery(String caseDefinitionId)
HistoricTaskInstanceQuery createHistoricTaskInstanceQuery()
Creates a new programmatic query to search for HistoricTaskInstance
s.
The result of the query is empty in the following cases:
Permissions.READ_HISTORY
permission on
Resources.PROCESS_DEFINITION
OR
HistoricProcessInstancePermissions.READ
permission on
Resources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
) OR
HistoricTaskPermissions.READ
permission on
Resources.HISTORIC_TASK
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
)HistoricDetailQuery createHistoricDetailQuery()
Creates a new programmatic query to search for HistoricDetail
s.
The result of the query is empty in the following cases:
Permissions.READ_HISTORY
permission on
Resources.PROCESS_DEFINITION
OR
HistoricTaskPermissions.READ
permission on
Resources.HISTORIC_TASK
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
) OR
HistoricProcessInstancePermissions.READ
permission on
Resources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
) OR
ProcessDefinitionPermissions.READ_HISTORY_VARIABLE
permission on
Resources.PROCESS_DEFINITION
(ProcessEngineConfiguration.enforceSpecificVariablePermission
must be set to
true
) OR
HistoricTaskPermissions.READ_VARIABLE
permission on
Resources.HISTORIC_TASK
(enforceSpecificVariablePermission
and
enableHistoricInstancePermissions
in ProcessEngineConfigurationImpl
must be set to true
)HistoricVariableInstanceQuery createHistoricVariableInstanceQuery()
Creates a new programmatic query to search for HistoricVariableInstance
s.
The result of the query is empty in the following cases:
Permissions.READ_HISTORY
permission on
Resources.PROCESS_DEFINITION
OR
HistoricTaskPermissions.READ
permission on
Resources.HISTORIC_TASK
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
) OR
HistoricProcessInstancePermissions.READ
permission on
Resources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
) OR
ProcessDefinitionPermissions.READ_HISTORY_VARIABLE
permission on
Resources.PROCESS_DEFINITION
(ProcessEngineConfiguration.enforceSpecificVariablePermission
must be set to
true
) OR
HistoricTaskPermissions.READ_VARIABLE
permission on
Resources.HISTORIC_TASK
(enforceSpecificVariablePermission
and
enableHistoricInstancePermissions
in ProcessEngineConfigurationImpl
must be set to true
)UserOperationLogQuery createUserOperationLogQuery()
Creates a new programmatic query to search for UserOperationLogEntry
instances.
The result of the query is empty in the following cases:
Permissions.READ_HISTORY
permission on
Resources.PROCESS_DEFINITION
OR
HistoricProcessInstancePermissions.READ
permission on
Resources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
) OR
HistoricTaskPermissions.READ
permission on
Resources.HISTORIC_TASK
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
)HistoricIncidentQuery createHistoricIncidentQuery()
Creates a new programmatic query to search for historic incidents
.
The result of the query is empty in the following cases:
Permissions.READ_HISTORY
permission on
Resources.PROCESS_DEFINITION
OR
HistoricProcessInstancePermissions.READ
permission on
Resources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
)HistoricIdentityLinkLogQuery createHistoricIdentityLinkLogQuery()
Creates a new programmatic query to search for
historic identity links
.
The result of the query is empty in the following cases:
Permissions.READ_HISTORY
permission on
Resources.PROCESS_DEFINITION
OR
HistoricTaskPermissions.READ
permission on
Resources.HISTORIC_TASK
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
)HistoricCaseInstanceQuery createHistoricCaseInstanceQuery()
HistoricCaseInstance
s.HistoricCaseActivityInstanceQuery createHistoricCaseActivityInstanceQuery()
HistoricCaseActivityInstance
s.HistoricDecisionInstanceQuery createHistoricDecisionInstanceQuery()
HistoricDecisionInstance
s.
If the user has no Permissions.READ_HISTORY
permission on Resources.DECISION_DEFINITION
then the result of the query is empty.void deleteHistoricTaskInstance(String taskId)
dynamically created
and then completed
.
If the historic task instance doesn't exist, no exception is thrown and the
method returns normal.AuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.PROCESS_DEFINITION
.void deleteHistoricProcessInstance(String processInstanceId)
AuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.PROCESS_DEFINITION
.void deleteHistoricProcessInstanceIfExists(String processInstanceId)
AuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.PROCESS_DEFINITION
.void deleteHistoricProcessInstances(List<String> processInstanceIds)
BadUserRequestException
- when no process instances are found with the given ids or ids are null.AuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.PROCESS_DEFINITION
.void deleteHistoricProcessInstancesIfExists(List<String> processInstanceIds)
AuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.PROCESS_DEFINITION
.void deleteHistoricProcessInstancesBulk(List<String> processInstanceIds)
processInstanceIds
- list of process instance ids for removalBadUserRequestException
- when no process instances are found with the given ids or ids are null or when some of the process instances are not finished yetAuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.PROCESS_DEFINITION
.Job cleanUpHistoryAsync()
ResourceDefinition.getHistoryTimeToLive()
,
DecisionDefinition#getHistoryTimeToLive()
, CaseDefinition#getHistoryTimeToLive()
, ProcessEngineConfigurationImpl.getBatchOperationHistoryTimeToLive()
and ProcessEngineConfigurationImpl.getBatchOperationsForHistoryCleanup()
values.findHistoryCleanupJobs()
instead.AuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.PROCESS_DEFINITION
Job cleanUpHistoryAsync(boolean immediatelyDue)
ResourceDefinition.getHistoryTimeToLive()
,
DecisionDefinition#getHistoryTimeToLive()
, CaseDefinition#getHistoryTimeToLive()
, ProcessEngineConfigurationImpl.getBatchOperationHistoryTimeToLive()
and ProcessEngineConfigurationImpl.getBatchOperationsForHistoryCleanup()
values.immediatelyDue
- must be true if cleanup must be scheduled at once, otherwise is will be scheduled according to configured batch windowAuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.PROCESS_DEFINITION
@Deprecated Job findHistoryCleanupJob()
findHistoryCleanupJobs()
instead.List<Job> findHistoryCleanupJobs()
Batch deleteHistoricProcessInstancesAsync(List<String> processInstanceIds, String deleteReason)
BadUserRequestException
- when no process instances is found with the given ids or ids are null.AuthorizationException
- If the user has no Permissions.CREATE
or
BatchPermissions.CREATE_BATCH_DELETE_FINISHED_PROCESS_INSTANCES
permission on Resources.BATCH
.Batch deleteHistoricProcessInstancesAsync(HistoricProcessInstanceQuery query, String deleteReason)
BadUserRequestException
- when no process instances is found with the given ids or ids are null.AuthorizationException
- If the user has no Permissions.CREATE
or
BatchPermissions.CREATE_BATCH_DELETE_FINISHED_PROCESS_INSTANCES
permission on Resources.BATCH
.Batch deleteHistoricProcessInstancesAsync(List<String> processInstanceIds, HistoricProcessInstanceQuery query, String deleteReason)
BadUserRequestException
- when no process instances is found with the given ids or ids are null.AuthorizationException
- If the user has no Permissions.CREATE
or
BatchPermissions.CREATE_BATCH_DELETE_FINISHED_PROCESS_INSTANCES
permission on Resources.BATCH
.void deleteUserOperationLogEntry(String entryId)
AuthorizationException
- For entries related to process definition keys: If the user has
neither Permissions.DELETE_HISTORY
permission on
Resources.PROCESS_DEFINITION
nor
UserOperationLogCategoryPermissions.DELETE
permission on
Resources.OPERATION_LOG_CATEGORY
. For entries not related
to process definition keys: If the user has no
UserOperationLogCategoryPermissions.DELETE
permission on
Resources.OPERATION_LOG_CATEGORY
.void deleteHistoricCaseInstance(String caseInstanceId)
void deleteHistoricCaseInstancesBulk(List<String> caseInstanceIds)
caseInstanceIds
- list of case instance ids for removal@Deprecated void deleteHistoricDecisionInstance(String decisionDefinitionId)
deleteHistoricDecisionInstanceByDefinitionId(java.lang.String)
instead
to delete the historic decision instance by the definition id.decisionDefinitionId
- the id of the decision definitionAuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.DECISION_DEFINITION
.void deleteHistoricDecisionInstancesBulk(List<String> decisionInstanceIds)
decisionInstanceIds
- list of decision instance ids for removal.AuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.DECISION_DEFINITION
.void deleteHistoricDecisionInstanceByDefinitionId(String decisionDefinitionId)
decisionDefinitionId
- the id of the decision definitionAuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.DECISION_DEFINITION
.void deleteHistoricDecisionInstanceByInstanceId(String historicDecisionInstanceId)
historicDecisionInstanceId
- the id of the historic decision instanceAuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.DECISION_DEFINITION
.Batch deleteHistoricDecisionInstancesAsync(List<String> decisionInstanceIds, String deleteReason)
BadUserRequestException
- when no decision instances are found with the given ids or ids are null.AuthorizationException
- If the user has no Permissions.CREATE
or
BatchPermissions.CREATE_BATCH_DELETE_DECISION_INSTANCES
permission on Resources.BATCH
.Batch deleteHistoricDecisionInstancesAsync(HistoricDecisionInstanceQuery query, String deleteReason)
BadUserRequestException
- when no decision instances are found with the given ids or ids are null.AuthorizationException
- If the user has no Permissions.CREATE
or
BatchPermissions.CREATE_BATCH_DELETE_DECISION_INSTANCES
permission on Resources.BATCH
.Batch deleteHistoricDecisionInstancesAsync(List<String> decisionInstanceIds, HistoricDecisionInstanceQuery query, String deleteReason)
BadUserRequestException
- when no decision instances are found with the given ids or ids are null.AuthorizationException
- If the user has no Permissions.CREATE
or
BatchPermissions.CREATE_BATCH_DELETE_DECISION_INSTANCES
permission on Resources.BATCH
.void deleteHistoricVariableInstance(String variableInstanceId)
variableInstanceId
- the id of the variable instanceBadUserRequestException
- when the historic variable instance is not found by the given id
or if id is nullAuthorizationException
- If the variable instance has a process definition key and
the user has no Permissions.DELETE_HISTORY
permission on
Resources.PROCESS_DEFINITION
.void deleteHistoricVariableInstancesByProcessInstanceId(String processInstanceId)
processInstanceId
- the id of the process instanceAuthorizationException
- If the user has no Permissions.DELETE_HISTORY
permission on Resources.PROCESS_DEFINITION
.NativeHistoricProcessInstanceQuery createNativeHistoricProcessInstanceQuery()
HistoricProcessInstance
s via SQLNativeHistoricTaskInstanceQuery createNativeHistoricTaskInstanceQuery()
HistoricTaskInstance
s via SQLNativeHistoricActivityInstanceQuery createNativeHistoricActivityInstanceQuery()
HistoricActivityInstance
s via SQLNativeHistoricCaseInstanceQuery createNativeHistoricCaseInstanceQuery()
HistoricCaseInstance
s via SQLNativeHistoricCaseActivityInstanceQuery createNativeHistoricCaseActivityInstanceQuery()
HistoricCaseActivityInstance
s via SQLNativeHistoricDecisionInstanceQuery createNativeHistoricDecisionInstanceQuery()
HistoricDecisionInstance
s via SQLNativeHistoricVariableInstanceQuery createNativeHistoricVariableInstanceQuery()
HistoricVariableInstance
s via SQLHistoricJobLogQuery createHistoricJobLogQuery()
Creates a new programmatic query to search for historic job logs
.
The result of the query is empty in the following cases:
Permissions.READ_HISTORY
permission on
Resources.PROCESS_DEFINITION
OR
HistoricProcessInstancePermissions.READ
permission on
Resources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
)String getHistoricJobLogExceptionStacktrace(String historicJobLogId)
historicJobLogId
- id of the historic job log, cannot be null.ProcessEngineException
- when no historic job log exists with the given id.AuthorizationException
- If the user has no Permissions.READ_HISTORY
permission on Resources.PROCESS_DEFINITION
.HistoricProcessInstanceReport createHistoricProcessInstanceReport()
HistoricTaskInstanceReport createHistoricTaskInstanceReport()
Creates a new programmatic query to create a historic task instance report.
Subsequent builder methods throw AuthorizationException
when the user has no
Permissions.READ_HISTORY
permission on any Resources.PROCESS_DEFINITION
.
CleanableHistoricProcessInstanceReport createCleanableHistoricProcessInstanceReport()
CleanableHistoricDecisionInstanceReport createCleanableHistoricDecisionInstanceReport()
CleanableHistoricCaseInstanceReport createCleanableHistoricCaseInstanceReport()
CleanableHistoricBatchReport createCleanableHistoricBatchReport()
HistoricBatchQuery createHistoricBatchQuery()
HistoricBatch
instances.void deleteHistoricBatch(String id)
AuthorizationException
- If the user has no Permissions.DELETE
permission on Resources.BATCH
HistoricDecisionInstanceStatisticsQuery createHistoricDecisionInstanceStatisticsQuery(String decisionRequirementsDefinitionId)
decisionRequirementsDefinitionId
- - id of decision requirement definitionHistoricExternalTaskLogQuery createHistoricExternalTaskLogQuery()
Creates a new programmatic query to search for
historic external task logs
.
The result of the query is empty in the following cases:
Permissions.READ_HISTORY
permission on
Resources.PROCESS_DEFINITION
OR
HistoricProcessInstancePermissions.READ
permission on
Resources.HISTORIC_PROCESS_INSTANCE
(enableHistoricInstancePermissions
in
ProcessEngineConfigurationImpl
must be set to true
)String getHistoricExternalTaskLogErrorDetails(String historicExternalTaskLogId)
historicExternalTaskLogId
- id of the historic external task log, cannot be null.ProcessEngineException
- when no historic external task log exists with the given id.AuthorizationException
- If the user has no Permissions.READ_HISTORY
permission on Resources.PROCESS_DEFINITION
.SetRemovalTimeSelectModeForHistoricProcessInstancesBuilder setRemovalTimeToHistoricProcessInstances()
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)
.
Pass null
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()
.
SetRemovalTimeSelectModeForHistoricDecisionInstancesBuilder setRemovalTimeToHistoricDecisionInstances()
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)
.
Pass null
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()
.
SetRemovalTimeSelectModeForHistoricBatchesBuilder setRemovalTimeToHistoricBatches()
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)
.
Pass null
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()
.
void setAnnotationForOperationLogById(String operationId, String annotation)
Set an annotation to user operation log entries.
operationId
- of the user operation log entries that are updatedannotation
- that is set to the user operation log entriesNotValidException
- when operation id is null
BadUserRequestException
- when no user operation could be foundAuthorizationException
- ProcessDefinitionPermissions.UPDATE_HISTORY
permission
is granted on Resources.PROCESS_DEFINITION
UserOperationLogCategoryPermissions.UPDATE
permission
is granted on Resources.OPERATION_LOG_CATEGORY
void clearAnnotationForOperationLogById(String operationId)
Clear the annotation for user operation log entries.
operationId
- of the user operation log entries that are updatedNotValidException
- when operation id is null
BadUserRequestException
- when no user operation could be foundAuthorizationException
- ProcessDefinitionPermissions.UPDATE_HISTORY
permission
is granted on Resources.PROCESS_DEFINITION
UserOperationLogCategoryPermissions.UPDATE
permission
is granted on Resources.OPERATION_LOG_CATEGORY
Copyright © 2021. All rights reserved.