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
A missing variable/nested property can not be handled #4212
Comments
Current workaround:
|
I'd like to re-evaluate the priority of this issue. |
@korthout this is a big issue, we avoided upgrading because of this. some examples we ended up with but felt like it's way to compex to be used:
btw, in general, it's very annoying that Zeebe fails when accessing a nonexisting variable, this makes it very hard to ask if "foo.bar.baz" exists in gateways and such. Thanks. |
@asaf, thank you for your input. We'll work on this soon. My idea is to use the
If the value or nested property is accessed without Do you have any proposals for your other examples? |
@saig0 I think that fixing null equality is top priority If you can't do it, then at least |
@saig0 per your last comment, please pay attention that in case
will cause an error that x context does not contain y. this behavior blocks checking |
Open PR: camunda/feel-scala#176 |
Will this be fixed by #5355? |
I'll open a new PR. I need to add some integration code :) |
5432: [Backport 0.24] Fix flaky test: MultiInstanceActivityTest.shouldTriggerInterruptingBoundaryEvent r=saig0 a=korthout ## Description Backports: #5427 Fix flaky test: MultiInstanceActivityTest.shouldTriggerInterruptingBoundaryEvent ## Related issues closes #5097 ## Definition of Done _Not all items need to be done depending on the issue and the pull request._ Code changes: * [ ] The changes are backwards compatibility with previous versions * [x] If it fixes a bug then PRs are created to [backport](https://github.com/zeebe-io/zeebe/compare/stable/0.24...develop?expand=1&template=backport_template.md&title=[Backport%200.24]) the fix to the last two minor versions Testing: * [ ] There are unit/integration tests that verify all acceptance criterias of the issue * [ ] New tests are written to ensure backwards compatibility with further versions * [ ] The behavior is tested manually * [ ] The impact of the changes is verified by a benchmark Documentation: * [ ] The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.) * [ ] New content is added to the [release announcement](https://drive.google.com/drive/u/0/folders/1DTIeswnEEq-NggJ25rm2BsDjcCQpDape) Co-authored-by: Nico korthout <nico.korthout@camunda.com> ## Description <!-- Please explain the changes you made here. --> ## Related issues <!-- Which issues are closed by this PR or are related --> closes # ## Definition of Done _Not all items need to be done depending on the issue and the pull request._ Code changes: * [ ] The changes are backwards compatibility with previous versions * [ ] If it fixes a bug then PRs are created to [backport](https://github.com/zeebe-io/zeebe/compare/stable/0.24...develop?expand=1&template=backport_template.md&title=[Backport%200.24]) the fix to the last two minor versions Testing: * [ ] There are unit/integration tests that verify all acceptance criterias of the issue * [ ] New tests are written to ensure backwards compatibility with further versions * [ ] The behavior is tested manually * [ ] The impact of the changes is verified by a benchmark Documentation: * [ ] The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.) * [ ] New content is added to the [release announcement](https://drive.google.com/drive/u/0/folders/1DTIeswnEEq-NggJ25rm2BsDjcCQpDape) 5440: [Backport 0.24] Dump feel-scala from 1.11.2 to 1.12.2 r=saig0 a=saig0 ## Description Backport of #5392 ## Related issues closes #5140 closes #4212 Co-authored-by: Nico korthout <nico.korthout@camunda.com> Co-authored-by: Philipp Ossler <philipp.ossler@gmail.com>
Describe the bug
In an expression, a missing variable or a non-existing nested property can not be handled. It is handled as a failure (i.e.
ValError
) in the FEEL engine. Some boolean expressions, like an equal comparison (e.g.= x = "here"
), can deal with it and returnsfalse
.But it is not possible to check if a value/property is missing using the
null
value. For example,This behavior is not intuitive.
To Reproduce
x != null
Expected behavior
A missing variable/nested property can be compared to
null
and returnstrue
.Alternatively, provide a method to check if a variable/property is not present (e.g.
isPresent(x)
).Environment:
The text was updated successfully, but these errors were encountered: