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

Failed to recognize method with parameter on fact during unmarshalling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Minor
    • None
    • 7.73.0.Final
    • executable model
    • None
    • 2022 Week 38-40 (from Sept 19), 2022 Week 41-43 (from Oct 10)
    • Hide

      Check the PR.

      Show
      Check the PR.
    • Low
    • NEW
    • NEW
    • ---
    • ---

    Description

      Hi, I'm not sure if I put this issue in the right component.

      Considering the below DRL. Parent is a fact type and methodToGetChild1 is a method in this fact class :

      package org.mortgages;
      rule "test"
      dialect "mvel"
      when
              Parent(methodToGetChild1("IAmAParameter") > 5 )
      then
      end
      

      When calling

      RuleModelDRLPersistenceImpl.getInstance().unmarshal
      

      on this drl, the method 'methodToGetChild1' is recognized as field instead of fact method. This is due to expression detection. Cf linked pull request.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            nicko466 nicolas H (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: