Skip to content

Commit

Permalink
NIFI-13736 Updated Expression Language Guide join function example (#…
Browse files Browse the repository at this point in the history
…9256)

Signed-off-by: David Handermann <exceptionfactory@apache.org>
  • Loading branch information
markobean committed Sep 14, 2024
1 parent 80b3cde commit 9b7b246
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nifi-docs/src/main/asciidoc/expression-language-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`
|=======================================================================================


Expand Down

0 comments on commit 9b7b246

Please sign in to comment.