@Override public String toString() { String st = this.getClass().getName() + "[uuid: " + getUUID() + ", name:" + getName() + ", description:" + getDescription() + ", version:" + getVersion(); st += "]"; return st; }
@Override public String toString() { String st = this.getClass().getName() + "[uuid: " + getUUID() + ", name:" + getName() + ", description:" + getDescription() + ", version:" + getVersion(); st += "]"; return st; }
private void checkStartEvents(final ProcessDefinitionImpl process) { for (final ActivityDefinition activity : process.getActivities()) { if (activity.getIncomingTransitions().size() == 0) { if (activity.isThrowingSignalEvent()) { problems.add(new Problem("Process " + process.getName() + " cannot start with a throw signal event", Problem.SEVERITY_ERROR)); } else if (activity.isThrowingSignalEvent()) { problems.add(new Problem("Process " + process.getName() + " cannot start with a throw error event", Problem.SEVERITY_ERROR)); } else if (activity.isCatchingErrorEvent() && ProcessType.PROCESS.equals(process.getType())) { problems.add(new Problem("Process " + process.getName() + " cannot start with a catch error event because it is not an event sub-process.", Problem.SEVERITY_ERROR)); } } } }
private void checkStartEvents(final ProcessDefinitionImpl process) { for (final ActivityDefinition activity : process.getActivities()) { if (activity.getIncomingTransitions().size() == 0) { if (activity.isThrowingSignalEvent()) { problems.add(new Problem("Process " + process.getName() + " cannot start with a throw signal event", Problem.SEVERITY_ERROR)); } else if (activity.isThrowingSignalEvent()) { problems.add(new Problem("Process " + process.getName() + " cannot start with a throw error event", Problem.SEVERITY_ERROR)); } else if (activity.isCatchingErrorEvent() && ProcessType.PROCESS.equals(process.getType())) { problems.add(new Problem("Process " + process.getName() + " cannot start with a catch error event because it is not an event sub-process.", Problem.SEVERITY_ERROR)); } } } }
private void checkEventSubProcess(final ProcessDefinitionImpl process) { if (ProcessType.EVENT_SUB_PROCESS.equals(process.getType())) { for (final ActivityDefinition activity : process.getActivities()) { if (activity.getIncomingTransitions().size() == 0) { if (!(activity.isTimer() || activity.isCatchingSignalEvent() || activity.isReceiveEvent() || activity .isCatchingErrorEvent())) { problems.add(new Problem("Process " + process.getName() + " must not begin with a \"none\" start event", Problem.SEVERITY_ERROR)); } } } } }
private void checkEventSubProcess(final ProcessDefinitionImpl process) { if (ProcessType.EVENT_SUB_PROCESS.equals(process.getType())) { for (final ActivityDefinition activity : process.getActivities()) { if (activity.getIncomingTransitions().size() == 0) { if (!(activity.isTimer() || activity.isCatchingSignalEvent() || activity.isReceiveEvent() || activity .isCatchingErrorEvent())) { problems.add(new Problem("Process " + process.getName() + " must not begin with a \"none\" start event", Problem.SEVERITY_ERROR)); } } } } }