@SuppressWarnings("unchecked") public List<HistoricExternalTaskLog> findHistoricExternalTaskLogsByQueryCriteria(HistoricExternalTaskLogQueryImpl query, Page page) { configureQuery(query); return getDbEntityManager().selectList("selectHistoricExternalTaskLogByQueryCriteria", query, page); }
public void deleteHistoricExternalTaskLogsByProcessInstanceIds(List<String> processInstanceIds) { deleteExceptionByteArrayByParameterMap("processInstanceIdIn", processInstanceIds.toArray()); getDbEntityManager().deletePreserveOrder(HistoricExternalTaskLogEntity.class, "deleteHistoricExternalTaskLogByProcessInstanceIds", processInstanceIds); }
@Override public List<HistoricExternalTaskLog> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricExternalTaskLogManager() .findHistoricExternalTaskLogsByQueryCriteria(this, page); }
@Override public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricExternalTaskLogManager() .findHistoricExternalTaskLogsCountByQueryCriteria(this); }
protected void produceHistoricExternalTaskCreatedEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskCreatedEvent(this); }
protected void produceHistoricExternalTaskDeletedEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskDeletedEvent(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 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); }
.addRemovalTimeToExternalTaskLogByRootProcessInstanceId(rootProcessInstanceId, removalTime);
.deleteExternalTaskLogByRemovalTime(removalTime, minuteFrom, minuteTo, batchSize);
@Override public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricExternalTaskLogManager() .findHistoricExternalTaskLogsCountByQueryCriteria(this); }
protected void produceHistoricExternalTaskCreatedEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskCreatedEvent(this); }
protected void produceHistoricExternalTaskDeletedEvent() { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricExternalTaskLogManager().fireExternalTaskDeletedEvent(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 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); }
.addRemovalTimeToExternalTaskLogByRootProcessInstanceId(rootProcessInstanceId, removalTime);
.deleteExternalTaskLogByRemovalTime(removalTime, minuteFrom, minuteTo, batchSize);
@SuppressWarnings("unchecked") public List<HistoricExternalTaskLog> findHistoricExternalTaskLogsByQueryCriteria(HistoricExternalTaskLogQueryImpl query, Page page) { configureQuery(query); return getDbEntityManager().selectList("selectHistoricExternalTaskLogByQueryCriteria", query, page); }
public void deleteHistoricExternalTaskLogsByProcessInstanceIds(List<String> processInstanceIds) { deleteExceptionByteArrayByParameterMap("processInstanceIdIn", processInstanceIds.toArray()); getDbEntityManager().deletePreserveOrder(HistoricExternalTaskLogEntity.class, "deleteHistoricExternalTaskLogByProcessInstanceIds", processInstanceIds); }
@Override public List<HistoricExternalTaskLog> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricExternalTaskLogManager() .findHistoricExternalTaskLogsByQueryCriteria(this, page); }