public List<HistoricIncident> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricIncidentManager() .findHistoricIncidentByQueryCriteria(this, page); }
public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricIncidentManager() .findHistoricIncidentCountByQueryCriteria(this); }
public List<HistoricIncident> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricIncidentManager() .findHistoricIncidentByQueryCriteria(this, page); }
public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricIncidentManager() .findHistoricIncidentCountByQueryCriteria(this); }
public Object execute(CommandContext commandContext) { commandContext.getHistoricIncidentManager().delete((HistoricIncidentEntity) historicIncident); return null; } });
public Void execute(CommandContext commandContext) { commandContext.getHistoricIncidentManager() .deleteHistoricIncidentsByProcessInstanceIds(Collections.singletonList(processInstanceId)); return null; } });
protected void addRemovalTimeToHistoricIncidents(HistoricBatchEntity historicBatch) { Date removalTime = historicBatch.getRemovalTime(); if (removalTime != null) { Context.getCommandContext() .getHistoricIncidentManager() .addRemovalTimeToHistoricIncidentsByBatchId(historicBatch.getId(), removalTime); } }
protected void addRemovalTimeToHistoricIncidents(HistoricBatchEntity historicBatch) { Date removalTime = historicBatch.getRemovalTime(); if (removalTime != null) { Context.getCommandContext() .getHistoricIncidentManager() .addRemovalTimeToHistoricIncidentsByBatchId(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); }
public void deleteHistoricBatchesByIds(List<String> historicBatchIds) { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricIncidentManager().deleteHistoricIncidentsByBatchId(historicBatchIds); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByBatchIds(historicBatchIds); getDbEntityManager().deletePreserveOrder(HistoricBatchEntity.class, "deleteHistoricBatchByIds", historicBatchIds); }
@Override public Void execute(CommandContext commandContext) { ((JobEntity) job).delete(); HistoricIncidentManager historicIncidentManager = commandContext.getHistoricIncidentManager(); for (HistoricIncident incident : incidents) { HistoricIncidentEntity incidentEntity = (HistoricIncidentEntity) incident; historicIncidentManager.delete(incidentEntity); } commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(job.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); }
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); }
public Object execute(CommandContext commandContext) { HistoryLevel historyLevel = Context.getProcessEngineConfiguration().getHistoryLevel(); if (historyLevel.equals(HistoryLevel.HISTORY_LEVEL_FULL)) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogsByHandlerType(TimerSuspendProcessDefinitionHandler.TYPE); List<HistoricIncident> incidents = Context.getProcessEngineConfiguration().getHistoryService().createHistoricIncidentQuery().list(); for (HistoricIncident incident : incidents) { commandContext.getHistoricIncidentManager().delete((HistoricIncidentEntity) incident); } } return null; } });
public Object execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogsByHandlerType(TimerSuspendProcessDefinitionHandler.TYPE); List<HistoricIncident> incidents = Context.getProcessEngineConfiguration().getHistoryService().createHistoricIncidentQuery().list(); for (HistoricIncident incident : incidents) { commandContext.getHistoricIncidentManager().delete((HistoricIncidentEntity) incident); } return null; } });
public Object execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogsByHandlerType(TimerSuspendProcessDefinitionHandler.TYPE); List<HistoricIncident> incidents = Context.getProcessEngineConfiguration().getHistoryService().createHistoricIncidentQuery().list(); for (HistoricIncident incident : incidents) { commandContext.getHistoricIncidentManager().delete((HistoricIncidentEntity) incident); } return null; } });
public void deleteHistoricProcessInstanceByIds(List<String> processInstanceIds) { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricDetailManager().deleteHistoricDetailsByProcessInstanceIds(processInstanceIds); commandContext.getHistoricVariableInstanceManager().deleteHistoricVariableInstanceByProcessInstanceIds(processInstanceIds); commandContext.getCommentManager().deleteCommentsByProcessInstanceIds(processInstanceIds); commandContext.getAttachmentManager().deleteAttachmentsByProcessInstanceIds(processInstanceIds); commandContext.getHistoricTaskInstanceManager().deleteHistoricTaskInstancesByProcessInstanceIds(processInstanceIds, false); commandContext.getHistoricActivityInstanceManager().deleteHistoricActivityInstancesByProcessInstanceIds(processInstanceIds); commandContext.getHistoricIncidentManager().deleteHistoricIncidentsByProcessInstanceIds(processInstanceIds); commandContext.getHistoricJobLogManager().deleteHistoricJobLogsByProcessInstanceIds(processInstanceIds); commandContext.getHistoricExternalTaskLogManager().deleteHistoricExternalTaskLogsByProcessInstanceIds(processInstanceIds); commandContext.getDbEntityManager().deletePreserveOrder(HistoricProcessInstanceEntity.class, "deleteHistoricProcessInstances", processInstanceIds); }
public void deleteHistoricProcessInstanceByIds(List<String> processInstanceIds) { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricDetailManager().deleteHistoricDetailsByProcessInstanceIds(processInstanceIds); commandContext.getHistoricVariableInstanceManager().deleteHistoricVariableInstanceByProcessInstanceIds(processInstanceIds); commandContext.getCommentManager().deleteCommentsByProcessInstanceIds(processInstanceIds); commandContext.getAttachmentManager().deleteAttachmentsByProcessInstanceIds(processInstanceIds); commandContext.getHistoricTaskInstanceManager().deleteHistoricTaskInstancesByProcessInstanceIds(processInstanceIds, false); commandContext.getHistoricActivityInstanceManager().deleteHistoricActivityInstancesByProcessInstanceIds(processInstanceIds); commandContext.getHistoricIncidentManager().deleteHistoricIncidentsByProcessInstanceIds(processInstanceIds); commandContext.getHistoricJobLogManager().deleteHistoricJobLogsByProcessInstanceIds(processInstanceIds); commandContext.getHistoricExternalTaskLogManager().deleteHistoricExternalTaskLogsByProcessInstanceIds(processInstanceIds); commandContext.getDbEntityManager().deletePreserveOrder(HistoricProcessInstanceEntity.class, "deleteHistoricProcessInstances", processInstanceIds); }
public void delete(boolean cascadeToHistory) { CommandContext commandContext = Context.getCommandContext(); deleteSeedJob(); deleteMonitorJob(); getBatchJobHandler().deleteJobs(this); JobDefinitionManager jobDefinitionManager = commandContext.getJobDefinitionManager(); jobDefinitionManager.delete(getSeedJobDefinition()); jobDefinitionManager.delete(getMonitorJobDefinition()); jobDefinitionManager.delete(getBatchJobDefinition()); commandContext.getBatchManager().delete(this); configuration.deleteByteArrayValue(); fireHistoricEndEvent(); if (cascadeToHistory) { HistoricIncidentManager historicIncidentManager = commandContext.getHistoricIncidentManager(); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(seedJobDefinitionId); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(monitorJobDefinitionId); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(batchJobDefinitionId); HistoricJobLogManager historicJobLogManager = commandContext.getHistoricJobLogManager(); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(seedJobDefinitionId); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(monitorJobDefinitionId); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(batchJobDefinitionId); commandContext.getHistoricBatchManager().deleteHistoricBatchById(id); } }
public void delete(boolean cascadeToHistory) { CommandContext commandContext = Context.getCommandContext(); deleteSeedJob(); deleteMonitorJob(); getBatchJobHandler().deleteJobs(this); JobDefinitionManager jobDefinitionManager = commandContext.getJobDefinitionManager(); jobDefinitionManager.delete(getSeedJobDefinition()); jobDefinitionManager.delete(getMonitorJobDefinition()); jobDefinitionManager.delete(getBatchJobDefinition()); commandContext.getBatchManager().delete(this); configuration.deleteByteArrayValue(); fireHistoricEndEvent(); if (cascadeToHistory) { HistoricIncidentManager historicIncidentManager = commandContext.getHistoricIncidentManager(); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(seedJobDefinitionId); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(monitorJobDefinitionId); historicIncidentManager.deleteHistoricIncidentsByJobDefinitionId(batchJobDefinitionId); HistoricJobLogManager historicJobLogManager = commandContext.getHistoricJobLogManager(); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(seedJobDefinitionId); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(monitorJobDefinitionId); historicJobLogManager.deleteHistoricJobLogsByJobDefinitionId(batchJobDefinitionId); commandContext.getHistoricBatchManager().deleteHistoricBatchById(id); } }