protected List<ExecutionEntity> fetchExecutions(CommandContext commandContext, String processInstanceId) { return commandContext.getExecutionManager().findExecutionsByProcessInstanceId(processInstanceId); }
protected List<ExecutionEntity> fetchExecutions(CommandContext commandContext, String processInstanceId) { return commandContext.getExecutionManager().findExecutionsByProcessInstanceId(processInstanceId); }
protected List<ExecutionEntity> loadFromDb(final String processInstanceId, final CommandContext commandContext) { List<ExecutionEntity> executions = commandContext.getExecutionManager().findExecutionsByProcessInstanceId(processInstanceId); ExecutionEntity processInstance = commandContext.getExecutionManager().findExecutionById(processInstanceId); // initialize parent/child sets if (processInstance != null) { processInstance.restoreProcessInstance(executions, null, null, null, null, null, null); } return executions; }
protected List<ExecutionEntity> loadFromDb(final String processInstanceId, final CommandContext commandContext) { List<ExecutionEntity> executions = commandContext.getExecutionManager().findExecutionsByProcessInstanceId(processInstanceId); ExecutionEntity processInstance = commandContext.getExecutionManager().findExecutionById(processInstanceId); // initialize parent/child sets if (processInstance != null) { processInstance.restoreProcessInstance(executions, null, null, null, null, null, null); } return executions; }
List<ExecutionEntity> executions = Context.getCommandContext() .getExecutionManager() .findExecutionsByProcessInstanceId(processInstanceId);
List<ExecutionEntity> executions = Context.getCommandContext() .getExecutionManager() .findExecutionsByProcessInstanceId(processInstanceId);
protected List<ExecutionEntity> fetchExecutions(CommandContext commandContext, String processInstanceId) { return commandContext.getExecutionManager().findExecutionsByProcessInstanceId(processInstanceId); }
.findExecutionsByProcessInstanceId(processInstanceId); for (ExecutionEntity executionEntity : childExecutions) { validateAndSwitchVersionOfExecution(commandContext, executionEntity, newProcessDefinition);
.findExecutionsByProcessInstanceId(processInstanceId); for (ExecutionEntity executionEntity : childExecutions) { validateAndSwitchVersionOfExecution(commandContext, executionEntity, newProcessDefinition);
} else { ensureNotNull("taskId or processInstanceId has to be provided", this.processInstanceId); List<ExecutionEntity> executionsByProcessInstanceId = commandContext.getExecutionManager().findExecutionsByProcessInstanceId(processInstanceId); ensureNumberOfElements("processInstances",executionsByProcessInstanceId,1); processInstance = executionsByProcessInstanceId.get(0);
} else { ensureNotNull("taskId or processInstanceId has to be provided", this.processInstanceId); List<ExecutionEntity> executionsByProcessInstanceId = commandContext.getExecutionManager().findExecutionsByProcessInstanceId(processInstanceId); ensureNumberOfElements("processInstances",executionsByProcessInstanceId,1); processInstance = executionsByProcessInstanceId.get(0);
protected List<ExecutionEntity> loadFromDb(final String processInstanceId, final CommandContext commandContext) { List<ExecutionEntity> executions = commandContext.getExecutionManager().findExecutionsByProcessInstanceId(processInstanceId); ExecutionEntity processInstance = commandContext.getExecutionManager().findExecutionById(processInstanceId); // initialize parent/child sets if (processInstance != null) { processInstance.restoreProcessInstance(executions, null, null, null, null, null, null); } return executions; }
List<ExecutionEntity> executions = Context.getCommandContext() .getExecutionManager() .findExecutionsByProcessInstanceId(processInstanceId);
.findExecutionsByProcessInstanceId(processInstanceId); for (ExecutionEntity executionEntity : childExecutions) { validateAndSwitchVersionOfExecution(commandContext, executionEntity, newProcessDefinition);
} else { ensureNotNull("taskId or processInstanceId has to be provided", this.processInstanceId); List<ExecutionEntity> executionsByProcessInstanceId = commandContext.getExecutionManager().findExecutionsByProcessInstanceId(processInstanceId); ensureNumberOfElements("processInstances",executionsByProcessInstanceId,1); processInstance = executionsByProcessInstanceId.get(0);