public Object execute(CommandContext commandContext) { commandContext.getHistoricIncidentManager().delete((HistoricIncidentEntity) historicIncident); 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 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 Object execute(CommandContext commandContext) { commandContext.getHistoricIncidentManager().delete((HistoricIncidentEntity) historicIncident); 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 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; } });