We want to keep the processInstance history and also variables history for our finished processInstances, but we’d like to delete tasks and activities history.
So far I’ve found just historyService.deleteHistoricTaskInstance(task.getId()), which works fine, but I can’t find an equivalent method for removing activities history…
Could you please tell me how can I delete Activity History for a given processInstanceId by using your API?
Thanks in advance.
PS: I’ve successfully used historyService.deleteHistoricProcessInstance(processInstanceId), which deletes everything, but as I said I need to keep activity and variables history.