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

Open
saig0 opened this issue Dec 8, 2023 · 0 comments
Open

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

saig0 opened this issue Dec 8, 2023 · 0 comments
Labels
scope: Camunda 8 Required in the context of Camunda 8 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

  • FEEL engine version: 1.17.3
  • Affects:
    • Camunda Automation Platform 7: [7.x]
    • Zeebe broker: 8.3.3
@saig0 saig0 added type: bug scope: Camunda 8 Required in the context of Camunda 8 labels Dec 8, 2023
@saig0 saig0 changed the title distinct values() doesn't work for context entries distinct values() doesn't work for context items Dec 8, 2023
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 type: bug
Projects
None yet
Development

No branches or pull requests

1 participant