public Object execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(jobId); return null; } });
public Void execute(CommandContext commandContext) { for (String jobId : jobIds) { commandContext.getHistoricJobLogManager() .deleteHistoricJobLogByJobId(jobId); } return null; } });
public Object execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(jobId); return null; } });
public Object execute(CommandContext commandContext) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(jobId); return null; } });
public Void execute(CommandContext commandContext) { List<Job> jobs = processEngine.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) { List<Job> jobs = otherProcessEngine.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) { List<Job> jobs = managementService.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) { List<Job> jobs = managementService.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) { 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) { 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) { commandContext.getJobManager().deleteJob((JobEntity) job); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(job.getId()); 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<Job> jobs = managementService.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); } List<HistoricIncident> historicIncidents = historyService.createHistoricIncidentQuery().list(); for (HistoricIncident historicIncident : historicIncidents) { commandContext.getDbEntityManager().delete((HistoricIncidentEntity) historicIncident); } commandContext.getMeterLogManager().deleteAll(); return null; } });
@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 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 = historyService.findHistoryCleanupJobs(); for (Job job: jobs) { commandContext.getJobManager().deleteJob((JobEntity) job); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(job.getId()); } //cleanup "detached" historic job logs final List<HistoricJobLog> list = historyService.createHistoricJobLogQuery().list(); for (HistoricJobLog jobLog: list) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(jobLog.getJobId()); } commandContext.getMeterLogManager().deleteAll(); return null; } });
public Void execute(CommandContext commandContext) { List<Job> jobs = historyService.findHistoryCleanupJobs(); for (Job job: jobs) { commandContext.getJobManager().deleteJob((JobEntity) job); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(job.getId()); } //cleanup "detached" historic job logs final List<HistoricJobLog> list = historyService.createHistoricJobLogQuery().list(); for (HistoricJobLog jobLog: list) { commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(jobLog.getJobId()); } List<HistoricIncident> historicIncidents = historyService.createHistoricIncidentQuery().list(); for (HistoricIncident historicIncident : historicIncidents) { commandContext.getDbEntityManager().delete((HistoricIncidentEntity) historicIncident); } commandContext.getMeterLogManager().deleteAll(); return null; } });
public Void execute(CommandContext commandContext) { timerEntity.delete(); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(timerEntity.getId()); List<HistoricIncident> historicIncidents = Context .getProcessEngineConfiguration() .getHistoryService() .createHistoricIncidentQuery() .list(); for (HistoricIncident historicIncident : historicIncidents) { commandContext .getDbEntityManager() .delete((DbEntity) historicIncident); } return null; } });
public Void execute(CommandContext commandContext) { List<Job> jobs = managementService.createJobQuery().list(); for (Job job : jobs) { commandContext.getJobManager().deleteJob((JobEntity) job); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(job.getId()); } List<HistoricIncident> historicIncidents = historyService.createHistoricIncidentQuery().list(); for (HistoricIncident historicIncident : historicIncidents) { commandContext.getDbEntityManager().delete((HistoricIncidentEntity) historicIncident); } commandContext.getMeterLogManager().deleteAll(); return null; } });
public Void execute(CommandContext commandContext) { List<Job> jobs = managementService.createJobQuery().list(); for (Job job : jobs) { commandContext.getJobManager().deleteJob((JobEntity) job); commandContext.getHistoricJobLogManager().deleteHistoricJobLogByJobId(job.getId()); } List<HistoricIncident> historicIncidents = historyService.createHistoricIncidentQuery().list(); for (HistoricIncident historicIncident : historicIncidents) { commandContext.getDbEntityManager().delete((HistoricIncidentEntity) historicIncident); } commandContext.getMeterLogManager().deleteAll(); return null; } });