You can use ACTIVATION-GROUP attribute in your rules and put all of your rules in the same DT, for example (this does not include your third rule but you get the point ...)Can somebody help with my issue?
RuleTable FirstCalculation | ||||||
CONDITION | CONDITION | CONDITION | CONDITION | ACTION | ||
f1:Fact1 | f2:Fact2 | f3:Fact3 | f4:Fact4 | |||
part == $param | part == $param | part == $param | part == $param | f4.setPart($param);update(f4);drools.setFocus("secondaryRules"); | ||
FirstCalculation rules | Part Value | Part Value | Part Value | Part Value | Set part | |
Part Value | 1 | 2 | 3 | 0 | 4 | |
RuleTable SecondCalculation | ||||||
CONDITION | CONDITION | CONDITION | CONDITION | ACTIVATION-GROUP | ACTION | |
f1:Fact1 | f2:Fact2 | f4:Fact4 | f5:Fact5 | |||
part == $param | part == $param | part == $param | part == $param | f5.setPart($param);update(f5);System.out.println("You get the point..."); | ||
SecondCalculation rules | Part Value | Part Value | Part Value | Part Value | Set part | |
Part Value | 1 | 2 | 4 | 0 | secondaryRules | 4 |