Apache NiFi Expression Language guidePDF version

startsWith

Description: Returns true if the Subject starts with the String provided as the argument, false otherwise.

Subject Type: String

Arguments:

  • value : The value to search for

Return Type: Boolean

Examples: If the "filename" attribute has the value "a brand new filename.txt", then the Expression ${filename:startsWith('a brand')} will return true. ${filename:startsWith('A BRAND')} will return false. ${filename:toUpper():startsWith('A BRAND')} returns true.

We want your opinion

How can we improve this page?

What kind of feedback do you have?