if (faultNode.getFaultName() == null) {
errors.add(new ProcessValidationErrorImpl(process,
"Fault node '" + node.getName() + "' [" + node.getId() + "] has no fault name."));
}
} else if (node instanceof TimerNode) {
TimerNode timerNode = (TimerNode) node;
if (timerNode.getFrom() == null && !acceptsNoIncomingConnections(node)) {
errors.add(new ProcessValidationErrorImpl(process,
"Timer node '" + node.getName() + "' [" + node.getId() + "] has no incoming connection."));
}
if (timerNode.getTo() == null && !acceptsNoOutgoingConnections(node)) {
errors.add(new ProcessValidationErrorImpl(process,
"Timer node '" + node.getName() + "' [" + node.getId() + "] has no outgoing connection."));
}
if (timerNode.getTimer() == null) {
errors.add(new ProcessValidationErrorImpl(process,
"Timer node '" + node.getName() + "' [" + node.getId() + "] has no timer specified."));
} else {
validateTimer(timerNode.getTimer(), node, process, errors);
}
} else {
errors.add(new ProcessValidationErrorImpl(process,
"Unknown node type '" + node.getClass().getName() + "'"));
}