endNodeFound = true;
if ( endNode.getFrom() == null ) {
errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.END_NODE_HAS_NO_INCOMING_CONNECTIONS ) );
}
} else if ( node instanceof RuleSetNode ) {
final RuleSetNode ruleSetNode = (RuleSetNode) node;
if ( ruleSetNode.getFrom() == null ) {
errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.RULE_SET_NODE_WITHOUT_INCOMING_CONNECTIONS, "name = " + ruleSetNode.getName() ) );
}
if ( ruleSetNode.getTo() == null ) {
errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.RULE_SET_NODE_WITHOUT_OUTGOING_CONNECTIONS, "name = " + ruleSetNode.getName() ) );
}
final String ruleFlowGroup = ruleSetNode.getRuleFlowGroup();
if ( ruleFlowGroup == null || "".equals( ruleFlowGroup ) ) {
errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.RULE_SET_NODE_WITHOUT_RULE_SET_GROUP, "name = " + ruleSetNode.getName() ) );
}
} else if ( node instanceof Split ) {
final Split split = (Split) node;
if ( split.getType() == Split.TYPE_UNDEFINED ) {
errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.SPLIT_WITHOUT_TYPE, "name = " + split.getName() ) );