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

union() doesn't work for context items #772

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

union() doesn't work for context items #772

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 union doesn't filter duplicates for a list of context items.

union([{x:1},{y:2}],[{x:1}, {z:3}])

To Reproduce
Steps to reproduce the behavior:

  1. Evaluate the expression
union([{x:1},{y:2}],[{x:1}, {z:3}])
  1. Verify that the result contains {x:1} twice

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

union([{x:1},{y:2}],[{x:1}, {z:3}])
// [{"x":1},{"y":2}, {"z":3}]

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