camunda/feel-scala

union() doesn't work for context items

Opened this issue · 0 comments

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

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

To Reproduce
Steps to reproduce the behavior:

  1. Evaluate the expression
union([{x:1},{x:2},{x:1}])
  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},{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