Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5136

Compile error with String Map access and executable-model

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.35.0.Final
    • 7.34.0.Final
    • executable model
    • None
    • 2020 Week 10-12 (from Mar 2)
    • 4
    • NEW
    • NEW

      In case of executable-module, a Map constraint with a literal value on left hand side:

        Person("Value" == itemsString["Key"])
      

      generates redundant double-quotations hence results in a compile error.

      org.drools.modelcompiler.util.EvaluationUtil.areNullSafeEquals("Value", "_this.getItemsString().get("Key")")
      

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: