Environment (Required on creation):
- Any Camunda Platform version that uses the FEEL Scala Engine in version >= 1.13.2 and <= 1.14.0
- This bug is a regression introduced in version 1.13.2. The expression worked in previous versions of the FEEL engine.
- The C7 engine uses FEEL Scala Engine version 1.12.4 and 1.13.3
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
The evaluation of a path expression fails if the value is a list of contexts (i.e. a list projection).
Steps to reproduce (Required on creation):
Evaluate the following FEEL Expression:
feel("{ val: flatten(for x in [\"1\",\"2\", \"3\"] return x) }")
Observed Behavior (Required on creation):
The following error is thrown:
> Failure(failed to parse expression '{ val: flatten(for x in ["1","2", "3"] return x) }': Expected (filterContinuation | pathContinuation | end-of-input):1:50, found "}")
Expected behavior (Required on creation):
The expression returns Map(val -> List(1, 2, 3))
Root Cause (Required on prioritization):
See https://github.com/camunda/feel-scala/pull/385
Solution Ideas (Optional):
- Override/replace the FEEL Engine with version 1.14.1 manually by using the shaded artifact feel-engine-1.14.1-scala-shaded.jar
- Bump FEEL Engine to a version >= 1.14.1
- Backport the fix to 1.13, release a patch, and bump the FEEL Engine version
Hints (optional):
-
This is the controller panel for Smart Panels app
- causes
-
CAM-14356 Bump FEEL Scala Engine to >= 1.14.2
- Closed