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

NamedConsequence if-else in a row with exec-model

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.56.0.Final
    • 7.54.0.Final
    • executable model
    • None
    • 2021 Week 22-24 (from May 31)
    • 3
    • Undefined
    • NEW
    • NEW

      rule R when
        $r : Result()
        $p1 : Person()
        if (name == "Mark") do[Mark]
        else if (name == "Edson") do[Edson]
        if (age == 35) do[Age35]
        else if (age == 37) do[Age37]
      then
        ...
      

      fails with the error:

      [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=r0.drl, line=-1, column=0
         text=Related pattern cannot be found for if ( age == 35 ) do[Age35] else if ( age == 37 ) do[Age37]]]
      

            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: