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

Decision Table (XLS) should support fixed conditions, such as SeatDesignation(isNeighborOf($guest))

    XMLWordPrintable

Details

    Description

      This DT should work:

      CONDITION CONDITION ACTION
      $guest : SeatDesignation() $neighbor : SeatDesignation(isNeighborOf($guest))
      guestName == "$param" guestName == "$param" doSomething();

      It crashes because of the "SeatDesignation(isNeighborOf($guest))". Only empty parenthesis are allowed.

      Failing workaround 1: This workaround (as specified by the docs), does NOT work well, because it adds the same condition (isNeighborOf($guest)) multiple times in the same rule:

      CONDITION CONDITION CONDITION ACTION
      $guest : SeatDesignation() $neighbor : SeatDesignation()
      guestName == "$param" isNeighborOf($guest), guestName == "$param" isNeighborOf($guest), guestAge == "$param" doSomething();

      Failing workaround 2: Adding an extra, hidden column with that condition does not work when new rows are added because condition columns with an empty cell are ignored.

      Attachments

        Activity

          People

            manstis@redhat.com Michael Anstis
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: