public List<HistoricJobLog> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricJobLogManager() .findHistoricJobLogsByQueryCriteria(this, page); }
public List<HistoricJobLog> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricJobLogManager() .findHistoricJobLogsByQueryCriteria(this, page); }
public Object execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(jobId); return null; } });
public Object execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogsByHandlerType(TimerActivateProcessDefinitionHandler.TYPE); return null; } });
public Object execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogsByHandlerType(TimerSuspendProcessDefinitionHandler.TYPE); return null; } });
public Void execute(CommandContext commandContext) { for (String jobId : jobIds) { commandContext.getHistoricJobLogManager() .deleteHistoricJobLogByJobId(jobId); } return null; } });
public Object execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogsByHandlerType(TimerSuspendJobDefinitionHandler.TYPE); return null; } });
public Object execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogsByHandlerType(TimerActivateProcessDefinitionHandler.TYPE); commandContext.getHistoricJobLogManager().deleteHistoricJobLogsByHandlerType(TimerSuspendProcessDefinitionHandler.TYPE); return null; } });
protected void postExecute(CommandContext commandContext) { LOG.debugJobExecuted(this); delete(true); commandContext.getHistoricJobLogManager().fireJobSuccessfulEvent(this); }
protected void addRemovalTimeToHistoricJobLog(HistoricBatchEntity historicBatch) { Date removalTime = historicBatch.getRemovalTime(); if (removalTime != null) { Context.getCommandContext() .getHistoricJobLogManager() .addRemovalTimeToJobLogByBatchId(historicBatch.getId(), removalTime); } }
public String execute(CommandContext commandContext) { ensureNotNull("historicJobLogId", historicJobLogId); HistoricJobLogEventEntity job = commandContext .getHistoricJobLogManager() .findHistoricJobLogById(historicJobLogId); ensureNotNull("No historic job log found with id " + historicJobLogId, "historicJobLog", job); for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checker.checkReadHistoricJobLog(job); } return job.getExceptionStacktrace(); }
public Void execute(CommandContext commandContext) { List<Job> jobs = processEngine.getManagementService().createJobQuery().list(); if (jobs.size() > 0) { String jobId = jobs.get(0).getId(); commandContext.getJobManager().deleteJob((JobEntity) jobs.get(0)); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(jobId); } return null; } });
public Void execute(CommandContext commandContext) { List<Job> jobs = engineRule.getManagementService().createJobQuery().list(); if (jobs.size() > 0) { assertEquals(1, jobs.size()); String jobId = jobs.get(0).getId(); commandContext.getJobManager().deleteJob((JobEntity) jobs.get(0)); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(jobId); } return null; } });
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 = engineRule.getManagementService().createJobQuery().list(); if (jobs.size() > 0) { assertEquals(1, jobs.size()); String jobId = jobs.get(0).getId(); commandContext.getJobManager().deleteJob((JobEntity) jobs.get(0)); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(jobId); } commandContext.getMeterLogManager().deleteAll(); return null; } });
public Void execute(CommandContext commandContext) { 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); }
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 Void execute(CommandContext commandContext) { List<Job> jobs = commandContext.getDbEntityManager().createJobQuery().list(); for (Job job : jobs) { commandContext.getJobManager().deleteJob((JobEntity) job, false); } for (HistoricJobLog jobLog : commandContext.getDbEntityManager().createHistoricJobLogQuery().list()) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogById(jobLog.getId()); } return null; }