kevinbsilva commented on a change in pull request #4605:
URL: https://github.com/apache/nifi/pull/4605#discussion_r505928874
##########
File path:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/MonitorActivity.java
##########
@@ -242,7 +243,7 @@ private boolean shouldReportOnlyOnPrimary(boolean
isClusterScope, final ProcessC
@Override
public void onTrigger(final ProcessContext context, final ProcessSession
session) {
- final long thresholdMillis =
context.getProperty(THRESHOLD).asTimePeriod(TimeUnit.MILLISECONDS);
+ final long thresholdMillis =
context.getProperty(THRESHOLD).evaluateAttributeExpressions().asTimePeriod(TimeUnit.MILLISECONDS);
Review comment:
Added Evaluation for Attribute Expressions (Threshold Duration property)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]