Hi, Is it possible to add a Rule or RuleSet to the current active WorkingMemory at runtime?
The idea behind is, that i have a set of rules (Rule-Templates) which can be "activated" for an user. Most of the rules have parameters the user should be able to change. Example condition: customer.getCreditLimit == ? One user would like to know if the credit limit is 1500, another if it is 2000. The users should able to add their configured rules at runtime. How i understand drools, it isn't possible without creating a new WorkingMemory from the updated RuleBase. Is this correct? My suggestion for this kind of problem is to handle the parameter of the rule as a fact. The Condition then will look like: customer.getCreditLimit() == ruleParameter Any user who wants to use this rule, can add his parameter as a fact. assertObject(ruleParameter); Whats your opinion about this? Any other ideas? Thanks and Regards, Kai
