0 Replies Latest reply on Sep 25, 2018 4:27 AM by iswaryam m

    Drools decision table

    iswaryam m Newbie

      Can some one tell me how to use for loop and arraylist in drools decision table?

      The keyword "from" which we use in drl file is showing the below error during build.

      [ERR 102] Line 105:51 mismatched input 'from' in rule "knowTaxCode_21"

      RuleSettaxCodeRules
      importcom.petco.taxcode.LineItem, com.petco.taxcode.LineItems
      Sequential"true"
      RuleTable knowTaxCode
      NAMECONDITIONACTION
      LineItem

      $lineItm : LineItem() from response.lineItems

      eval($lineItm.getDepartmentId == $param)"

      $lineItm.setTaxCode("$param");
      Department IDTax code
      10PTFD
      12PTFD
      14PTFD
      16PTFD
      18PTFD
      19PTFD
      23PTFD
      24PTFD
      40PTFD
      42PTFD
      44PTFD
      54PTFD
      55PTFD
      Variablescom.petco.taxcode.LineItems response