public List<HistoricActivityInstance> executeList(CommandContext commandContext, Map<String, Object> parameterMap, int firstResult, int maxResults) { return commandContext .getHistoricActivityInstanceManager() .findHistoricActivityInstancesByNativeQuery(parameterMap, firstResult, maxResults); }
public List<HistoricActivityInstance> executeList(CommandContext commandContext, Map<String, Object> parameterMap, int firstResult, int maxResults) { return commandContext .getHistoricActivityInstanceManager() .findHistoricActivityInstancesByNativeQuery(parameterMap, firstResult, maxResults); }
public long executeCount(CommandContext commandContext, Map<String, Object> parameterMap) { return commandContext .getHistoricActivityInstanceManager() .findHistoricActivityInstanceCountByNativeQuery(parameterMap); }
public long executeCount(CommandContext commandContext, Map<String, Object> parameterMap) { return commandContext .getHistoricActivityInstanceManager() .findHistoricActivityInstanceCountByNativeQuery(parameterMap); }
@Override public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricActivityInstanceManager() .findHistoricActivityInstanceCountByQueryCriteria(this); }
@Override public List<HistoricActivityInstance> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricActivityInstanceManager() .findHistoricActivityInstancesByQueryCriteria(this, page); }
@Override public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricActivityInstanceManager() .findHistoricActivityInstanceCountByQueryCriteria(this); }
@Override public List<HistoricActivityInstance> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext .getHistoricActivityInstanceManager() .findHistoricActivityInstancesByQueryCriteria(this, page); }
public Void execute(CommandContext commandContext) { commandContext.getHistoricActivityInstanceManager() .deleteHistoricActivityInstancesByProcessInstanceIds(Collections.singletonList(processInstanceId)); return null; } });
DbOperation deleteActivityInstances = commandContext.getHistoricActivityInstanceManager() .deleteHistoricActivityInstancesByRemovalTime(removalTime, minuteFrom, minuteTo, batchSize);
DbOperation deleteActivityInstances = commandContext.getHistoricActivityInstanceManager() .deleteHistoricActivityInstancesByRemovalTime(removalTime, minuteFrom, minuteTo, batchSize);
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 addRemovalTimeToProcessInstancesByRootProcessInstanceId(String rootProcessInstanceId, Date removalTime) { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricActivityInstanceManager() .addRemovalTimeToActivityInstancesByRootProcessInstanceId(rootProcessInstanceId, removalTime);
public void addRemovalTimeToProcessInstancesByRootProcessInstanceId(String rootProcessInstanceId, Date removalTime) { CommandContext commandContext = Context.getCommandContext(); commandContext.getHistoricActivityInstanceManager() .addRemovalTimeToActivityInstancesByRootProcessInstanceId(rootProcessInstanceId, removalTime);
public long executeCount(CommandContext commandContext, Map<String, Object> parameterMap) { return commandContext .getHistoricActivityInstanceManager() .findHistoricActivityInstanceCountByNativeQuery(parameterMap); }
public List<HistoricActivityInstance> executeList(CommandContext commandContext, Map<String, Object> parameterMap, int firstResult, int maxResults) { return commandContext .getHistoricActivityInstanceManager() .findHistoricActivityInstancesByNativeQuery(parameterMap, firstResult, maxResults); }
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); }
@Override public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricActivityInstanceManager() .findHistoricActivityInstanceCountByQueryCriteria(this); }
public Void execute(CommandContext commandContext) { commandContext.getHistoricActivityInstanceManager() .deleteHistoricActivityInstancesByProcessInstanceIds(Collections.singletonList(processInstanceId)); return null; } });