public void fireHistoricEndEvent() { Context.getCommandContext() .getHistoricBatchManager() .completeHistoricBatch(this); }
protected HistoricBatchEntity getHistoricBatchById(String batchId) { return Context.getCommandContext() .getHistoricBatchManager() .findHistoricBatchById(batchId); }
@Override public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricBatchManager() .findBatchCountByQueryCriteria(this); }
protected HistoricBatchEntity getHistoricBatchById(String batchId) { return Context.getCommandContext() .getHistoricBatchManager() .findHistoricBatchById(batchId); }
@Override public List<HistoricBatch> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricBatchManager() .findBatchesByQueryCriteria(this, page); } }
public void fireHistoricStartEvent() { Context.getCommandContext() .getHistoricBatchManager() .createHistoricBatch(this); }
public void fireHistoricEndEvent() { Context.getCommandContext() .getHistoricBatchManager() .completeHistoricBatch(this); }
protected HistoricBatchEntity getHistoricBatchByJobId(String jobId) { return Context.getCommandContext() .getHistoricBatchManager() .findHistoricBatchByJobId(jobId); }
protected HistoricBatchEntity getHistoricBatchByJobId(String jobId) { return Context.getCommandContext() .getHistoricBatchManager() .findHistoricBatchByJobId(jobId); }
public void fireHistoricStartEvent() { Context.getCommandContext() .getHistoricBatchManager() .createHistoricBatch(this); }
@Override public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricBatchManager() .findBatchCountByQueryCriteria(this); }
public Object execute(CommandContext commandContext) { EnsureUtil.ensureNotNull(BadUserRequestException.class, "Historic batch id must not be null", "historic batch id", batchId); HistoricBatchEntity historicBatch = commandContext.getHistoricBatchManager().findHistoricBatchById(batchId); EnsureUtil.ensureNotNull(BadUserRequestException.class, "Historic batch for id '" + batchId + "' cannot be found", "historic batch", historicBatch); checkAccess(commandContext, historicBatch); historicBatch.delete(); return null; }
public Object execute(CommandContext commandContext) { EnsureUtil.ensureNotNull(BadUserRequestException.class, "Historic batch id must not be null", "historic batch id", batchId); HistoricBatchEntity historicBatch = commandContext.getHistoricBatchManager().findHistoricBatchById(batchId); EnsureUtil.ensureNotNull(BadUserRequestException.class, "Historic batch for id '" + batchId + "' cannot be found", "historic batch", historicBatch); checkAccess(commandContext, historicBatch); historicBatch.delete(); return null; }
@Override public List<CleanableHistoricBatchReportResult> executeList(CommandContext commandContext, Page page) { provideHistoryCleanupStrategy(commandContext); checkQueryOk(); checkPermissions(commandContext); Map<String, Integer> batchOperationsForHistoryCleanup = commandContext.getProcessEngineConfiguration().getParsedBatchOperationsForHistoryCleanup(); return commandContext.getHistoricBatchManager().findCleanableHistoricBatchesReportByCriteria(this, page, batchOperationsForHistoryCleanup); }
@Override public List<CleanableHistoricBatchReportResult> executeList(CommandContext commandContext, Page page) { provideHistoryCleanupStrategy(commandContext); checkQueryOk(); checkPermissions(commandContext); Map<String, Integer> batchOperationsForHistoryCleanup = commandContext.getProcessEngineConfiguration().getParsedBatchOperationsForHistoryCleanup(); return commandContext.getHistoricBatchManager().findCleanableHistoricBatchesReportByCriteria(this, page, batchOperationsForHistoryCleanup); }
protected DbOperation performBatchCleanup() { return Context .getCommandContext() .getHistoricBatchManager() .deleteHistoricBatchesByRemovalTime(ClockUtil.getCurrentTime(), configuration.getMinuteFrom(), configuration.getMinuteTo(), getBatchSize()); }
@Override public long executeCount(CommandContext commandContext) { provideHistoryCleanupStrategy(commandContext); checkQueryOk(); checkPermissions(commandContext); Map<String, Integer> batchOperationsForHistoryCleanup = commandContext.getProcessEngineConfiguration().getParsedBatchOperationsForHistoryCleanup(); return commandContext.getHistoricBatchManager().findCleanableHistoricBatchesReportCountByCriteria(this, batchOperationsForHistoryCleanup); }
@Override public long executeCount(CommandContext commandContext) { provideHistoryCleanupStrategy(commandContext); checkQueryOk(); checkPermissions(commandContext); Map<String, Integer> batchOperationsForHistoryCleanup = commandContext.getProcessEngineConfiguration().getParsedBatchOperationsForHistoryCleanup(); return commandContext.getHistoricBatchManager().findCleanableHistoricBatchesReportCountByCriteria(this, batchOperationsForHistoryCleanup); }
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); }