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

Wrongly parse method chain in modify block in executable model

XMLWordPrintable

    • 2020 Week 13-15 (from Mar 23)
    • 3
    • Workaround Exists
    • NEW
    • NEW

      declare Application
          categories                    : Set        = new HashSet()
      end
      

      Then I had a modify statement scattered about:

      modify ($a) {
         $a.getCategories().add("hello");
      }
      

      The ExecutableModel did not seem to like any of those. I changed it to:

      $a.getCategories().add("hello");
      update($a);
      

            rhn-support-tkobayas Toshiya Kobayashi
            lmolteni@redhat.com Luca Molteni
            Daniel Rosa Daniel Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: