private void checkAllNodesConnectedToStart(final RuleFlowProcess process,
final List errors) {
final Map processNodes = new HashMap();
final Node[] nodes = process.getNodes();
for ( int i = 0; i < nodes.length; i++ ) {
final Node node = nodes[i];
processNodes.put( node,
Boolean.FALSE );
}
final Node start = process.getStart();
if ( start != null ) {
processNode( start,
processNodes );
}
for ( final Iterator it = processNodes.keySet().iterator(); it.hasNext(); ) {
final Node node = (Node) it.next();
if ( Boolean.FALSE.equals( processNodes.get( node ) ) ) {
errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.ALL_NODES_CONNECTED_TO_START, "name = " + node.getName() ) );
}
}
}