Andy LoPresto created NIFI-1670:
-----------------------------------

             Summary: Expression Language documentation should be clarified for 
isEmpty and allAttributes
                 Key: NIFI-1670
                 URL: https://issues.apache.org/jira/browse/NIFI-1670
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Documentation & Website
    Affects Versions: 0.6.0
            Reporter: Andy LoPresto
            Priority: Minor


The documentation for {{isEmpty}} and {{allAttributes}} should be reviewed for 
correctness and clarity as pointed out by a member of the mailing list. 

>From the mailing list:

From: Paul Nahay <[email protected]>
Subject: Errors in your Documentation
Date: March 22, 2016 at 5:52:10 AM PDT
To: [email protected]
Cc: Jonathan Wood <[email protected]>
Reply-To: [email protected]
Reply-To: Paul Nahay <[email protected]>

I'm looking at:

https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html

isEmpty
Description: The isEmpty function returns true if the Subject is null or 
contains only white-space (new line, carriage return, space, tab), false 
otherwise.

This logically implies that isEmpty returns FALSE if the Subject contains NO 
CHARACTERS AT ALL (not even white-space). This makes no sense at all.

allAttributes
Description: Checks to see if any of the given attributes, match the given 
condition.

Hopefully you actually mean "all", not "any".

What's funny here is that THESE TWO functions were the ones I initially needed, 
and your documentation has errors for BOTH of them. I'll expect then to find 
more errors in your documentation, and will report them to you as I find them. 

Feedback confirming the errors will be appreciated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to