public void deleteInstance(String instanceId) { ExecutionService execService = this.processEngine.getExecutionService(); Execution exec = execService.findExecutionById(instanceId); if (null == exec) throw new IllegalArgumentException("No such execution with id " + instanceId); execService.deleteProcessInstance(instanceId); }
public void endInstance(String instanceId, ProcessInstanceRef.RESULT result) { ExecutionService execService = this.processEngine.getExecutionService(); Execution exec = execService.findExecutionById(instanceId); if (null == exec) throw new IllegalArgumentException("No such execution with id " + instanceId); ProcessInstanceRef.RESULT actualResult = result != null ? result : ProcessInstanceRef.RESULT.COMPLETED; execService.endProcessInstance(instanceId, actualResult.toString()); }
Execution execution = processEngine.getExecutionService().findExecutionById((String) executionId); while (execution == null && waitTime < PROCESS_CREATION_WAIT) execution = processEngine.getExecutionService().findExecutionById((String) executionId);
Execution execution = processEngine.getExecutionService().findExecutionById((String) executionId); while (execution == null && waitTime < PROCESS_CREATION_WAIT) execution = processEngine.getExecutionService().findExecutionById((String) executionId);
private InputStream loadCSS(String executionId) { RepositoryService repoService = processEngine.getRepositoryService(); ExecutionService execService = processEngine.getExecutionService(); Execution execution = execService.findExecutionById(executionId); if (execution != null) { ProcessDefinition definition = repoService.createProcessDefinitionQuery() .processDefinitionId(execution.getProcessDefinitionId()).uniqueResult(); InputStream in = repoService.getResourceAsStream(definition.getDeploymentId(), PROCESSFORMS_CSS); return in; } return null; } }
Execution execution = processEngine.getExecutionService().findExecutionById((String) executionId); if (execution == null)
Execution execution = processEngine.getExecutionService().findExecutionById((String) executionId); if (execution == null)
Execution execution = executionService.findExecutionById(executionId); String procInstId = execution.getProcessInstance().getId(); ProcessDefinition procDef = repoService.createProcessDefinitionQuery()
Execution execution = executionService.findExecutionById(executionId); if (execution != null) { Execution pi = execution.getProcessInstance();