NIFI-810: Reworded validation errors pertaining ot upstream connections

This commit is contained in:
Mark Payne 2015-10-07 17:53:04 -04:00
parent ccfb57fe9f
commit 8e2308b78d
1 changed files with 4 additions and 4 deletions

View File

@ -1048,8 +1048,8 @@ public class StandardProcessorNode extends ProcessorNode implements Connectable
final int incomingConnCount = getIncomingConnections().size(); final int incomingConnCount = getIncomingConnections().size();
if (incomingConnCount != 0) { if (incomingConnCount != 0) {
results.add(new ValidationResult.Builder() results.add(new ValidationResult.Builder()
.explanation("Processor does not accept Incoming Connections but is currently configured with " + incomingConnCount + " Incoming Connections") .explanation("Processor does not allow upstream connections but currently has " + incomingConnCount)
.subject("Incoming Connections") .subject("Upstream Connections")
.valid(false) .valid(false)
.build()); .build());
} }
@ -1058,8 +1058,8 @@ public class StandardProcessorNode extends ProcessorNode implements Connectable
case INPUT_REQUIRED: { case INPUT_REQUIRED: {
if (getIncomingConnections().isEmpty()) { if (getIncomingConnections().isEmpty()) {
results.add(new ValidationResult.Builder() results.add(new ValidationResult.Builder()
.explanation("Processor required at least one Incoming Connection in order to perform its function but currently has no Incoming Connection") .explanation("Processor requires an upstream connection but currently has none")
.subject("Incoming Connections") .subject("Upstream Connections")
.valid(false) .valid(false)
.build()); .build());
} }