if (!outgoingConnection) {
errors.add(new ProcessValidationErrorImpl(process,
"Start state '" + node.getName() + "' [" + node.getId() + "] has no outgoing connections."));
}
} else if (node instanceof EndState) {
final EndState endState = (EndState) node;
if (endState.getIncomingConnections().size() != 1) {
errors.add(new ProcessValidationErrorImpl(process,
"End state '" + node.getName() + "' [" + node.getId() + "] has more than one type of incoming connections."));
}
List<Connection> connections = endState.getIncomingConnections(NodeImpl.CONNECTION_DEFAULT_TYPE);
if (connections == null || connections.size() == 0) {
errors.add(new ProcessValidationErrorImpl(process,
"End state '" + node.getName() + "' [" + node.getId() + "] has no default incoming connections."));
}
} else if (node instanceof RuleSetNode) {