Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-673

Inherited Rules' LHS variables in sub-rules KIE WORKBENCH 6.3.0

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • Backlog
    • None
    • Data Model Oracle
    • None

      I found that when I have 2 rules, second one inheriting from the first one in KIE Workbench 6.3.0, I can't use in the second rule the variable declared in the first rule.

      rule "rule1"
          dialect "java"
          when
              patientSheet : Sheet( RE > 0 && HER2 < 0 && ( KIE67 > 14 || RP < 20 || grad == 3 ))
          then
      end
      
      rule "rule2" extends "rule1"
          dialect "java"
          when
              Sheet( RP >= 50 && RE >= 50 && tumorDimension <= 2 && ( pN == "pN0" || pN == "pN1mic" ))
          then
              patientSheet.setTreatment( "Therapy1" );
      end
      
      

      In the example above, I can't refer to the "patientSheet" declared in the rule that I extend. Also, on the RHS of the second rule I have to write free DRL to set a property of "patientSheet".

            Unassigned Unassigned
            mariuslazar93 Marius Lazar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: