[Zeebe/FEEL]: Add is blank(string)
function
#22380
Labels
component/zeebe
Related to the Zeebe component/team
kind/feature
Categorizes an issue or PR as a feature, i.e. new behavior
Is your feature request related to a problem? Please describe.
Checking whether a string is null is easy. Checking whether a string is blank is much harder. One could start replacing spaces and line breaks. The
8.6
, we will have thetrim(string)
function for that. But still, it has to be combined with astring length(string)
to check whether the original string is blank, resulting instring length(trim(string)) = 0
. All of this could be replaced withis blank(string)
.Describe the solution you'd like
I would like to have a feel function (camunda extension) that is called
is blank
, takes astring
as an argument and checks whether thisstring
is blank. Should work like this: https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isBlank(java.lang.CharSequence).Describe alternatives you've considered
The alternative is described above, a lengthy function combining two other functions.
Additional context
Slack thread: https://camunda.slack.com/archives/C01QYD808A3/p1726483246619779
The text was updated successfully, but these errors were encountered: