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

When a condition cell value in a decision table is terminated with a '?' take the value as it is without appending any parameter

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • None
    • None
    • decision tables
    • None
    • 2020 Week 43-45 (from Okt 19)
    • Undefined
    • NEW
    • NEW
    • ---
    • ---

    Description

      For instance with the attached dtable it should produce the following drl

      package org.drools.simple.candrink;
      //generated from Decision Table
      import org.kie.kogito.quickstart.*;
      // rule values at A11, header at A6
      rule "_11"
      	when
      		$r : Result()
      		$p : Person(age < 18, name == "Matteo")
      	then
      		$r.setValue( $p.getName() + " can NOT drink");
      end// rule values at A12, header at A6
      rule "_12"
      	when
      		$r : Result()
      		$p : Person(age < 18, name == "Mario")
      	then
      		$r.setValue( $p.getName() + " can drink");
      end// rule values at A13, header at A6
      rule "_13"
      	when
      		$r : Result()
      		$p : Person(age >= 18)
      	then
      		$r.setValue( $p.getName() + " can drink");
      end
      

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              mfusco@redhat.com Mario Fusco
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: