I'm looking for an API to update a Drools rule. I'm not really looking to add / delete rules from the knowledgebase. What am I trying to do, if I have a Dorol rule definition, then I would like to update some information in the Dorosal Rule. Example: If I have the Dorol rule that looks down and I load it:
rule "good bye" quote "java" when message (message == message. Hllo, message: Message) then message.setStatus ("Hello World");
I would like to change the rule definition to:
rule "good bye" quote "java" when message (status == message .holo, Message: message) then message.setStatus ("BY BY BY World"); End
Is there an API that creates / reads / updates itself for the actual Horoscope Rule definition? Please tell me
short answer: no. There is no such API.
Depending on the modifications you want to apply, there are some patterns you can follow for your example, you can set the situation that you want to use in the global Are there.
global string position; The rule "good goodbye" quote "Java" when message (status == message. Hello, message: message) then message .customs (status);
/ html>
No comments:
Post a Comment