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"
RuleSet | taxCodeRules | |
import | com.petco.taxcode.LineItem, com.petco.taxcode.LineItems | |
Sequential | "true" | |
RuleTable knowTaxCode | ||
NAME | CONDITION | ACTION |
LineItem | ||
$lineItm : LineItem() from response.lineItems eval($lineItm.getDepartmentId == $param)" | $lineItm.setTaxCode("$param"); | |
Department ID | Tax code | |
10 | PTFD | |
12 | PTFD | |
14 | PTFD | |
16 | PTFD | |
18 | PTFD | |
19 | PTFD | |
23 | PTFD | |
24 | PTFD | |
40 | PTFD | |
42 | PTFD | |
44 | PTFD | |
54 | PTFD | |
55 | PTFD | |
Variables | com.petco.taxcode.LineItems response |