nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jskora <>
Subject [GitHub] nifi pull request: NIFI-1661 add random() function to expression l...
Date Sun, 17 Apr 2016 20:19:56 GMT
Github user jskora commented on the pull request:
    This looks pretty good, but in testing I came across 2 problems that need to be addressed
before it can be merged.
    1. The example in the [expression language guide](
should be `${random():mod(10):plus(1)}` since EL uses [plus](
for addition.
    1. Though Math.Random appears to only return positive floats, `nextLong()` must be returning
positive and negative numbers.  Using the example expression I get numbers between -100 and
100 showing in the attributes.  The documentation should reflect that this could be positive
or negative and the example needs to be adjusted for that as well.
    In spite of the problems, nice job incorporating the EL Guide changes!

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message