@Override public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricExternalTaskLogManager() .findHistoricExternalTaskLogsCountByQueryCriteria(this); }
@Override public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricExternalTaskLogManager() .findHistoricExternalTaskLogsCountByQueryCriteria(this); }
@Override public List<HistoricExternalTaskLog> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricExternalTaskLogManager() .findHistoricExternalTaskLogsByQueryCriteria(this, page); }
@Override public List<HistoricExternalTaskLog> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricExternalTaskLogManager() .findHistoricExternalTaskLogsByQueryCriteria(this, page); }
protected void produceHistoricExternalTaskSuccessfulEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskSuccessfulEvent(this); }
protected void produceHistoricExternalTaskCreatedEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskCreatedEvent(this); }
protected void produceHistoricExternalTaskDeletedEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskDeletedEvent(this); }
protected void produceHistoricExternalTaskCreatedEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskCreatedEvent(this); }
protected void produceHistoricExternalTaskFailedEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskFailedEvent(this); }
protected void produceHistoricExternalTaskFailedEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskFailedEvent(this); }
protected void produceHistoricExternalTaskDeletedEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskDeletedEvent(this); }
protected void produceHistoricExternalTaskSuccessfulEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskSuccessfulEvent(this); }
public String execute(CommandContext commandContext) { ensureNotNull("historicExternalTaskLogId", historicExternalTaskLogId); HistoricExternalTaskLogEntity event = commandContext .getHistoricExternalTaskLogManager() .findHistoricExternalTaskLogById(historicExternalTaskLogId); ensureNotNull("No historic external task log found with id " + historicExternalTaskLogId, "historicExternalTaskLog", event); for (CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checker.checkReadHistoricExternalTaskLog(event); } return event.getErrorDetails(); }
public String execute(CommandContext commandContext) { ensureNotNull("historicExternalTaskLogId", historicExternalTaskLogId); HistoricExternalTaskLogEntity event = commandContext .getHistoricExternalTaskLogManager() .findHistoricExternalTaskLogById(historicExternalTaskLogId); ensureNotNull("No historic external task log found with id " + historicExternalTaskLogId, "historicExternalTaskLog", event); for (CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checker.checkReadHistoricExternalTaskLog(event); } return event.getErrorDetails(); }
DbOperation deleteTaskLog = commandContext.getHistoricExternalTaskLogManager() .deleteExternalTaskLogByRemovalTime(removalTime, minuteFrom, minuteTo, batchSize);
DbOperation deleteTaskLog = commandContext.getHistoricExternalTaskLogManager() .deleteExternalTaskLogByRemovalTime(removalTime, minuteFrom, minuteTo, batchSize);
.addRemovalTimeToIncidentsByRootProcessInstanceId(rootProcessInstanceId, removalTime); commandContext.getHistoricExternalTaskLogManager() .addRemovalTimeToExternalTaskLogByRootProcessInstanceId(rootProcessInstanceId, removalTime);
.addRemovalTimeToIncidentsByRootProcessInstanceId(rootProcessInstanceId, removalTime); commandContext.getHistoricExternalTaskLogManager() .addRemovalTimeToExternalTaskLogByRootProcessInstanceId(rootProcessInstanceId, removalTime);
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); }