public Object execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(jobId); return null; } });
public Void execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogsByProcessDefinitionId(processDefinitionId); return null; }
public List<HistoricJobLog> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricJobLogManager() .findHistoricJobLogsByQueryCriteria(this, page); }
public void deleteHistoricJobLogsByHandlerType(String handlerType) { if (isHistoryEnabled()) { deleteExceptionByteArrayByParameterMap("handlerType", handlerType); getDbEntityManager().delete(HistoricJobLogEventEntity.class, "deleteHistoricJobLogByHandlerType", handlerType); } }
@SuppressWarnings("unchecked") public List<HistoricJobLog> findHistoricJobLogsByQueryCriteria(HistoricJobLogQueryImpl query, Page page) { configureQuery(query); return getDbEntityManager().selectList("selectHistoricJobLogByQueryCriteria", query, page); }
public void deleteHistoricJobLogsByProcessInstanceIds(List<String> processInstanceIds) { deleteExceptionByteArrayByParameterMap("processInstanceIdIn", processInstanceIds.toArray()); getDbEntityManager().deletePreserveOrder(HistoricJobLogEventEntity.class, "deleteHistoricJobLogByProcessInstanceIds", processInstanceIds); }
public Void execute(CommandContext commandContext) { commandContext.getHistoricActivityInstanceManager() .deleteHistoricActivityInstancesByProcessInstanceIds(Collections.singletonList(processInstanceId)); commandContext.getHistoricTaskInstanceManager() .deleteHistoricTaskInstancesByProcessInstanceIds(Collections.singletonList(processInstanceId), true); List<HistoricJobLog> historicJobLogs = commandContext.getHistoricJobLogManager() .findHistoricJobLogsByQueryCriteria(new HistoricJobLogQueryImpl(), new Page(0, 100)); for (HistoricJobLog historicJobLog : historicJobLogs) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(historicJobLog.getJobId()); } return null; } });
public Void execute(CommandContext commandContext) { List<Job> jobs = processEngineConfiguration .getManagementService() .createJobQuery() .list(); for (Job job : jobs) { new DeleteJobCmd(job.getId()).execute(commandContext); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(job.getId()); } List<HistoricIncident> historicIncidents = processEngineConfiguration .getHistoryService() .createHistoricIncidentQuery() .list(); for (HistoricIncident historicIncident : historicIncidents) { commandContext .getDbEntityManager() .delete((DbEntity) historicIncident); } List<HistoricJobLog> historicJobLogs = processEngineConfiguration .getHistoryService() .createHistoricJobLogQuery() .list(); for (HistoricJobLog historicJobLog : historicJobLogs) { commandContext .getHistoricJobLogManager() .deleteHistoricJobLogById(historicJobLog.getId()); } return null; } });
public void delete() { HistoricIncidentManager historicIncidentManager = Context.getCommandContext().getHistoricIncidentManager(); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(seedJobDefinitionId); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(monitorJobDefinitionId); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(batchJobDefinitionId); HistoricJobLogManager historicJobLogManager = Context.getCommandContext().getHistoricJobLogManager(); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(seedJobDefinitionId); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(monitorJobDefinitionId); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(batchJobDefinitionId); Context.getCommandContext().getHistoricBatchManager().delete(this); }
protected void addRemovalTimeToHistoricJobLog(HistoricBatchEntity historicBatch) { Date removalTime = historicBatch.getRemovalTime(); if (removalTime != null) { Context.getCommandContext() .getHistoricJobLogManager() .addRemovalTimeToJobLogByBatchId(historicBatch.getId(), removalTime); } }
public void deleteHistoricBatchesByIds(List<String> historicBatchIds) { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricIncidentManager().deleteHistoricIncidentsByBatchId(historicBatchIds); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByBatchIds(historicBatchIds); getDbEntityManager().deletePreserveOrder(HistoricBatchEntity.class, "deleteHistoricBatchByIds", historicBatchIds); }
.addRemovalTimeToJobLogByRootProcessInstanceId(rootProcessInstanceId, removalTime);
getHistoricJobLogManager().deleteHistoricJobLogsByDeploymentId(deploymentId);
public void deleteHistoricJobLogById(String id) { if (isHistoryEnabled()) { deleteExceptionByteArrayByParameterMap("id", id); getDbEntityManager().delete(HistoricJobLogEventEntity.class, "deleteHistoricJobLogById", id); } }
public long findHistoricJobLogsCountByQueryCriteria(HistoricJobLogQueryImpl query) { configureQuery(query); return (Long) getDbEntityManager().selectOne("selectHistoricJobLogCountByQueryCriteria", query); }
public Void execute(CommandContext commandContext) { commandContext.getHistoricActivityInstanceManager() .deleteHistoricActivityInstancesByProcessInstanceIds(Collections.singletonList(processInstanceId)); commandContext.getHistoricTaskInstanceManager() .deleteHistoricTaskInstancesByProcessInstanceIds(Collections.singletonList(processInstanceId), true); List<HistoricJobLog> historicJobLogs = commandContext.getHistoricJobLogManager() .findHistoricJobLogsByQueryCriteria(new HistoricJobLogQueryImpl(), new Page(0, 100)); for (HistoricJobLog historicJobLog : historicJobLogs) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(historicJobLog.getJobId()); } return null; } });
public void deleteHistoricJobLogsByProcessInstanceIds(List<String> processInstanceIds) { deleteExceptionByteArrayByParameterMap("processInstanceIdIn", processInstanceIds.toArray()); getDbEntityManager().deletePreserveOrder(HistoricJobLogEventEntity.class, "deleteHistoricJobLogByProcessInstanceIds", processInstanceIds); }
public void delete() { HistoricIncidentManager historicIncidentManager = Context.getCommandContext().getHistoricIncidentManager(); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(seedJobDefinitionId); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(monitorJobDefinitionId); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(batchJobDefinitionId); HistoricJobLogManager historicJobLogManager = Context.getCommandContext().getHistoricJobLogManager(); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(seedJobDefinitionId); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(monitorJobDefinitionId); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(batchJobDefinitionId); Context.getCommandContext().getHistoricBatchManager().delete(this); }
protected void addRemovalTimeToHistoricJobLog(HistoricBatchEntity historicBatch) { Date removalTime = historicBatch.getRemovalTime(); if (removalTime != null) { Context.getCommandContext() .getHistoricJobLogManager() .addRemovalTimeToJobLogByBatchId(historicBatch.getId(), removalTime); } }
public void deleteHistoricBatchesByIds(List<String> historicBatchIds) { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricIncidentManager().deleteHistoricIncidentsByBatchId(historicBatchIds); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByBatchIds(historicBatchIds); getDbEntityManager().deletePreserveOrder(HistoricBatchEntity.class, "deleteHistoricBatchByIds", historicBatchIds); }