Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-5062

Use reflection in generated models

XMLWordPrintable

    • 5
    • False
    • False
    • Undefined
    • 2021 Week 19-21 (from May 10), 2021 Week 22-24 (from May 31), 2021 Week 25-27 (from Jun 21)

      Models in processes have code-generated fromModel/toModel/update methods. These allow non-reflective conversion to maps; however

      1) conversion to Map is an implementation detail and it should not be exposed in the public API
      2) scaffolding the generated Model would open editing to end-users, which would have to maintain such methods manually

      at the beginning the decision to generated these methods was taken to avoid reflection completely; however, because reflection is being extensively used in other parts of the platform, it feels redundant to avoid doing it here.

      So, let's use reflection here as well, and let's just declare the model as "reflection-enabled" through the Quarkus extension.

            evacchi Edoardo Vacchi (Inactive)
            evacchi Edoardo Vacchi (Inactive)
            Marian Macik Marian Macik
            Marian Macik Marian Macik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: