protected void cascadeDeleteHistoryForProcessDefinition ( String processDefinitionId ) { // remove historic incidents which are not referenced to a process instance getHistoricIncidentManager ( ) . deleteHistoricIncidentsByProcessDefinitionId ( processDefinitionId ) ; // remove historic identity links which are not reference to a process instance getHistoricIdentityLinkManager ( ) . deleteHistoricIdentityLinksLogByProcessDefinitionId ( processDefinitionId ) ; // remove historic job log entries not related to a process instance getHistoricJobLogManager ( ) . deleteHistoricJobLogsByProcessDefinitionId ( processDefinitionId ) ; }
Cascades the deletion of a process definition to the history deletes the history .