HonorGod wrote:
Can somebody help with my issue?
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 ...)
Look at the ACTION column of the first rule which is in the default
activation group, it has drools.setFocus("XYZ"); which will activate
the second. Hope this helps:
|
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 |
|
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users