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

distinct values() doesn't work for context items #771

Closed
saig0 opened this issue Dec 8, 2023 · 0 comments · Fixed by #908
Closed

distinct values() doesn't work for context items #771

saig0 opened this issue Dec 8, 2023 · 0 comments · Fixed by #908
Assignees
Labels
scope: Camunda 8 Required in the context of Camunda 8 support relates to a support case type: bug

Comments

@saig0
Copy link
Member

saig0 commented Dec 8, 2023

Describe the bug
The built-in function distinct values() doesn't filter duplicates for a list of context items.

distinct values([{x:1},{x:2},{x:1}])

To Reproduce
Steps to reproduce the behavior:

  1. Evaluate the expression
distinct values([{x:1},{x:2},{x:1}])
  1. Verify that the result contains {x:1} twice

Expected behavior
The function distinct values() should filter duplicates for a list of context items.

distinct values([{x:1},{x:2},{x:1}])
// [{"x":1},{"x":2}]

Environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: Camunda 8 Required in the context of Camunda 8 support relates to a support case type: bug
Projects
None yet
1 participant