How to control rule evaluation (or rule execution) stages in Drools?
问题 I know that "salience" in Drools provides control under rule execution sequence. But above is an example of the problem when "saliences" cannot help anymore that I've faced with. Here I have three rules being executed one after another: rule "Rule 1" salience 30 when then Resource resource1 = new Resource(); resource1.setName("Resource 1"); resource1.setAmount("5"); insert(resource1); System.out.println("First"); end rule "Rule 2" salience 20 //no-loop (interesting, it doesn't lead to a loop)