-
Notifications
You must be signed in to change notification settings - Fork 197
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
Support line breaks for FEEL statements #879
Comments
Thanks for opening this issue. What you found is a grammar bug. The same statement works properly, if indented or wrapped in brackets:
|
Moving this back to backlog for the time being. I was not able to follow-up. |
I'm taking a timeboxed stab at this. |
I made significant progress on this issue today but was not able to fully complete it. Under the hood this is actually a non-trivial topic. For historical reasons, being tricked by old versions of the DMN spec The solution we chose is to put the parser in full DMN FEEL 1.5 compat mode, parsing single expressions only (nikku/lezer-feel@6389057#diff-3410025680394470cd4d356b9dad20b8a39c090592049243a50866cb6d556677, https://github.com/nikku/lezer-feel/blob/master/CHANGELOG.md#100). This implied downstream changes in all supporting libraries. What is missing is integration into our editing stack:
|
Fixed upstream via bpmn-io/properties-panel#254. |
Is your feature request related to a problem? Please describe.
When writing FEEL expressions, it often is handy to split them across multiple lines.
For example:
rather than
which is hard to read.
When writing multiline statements, the modeler explicitly persists the lineBreaks. E.g.,:
According to my local testing, this works just fine with the Engine.
However, the Modeler itself will expliticly complain, that this statement is not valid.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: