--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_EStdURD1DgwvwJA99azP%2BbaCaZbn0ETX6V1A3VdfMahg%40mail.gmail.com.
It is possible to change the rules, both in version 6 and version 7. It can even work for existing running stateful sessions.
Mark
On Thu, Apr 26, 2018 at 4:45 PM, José Alexandre D'Abruzzo Pereira <jos...@gmail.com> wrote:
It seems it is not supposed to change the rules at runtime in previous versions of Drools: https://stackoverflow.com/questions/22205945/drools-6-add-rules-to-a-running-kiesessionI'm using Drools 7. Is it still the same? I created a new sessions with the new rules, but I'm not sure if this is the right approach.Do you have any suggestions?
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_EStdURD1DgwvwJA99azP%2BbaCaZbn0ETX6V1A3VdfMahg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CA%2BWXhSyC%3DpD1vNNLsbSY-rahO7d-pSpvYpnJ_Znepcjtj__3eQ%40mail.gmail.com.
Thank you, Mark!How can I do that without destroying the session? In other words, I want to add new rules without changing the objects that I have in the working memory.
On Thu, Apr 26, 2018 at 10:17 PM Mark Proctor <mdpr...@gmail.com> wrote:
It is possible to change the rules, both in version 6 and version 7. It can even work for existing running stateful sessions.
Mark
On Thu, Apr 26, 2018 at 4:45 PM, José Alexandre D'Abruzzo Pereira <jos...@gmail.com> wrote:
It seems it is not supposed to change the rules at runtime in previous versions of Drools: https://stackoverflow.com/questions/22205945/drools-6-add-rules-to-a-running-kiesessionI'm using Drools 7. Is it still the same? I created a new sessions with the new rules, but I'm not sure if this is the right approach.Do you have any suggestions?
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_EStdURD1DgwvwJA99azP%2BbaCaZbn0ETX6V1A3VdfMahg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CA%2BWXhSyC%3DpD1vNNLsbSY-rahO7d-pSpvYpnJ_Znepcjtj__3eQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_Fdg5S%2B%3DrrhU0_FHWJSX%3Dou-gU2W15swfbWzz-%2BpyyLxg%40mail.gmail.com.
Just call updateToVersion on the kiecontianer, the rest is magic ;)Mark
On Fri, Apr 27, 2018 at 2:04 PM, José Alexandre D'Abruzzo Pereira <jos...@gmail.com> wrote:
Thank you, Mark!How can I do that without destroying the session? In other words, I want to add new rules without changing the objects that I have in the working memory.
On Thu, Apr 26, 2018 at 10:17 PM Mark Proctor <mdpr...@gmail.com> wrote:
It is possible to change the rules, both in version 6 and version 7. It can even work for existing running stateful sessions.
Mark
On Thu, Apr 26, 2018 at 4:45 PM, José Alexandre D'Abruzzo Pereira <jos...@gmail.com> wrote:
It seems it is not supposed to change the rules at runtime in previous versions of Drools: https://stackoverflow.com/questions/22205945/drools-6-add-rules-to-a-running-kiesessionI'm using Drools 7. Is it still the same? I created a new sessions with the new rules, but I'm not sure if this is the right approach.Do you have any suggestions?
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_EStdURD1DgwvwJA99azP%2BbaCaZbn0ETX6V1A3VdfMahg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CA%2BWXhSyC%3DpD1vNNLsbSY-rahO7d-pSpvYpnJ_Znepcjtj__3eQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_Fdg5S%2B%3DrrhU0_FHWJSX%3Dou-gU2W15swfbWzz-%2BpyyLxg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CA%2BWXhSz5CJrXZoDJU5%3DK8%3DvWCeOEySk4KUf_Knjn%2BHenhMuXNA%40mail.gmail.com.
Mark
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_EStdURD1DgwvwJA99azP%2BbaCaZbn0ETX6V1A3VdfMahg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CA%2BWXhSyC%3DpD1vNNLsbSY-rahO7d-pSpvYpnJ_Znepcjtj__3eQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_Fdg5S%2B%3DrrhU0_FHWJSX%3Dou-gU2W15swfbWzz-%2BpyyLxg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CA%2BWXhSz5CJrXZoDJU5%3DK8%3DvWCeOEySk4KUf_Knjn%2BHenhMuXNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_GE0%3D4F%2Bqtc%2BYxUfjNCTuLbQ-p4Z1_AUdSMcPQ_rMJ5Tw%40mail.gmail.com.
Mark
Mark
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_EStdURD1DgwvwJA99azP%2BbaCaZbn0ETX6V1A3VdfMahg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CA%2BWXhSyC%3DpD1vNNLsbSY-rahO7d-pSpvYpnJ_Znepcjtj__3eQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_Fdg5S%2B%3DrrhU0_FHWJSX%3Dou-gU2W15swfbWzz-%2BpyyLxg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CA%2BWXhSz5CJrXZoDJU5%3DK8%3DvWCeOEySk4KUf_Knjn%2BHenhMuXNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANfAs_GE0%3D4F%2Bqtc%2BYxUfjNCTuLbQ-p4Z1_AUdSMcPQ_rMJ5Tw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CA%2BWXhSy_rN6pQ%2BpnJpJY2oV4FcCgyLpj-uuA3O56ihhCM-z34g%40mail.gmail.com.
KieServices kieServices = KieServices.Factory.get();
ReleaseId releaseId = kieServices.newReleaseId("org.acme", "myartifact", "1.0-SNAPSHOT");
KieContainer kContainer = kieServices.newKieContainer( releaseId );
// Start the KieScanner polling the Maven repository every 10 seconds
kScanner.start( 10000L );