private StartEvent getNoneStartEvent(Process proc) { StartEvent start = null; for (StartEvent aux : proc.getFlowObjects(StartEvent.class)) { if (aux.getTrigger().size() == 0) { if (start != null) throw new InvalidProcessException("Process cannot have multiple start events with no trigger"); start = aux; } } return start; }
for (FlowObject flowObject : proc.getFlowObjects())
for (FlowObject aux : proc.getFlowObjects())