Skip to content

Commit

Permalink
Rebased + fixed conflict + updated versions in pom + EL scope
Browse files Browse the repository at this point in the history
  • Loading branch information
pvillard31 committed Apr 11, 2018
1 parent 3c2a33d commit b50ef82
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Expand Up @@ -46,7 +46,7 @@
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-reporting-utils</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.7.0-SNAPSHOT</version>
</dependency>
<!-- test dependencies -->
<dependency>
Expand Down
Expand Up @@ -69,7 +69,7 @@
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-avro-record-utils</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.7.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
Expand Down Expand Up @@ -102,7 +102,7 @@
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-mock-record-utils</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.7.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Expand Up @@ -46,6 +46,7 @@
import org.apache.nifi.components.ValidationResult;
import org.apache.nifi.components.Validator;
import org.apache.nifi.controller.status.ProcessGroupStatus;
import org.apache.nifi.expression.ExpressionLanguageScope;
import org.apache.nifi.flowfile.attributes.CoreAttributes;
import org.apache.nifi.processor.exception.ProcessException;
import org.apache.nifi.processor.util.StandardValidators;
Expand All @@ -72,7 +73,7 @@ public class SiteToSiteMetricsReportingTask extends AbstractSiteToSiteReportingT
.displayName("Application ID")
.description("The Application ID to be included in the metrics")
.required(true)
.expressionLanguageSupported(true)
.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)
.defaultValue("nifi")
.addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
.build();
Expand All @@ -82,7 +83,7 @@ public class SiteToSiteMetricsReportingTask extends AbstractSiteToSiteReportingT
.displayName("Hostname")
.description("The Hostname of this NiFi instance to be included in the metrics")
.required(true)
.expressionLanguageSupported(true)
.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)
.defaultValue("${hostname(true)}")
.addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
.build();
Expand Down

0 comments on commit b50ef82

Please sign in to comment.