Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Zeebe/FEEL]: Add is blank(string) function #22380

Open
jonathanlukas opened this issue Sep 17, 2024 · 1 comment
Open

[Zeebe/FEEL]: Add is blank(string) function #22380

jonathanlukas opened this issue Sep 17, 2024 · 1 comment
Labels
component/zeebe Related to the Zeebe component/team kind/feature Categorizes an issue or PR as a feature, i.e. new behavior

Comments

@jonathanlukas
Copy link
Contributor

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 the trim(string) function for that. But still, it has to be combined with a string length(string) to check whether the original string is blank, resulting in string length(trim(string)) = 0. All of this could be replaced with is blank(string).

Describe the solution you'd like

I would like to have a feel function (camunda extension) that is called is blank, takes a string as an argument and checks whether this string 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

@jonathanlukas jonathanlukas added kind/feature Categorizes an issue or PR as a feature, i.e. new behavior component/zeebe Related to the Zeebe component/team labels Sep 17, 2024
@saig0
Copy link
Member

saig0 commented Sep 20, 2024

Our Camunda champion contributed the function to the FEEL engine: camunda/feel-scala#927. The function will be available with the new release of the FEEL engine (1.19.0).

Follow-up task: We need to add the documentation of the new function (ref).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/zeebe Related to the Zeebe component/team kind/feature Categorizes an issue or PR as a feature, i.e. new behavior
Projects
None yet
Development

No branches or pull requests

2 participants