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

NamedConsequence if-else in a row with exec-model

    XMLWordPrintable

Details

    • 2021 Week 22-24 (from May 31)
    • 3
    • NEW
    • NEW

    Description

      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]]]
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: