@Override public List<ExecutionEntity> getExecutionsAsCopy() { return new ArrayList<>(getExecutions()); }
@Override public List<ExecutionEntity> getExecutionsAsCopy() { return new ArrayList<>(getExecutions()); }
protected List<ExecutionEntity> fetchExecutionsForProcessInstance(ExecutionEntity execution) { List<ExecutionEntity> executions = new ArrayList<ExecutionEntity>(); executions.addAll(execution.getExecutions()); for (ExecutionEntity child : execution.getExecutions()) { executions.addAll(fetchExecutionsForProcessInstance(child)); } return executions; }
protected List<ExecutionEntity> fetchExecutionsForProcessInstance(ExecutionEntity execution) { List<ExecutionEntity> executions = new ArrayList<ExecutionEntity>(); executions.addAll(execution.getExecutions()); for (ExecutionEntity child : execution.getExecutions()) { executions.addAll(fetchExecutionsForProcessInstance(child)); } return executions; }
@Override protected Collection<ExecutionEntity> nextElements() { List<ExecutionEntity> executions = getCurrentElement().getExecutions(); if (executions == null) { executions = new ArrayList<ExecutionEntity>(); } return (List) executions; } }
@Override protected Collection<ExecutionEntity> nextElements() { List<ExecutionEntity> executions = getCurrentElement().getExecutions(); if (executions == null) { executions = new ArrayList<ExecutionEntity>(); } return (List) executions; } }
/** * Loads all executions that are part of this process instance tree from the dbSqlSession cache. * (optionally querying the db if a child is not already loaded. * * @param execution the current root execution (already contained in childExecutions) * @param childExecutions the list in which all child executions should be collected */ protected void loadChildExecutionsFromCache(ExecutionEntity execution, List<ExecutionEntity> childExecutions) { List<ExecutionEntity> childrenOfThisExecution = execution.getExecutions(); if(childrenOfThisExecution != null) { childExecutions.addAll(childrenOfThisExecution); for (ExecutionEntity child : childrenOfThisExecution) { loadChildExecutionsFromCache(child, childExecutions); } } }
/** * Loads all executions that are part of this process instance tree from the dbSqlSession cache. * (optionally querying the db if a child is not already loaded. * * @param execution the current root execution (already contained in childExecutions) * @param childExecutions the list in which all child executions should be collected */ protected void loadChildExecutionsFromCache(ExecutionEntity execution, List<ExecutionEntity> childExecutions) { List<ExecutionEntity> childrenOfThisExecution = execution.getExecutions(); if(childrenOfThisExecution != null) { childExecutions.addAll(childrenOfThisExecution); for (ExecutionEntity child : childrenOfThisExecution) { loadChildExecutionsFromCache(child, childExecutions); } } }
protected static ExecutionTree forExecution(ExecutionEntity execution) { List<ExecutionTree> children = new ArrayList<ExecutionTree>(); for (ExecutionEntity child : execution.getExecutions()) { children.add(ExecutionTree.forExecution(child)); } return new ExecutionTree(execution, children); }
if (execution.isConcurrent() && execution.hasChildren()) { ExecutionEntity child = execution.getExecutions().get(0); activityInstanceExecutions.add(child.getId());
if (execution.isConcurrent() && execution.hasChildren()) { ExecutionEntity child = execution.getExecutions().get(0); activityInstanceExecutions.add(child.getId());
@Override public List<ExecutionEntity> getExecutionsAsCopy() { return new ArrayList<ExecutionEntity>(getExecutions()); }
protected List<ExecutionEntity> fetchExecutionsForProcessInstance(ExecutionEntity execution) { List<ExecutionEntity> executions = new ArrayList<ExecutionEntity>(); executions.addAll(execution.getExecutions()); for (ExecutionEntity child : execution.getExecutions()) { executions.addAll(fetchExecutionsForProcessInstance(child)); } return executions; }
@Override protected Collection<ExecutionEntity> nextElements() { List<ExecutionEntity> executions = getCurrentElement().getExecutions(); if (executions == null) { executions = new ArrayList<ExecutionEntity>(); } return (List) executions; } }
/** * Loads all executions that are part of this process instance tree from the dbSqlSession cache. * (optionally querying the db if a child is not already loaded. * * @param execution the current root execution (already contained in childExecutions) * @param childExecutions the list in which all child executions should be collected */ protected void loadChildExecutionsFromCache(ExecutionEntity execution, List<ExecutionEntity> childExecutions) { List<ExecutionEntity> childrenOfThisExecution = execution.getExecutions(); if(childrenOfThisExecution != null) { childExecutions.addAll(childrenOfThisExecution); for (ExecutionEntity child : childrenOfThisExecution) { loadChildExecutionsFromCache(child, childExecutions); } } }
protected static ExecutionTree forExecution(ExecutionEntity execution) { List<ExecutionTree> children = new ArrayList<ExecutionTree>(); for (ExecutionEntity child : execution.getExecutions()) { children.add(ExecutionTree.forExecution(child)); } return new ExecutionTree(execution, children); }
if (execution.isConcurrent() && execution.hasChildren()) { ExecutionEntity child = execution.getExecutions().get(0); activityInstanceExecutions.add(child.getId());