public long executeCount(CommandContext commandContext, Map<String, Object> parameterMap) { return commandContext .getHistoricTaskInstanceManager() .findHistoricTaskInstanceCountByNativeQuery(parameterMap); }
public List<HistoricTaskInstance> executeList(CommandContext commandContext, Map<String, Object> parameterMap, int firstResult, int maxResults) { return commandContext .getHistoricTaskInstanceManager() .findHistoricTaskInstancesByNativeQuery(parameterMap, firstResult, maxResults); }
public long executeCount(CommandContext commandContext, Map<String, Object> parameterMap) { return commandContext .getHistoricTaskInstanceManager() .findHistoricTaskInstanceCountByNativeQuery(parameterMap); }
public List<HistoricTaskInstance> executeList(CommandContext commandContext, Map<String, Object> parameterMap, int firstResult, int maxResults) { return commandContext .getHistoricTaskInstanceManager() .findHistoricTaskInstancesByNativeQuery(parameterMap, firstResult, maxResults); }
@Override public List<HistoricTaskInstance> executeList(CommandContext commandContext, Page page) { ensureVariablesInitialized(); checkQueryOk(); return commandContext .getHistoricTaskInstanceManager() .findHistoricTaskInstancesByQueryCriteria(this, page); }
@Override public void onCommandContextClose(CommandContext commandContext) { if(commandContext.getDbEntityManager().isDirty(this)) { commandContext.getHistoricTaskInstanceManager().updateHistoricTaskInstance(this); } }
public Object execute(CommandContext commandContext) { ensureNotNull("taskId", taskId); HistoricTaskInstanceEntity task = commandContext.getHistoricTaskInstanceManager().findHistoricTaskInstanceById(taskId); for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checker.checkDeleteHistoricTaskInstance(task); } commandContext .getHistoricTaskInstanceManager() .deleteHistoricTaskInstanceById(taskId); return null; }
@Override public long executeCount(CommandContext commandContext) { ensureVariablesInitialized(); checkQueryOk(); return commandContext .getHistoricTaskInstanceManager() .findHistoricTaskInstanceCountByQueryCriteria(this); }
@Override public void onCommandContextClose(CommandContext commandContext) { if(commandContext.getDbEntityManager().isDirty(this)) { commandContext.getHistoricTaskInstanceManager().updateHistoricTaskInstance(this); } }
public Object execute(CommandContext commandContext) { ensureNotNull("taskId", taskId); HistoricTaskInstanceEntity task = commandContext.getHistoricTaskInstanceManager().findHistoricTaskInstanceById(taskId); for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checker.checkDeleteHistoricTaskInstance(task); } commandContext .getHistoricTaskInstanceManager() .deleteHistoricTaskInstanceById(taskId); return null; }
@Override public long executeCount(CommandContext commandContext) { ensureVariablesInitialized(); checkQueryOk(); return commandContext .getHistoricTaskInstanceManager() .findHistoricTaskInstanceCountByQueryCriteria(this); }
@Override public List<HistoricTaskInstance> executeList(CommandContext commandContext, Page page) { ensureVariablesInitialized(); checkQueryOk(); return commandContext .getHistoricTaskInstanceManager() .findHistoricTaskInstancesByQueryCriteria(this, page); }
@Override public void performExecution(ActivityExecution execution) throws Exception { TaskEntity task = TaskEntity.createAndInsert(execution); taskDecorator.decorate(task, execution); Context.getCommandContext() .getHistoricTaskInstanceManager() .createHistoricTask(task); // All properties set, now firing 'create' event task.fireEvent(TaskListener.EVENTNAME_CREATE); }
@Override public void performExecution(ActivityExecution execution) throws Exception { TaskEntity task = TaskEntity.createAndInsert(execution); taskDecorator.decorate(task, execution); Context.getCommandContext() .getHistoricTaskInstanceManager() .createHistoricTask(task); // All properties set, now firing 'create' event task.fireEvent(TaskListener.EVENTNAME_CREATE); }
public TaskEntity createTask(TaskDecorator taskDecorator) { TaskEntity task = TaskEntity.createAndInsert(this); setTask(task); taskDecorator.decorate(task, this); Context.getCommandContext() .getHistoricTaskInstanceManager() .createHistoricTask(task); // All properties set, now firing 'create' event task.fireEvent(TaskListener.EVENTNAME_CREATE); return task; }
public TaskEntity createTask(TaskDecorator taskDecorator) { TaskEntity task = TaskEntity.createAndInsert(this); setTask(task); taskDecorator.decorate(task, this); Context.getCommandContext() .getHistoricTaskInstanceManager() .createHistoricTask(task); // All properties set, now firing 'create' event task.fireEvent(TaskListener.EVENTNAME_CREATE); return task; }
public Object execute(CommandContext commandContext) { commandContext.getHistoricTaskInstanceManager().deleteHistoricTaskInstanceById(taskId); commandContext.getHistoricIdentityLinkManager().deleteHistoricIdentityLinksLogByTaskId(taskId); 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 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); }