/** * Look up an already-running process instance. * * @return the ProcessInstance */ @Override public Object lookupProcess(Object processId) throws Exception { return processEngine.getExecutionService().findProcessInstanceById((String) processId); }
/** * Look up an already-running process instance. * * @return the ProcessInstance */ public Object lookupProcess(Object processId) throws Exception { return processEngine.getExecutionService().findProcessInstanceById((String) processId); }
public List<ActiveNodeInfo> getActiveNodeInfo(String processInstanceId) { List<ActiveNodeInfo> results = new ArrayList<ActiveNodeInfo>(); ProcessInstance pi = processEngine.getExecutionService().findProcessInstanceById(processInstanceId); Set<String> currentActivities = pi.findActiveActivityNames(); RepositoryService repoService = this.processEngine.getRepositoryService(); for (String activityName : currentActivities) { ActivityCoordinates coords = repoService.getActivityCoordinates(pi.getProcessDefinitionId(), activityName); results.add(new ActiveNodeInfo(coords.getWidth(), coords.getHeight(), new DiagramNodeInfo(activityName, coords.getX(), coords.getY(), coords.getWidth(), coords.getHeight()))); } return results; }
ProcessInstance process = processEngine.getExecutionService().findProcessInstanceById(processId); if (process == null)
ProcessInstance process = processEngine.getExecutionService().findProcessInstanceById(processId); if (process == null)
ProcessInstance process = processEngine.getExecutionService().findProcessInstanceById(processId); if (process == null)
ProcessInstance process = processEngine.getExecutionService().findProcessInstanceById(processId); if (process == null)