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

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: decision tables
    • Labels:
      None
    • Sprint:
      2020 Week 43-45 (from Okt 19)
    • Docs QE Status:
      NEW
    • QE Status:
      NEW
    • [QE] How to address?:
      ---
    • [QE] Why QE missed?:
      ---

      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

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

                Dates

                Created:
                Updated:
                Resolved: