mirror of https://github.com/apache/nifi.git
NIFI-810: Updated the wording on validation errors due to upstream connections
This commit is contained in:
parent
13edcfda2e
commit
5ecdb1858e
|
@ -359,8 +359,7 @@ public class StandardProcessorNode extends ProcessorNode implements Connectable
|
|||
if (capDesc != null) {
|
||||
description = capDesc.value();
|
||||
} else {
|
||||
final org.apache.nifi.processor.annotation.CapabilityDescription deprecatedCapDesc
|
||||
= processor.getClass().getAnnotation(org.apache.nifi.processor.annotation.CapabilityDescription.class);
|
||||
final org.apache.nifi.processor.annotation.CapabilityDescription deprecatedCapDesc = processor.getClass().getAnnotation(org.apache.nifi.processor.annotation.CapabilityDescription.class);
|
||||
if (deprecatedCapDesc != null) {
|
||||
description = deprecatedCapDesc.value();
|
||||
}
|
||||
|
@ -664,7 +663,7 @@ public class StandardProcessorNode extends ProcessorNode implements Connectable
|
|||
} finally {
|
||||
readLock.unlock();
|
||||
}
|
||||
return (applicableConnections == null) ? Collections.<Connection>emptySet() : Collections.unmodifiableSet(applicableConnections);
|
||||
return (applicableConnections == null) ? Collections.<Connection> emptySet() : Collections.unmodifiableSet(applicableConnections);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1049,8 +1048,8 @@ public class StandardProcessorNode extends ProcessorNode implements Connectable
|
|||
final int incomingConnCount = getIncomingConnections().size();
|
||||
if (incomingConnCount != 0) {
|
||||
results.add(new ValidationResult.Builder()
|
||||
.explanation("Processor does not accept Incoming Connections but is currently configured with " + incomingConnCount + " Incoming Connections")
|
||||
.subject("Incoming Connections")
|
||||
.explanation("Processor is currently configured with " + incomingConnCount + " upstream connections but does not accept any upstream connections")
|
||||
.subject("Upstream Connections")
|
||||
.valid(false)
|
||||
.build());
|
||||
}
|
||||
|
@ -1059,8 +1058,8 @@ public class StandardProcessorNode extends ProcessorNode implements Connectable
|
|||
case INPUT_REQUIRED: {
|
||||
if (getIncomingConnections().isEmpty()) {
|
||||
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")
|
||||
.subject("Incoming Connections")
|
||||
.explanation("Processor requires an upstream connection but currently has none")
|
||||
.subject("Upstream Connections")
|
||||
.valid(false)
|
||||
.build());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue