[
https://issues.apache.org/jira/browse/NIFI-1826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15280163#comment-15280163
]
ASF subversion and git services commented on NIFI-1826:
-------------------------------------------------------
Commit 3f373c1faae38a0bfff2e7ee4d55469eb34873b2 in nifi's branch refs/heads/0.x
from [~pvillard]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=3f373c1 ]
NIFI-1826 Expression Language: add function to check enumerator
Signed-off-by: Matt Burgess <[email protected]>
> Expression Language: add function to check enumerator
> -----------------------------------------------------
>
> Key: NIFI-1826
> URL: https://issues.apache.org/jira/browse/NIFI-1826
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Affects Versions: 0.6.1
> Reporter: Pierre Villard
> Assignee: Pierre Villard
> Priority: Minor
> Fix For: 1.0.0, 0.7.0
>
>
> It would be useful to add a function returning true if a string is in a list
> of arguments and false otherwise.
> Example:
> {noformat}
> if ${myEnum} = "JOHN"
> then
> ${myEnum:in("PAUL", "JOHN", "MIKE")} returns true
> and
> ${myEnum:in("RED", "GREEN", "BLUE")} returns false
> {noformat}
> This would be particularly useful in RouteAttribute processor to perform
> conformity verifications on flow files.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)