Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-14312

FEEL Engine fails to extract a property of a list of contexts (list projection)

XMLWordPrintable

      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):

      1. Override/replace the FEEL Engine with version 1.14.1 manually by using the shaded artifact feel-engine-1.14.1-scala-shaded.jar
      2. Bump FEEL Engine to a version >= 1.14.1
      3. 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

              tassilo.weidner Tassilo Weidner
              tassilo.weidner Tassilo Weidner
              Tassilo Weidner Tassilo Weidner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: