NIFI-13736 Updated Expression Language Guide join function example (#9256)

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
markobean 2024-09-14 16:07:48 -04:00 committed by GitHub
parent 80b3cde95c
commit 9b7b246dcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -2865,14 +2865,14 @@ provides several functions for evaluating the same conditions against groups of
*Return Type*: [.returnType]#String#
*Examples*: Given that the "abc" attribute contains the value "hello world", "xyz" contains "good bye world",
and "filename" contains "file.txt" consider the following examples:
*Examples*: Given that the "abc" attribute contains the value "hello world", "xyz" contains "goodbye world",
consider the following examples:
.join Examples
|=======================================================================================
| Expression | Value
| `${allMatchingAttributes("[ax].*"):substringBefore(" "):join("-")}` | `hello-good`
| `${allAttributes("abc", "xyz"):join(" now")}` | `hello world nowgood bye world now`
| `${allMatchingAttributes("[ax].*"):substringBefore(" "):join("-")}` | `hello-goodbye`
| `${allAttributes("abc", "xyz"):join(" now ")}` | `hello world now goodbye world`
|=======================================================================================