-
Notifications
You must be signed in to change notification settings - Fork 51
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
Assert that a variable is not null #675
Comments
@camunda/zeebe-process-automation please have a look at this proposal and share your thoughts. |
So If I understand correct, the My preference would go to the second option. That way it's not limited to just |
@saig0 how would you see the priority of this? Is this something that we can prioritize after 8.3 release? |
No. This should be part of the 8.3 release. If a user relies on the current behavior (i.e. raise an incident if a variable is not present), this new function would be the way to have a similar behavior in version 8.3. In my PoV, it is part of the migration path to the new version. Otherwise, we change the behavior in version 8.3 and the users have no chance to keep the old behavior. The implementation effort for adding this new function is low. I assume that it should not take more than a day for a dev to implement it. |
@saig0 thank you for the explanation! I'll add this to the ZPA board to prioritize before 8.3 CC: @abbasadel |
Moving this to Backlog as the size is assigned and it is upcoming. |
Is your feature request related to a problem? Please describe.
The engine's behavior for non-existing variables will change with #582 and #674. Instead of failing the evaluation, a non-existing variable will be replaced with
null
.So, the evaluation will be
null
-friendly. If the engine can't evaluate the expression successfully, it will returnnull
.This behavior is aligned with the DMN spec. However, there could be cases that require a verification that a variable exists or is not
null
.A special case is the migration of existing expression to the new behavior. For example, if a process uses an expression and assumes that the expression fails if the variable doesn't exist (e.g. on an output variable mapping).
Describe the solution you'd like
Add a new built-in function to verify that a variable or value is not
null
.Or, a more general built-in function to verify that a condition is met.
Related issues
The text was updated successfully, but these errors were encountered: