From pgconreaux at gmail.com Thu Dec 8 19:40:30 2016 From: pgconreaux at gmail.com (Patrick Conreaux) Date: Thu, 8 Dec 2016 18:40:30 -0600 Subject: [rules-users] Compiled template rule ordering Message-ID: Hi, I am attempting to compile a rule template and expecting the resulting rules to preserve the ordering of the template and of the rows in the CSV file. However, it doesn't appear that ordering is preserved. Is this a bug, or is there a workaround? I would like to rely on the implicit top-down salience by having rules in a specified order within the same file. (I'm aware that mutually exclusive rules are preferred, but this greatly complicates maintaining the rules for my use case, as does maintaining salience values.) Using the (slightly-modified) cheese example, this template... template header age type log package org.drools.examples.templates; global java.util.List list; rule "first rule" when eval(true) then System.out.println("first rule"); end template "cheesefans" rule "Cheese fans_@{row.rowNumber}" when Person(age == @{age}) Cheese(type == "@{type}") then list.add("@{log}"); end end template rule "last rule" when eval(true) then System.out.print("last rule"); end ...results in the following output, where the first and last rule appear at the top followed by the template rules in *reverse *row order. Any suggestions to achieve the desired order? package org.drools.examples.templates; global java.util.List list; rule "first rule" when eval(true) then System.out.println("first rule"); end rule "last rule" when eval(true) then System.out.print("last rule"); end rule "Cheese fans_3" when Person(age == Really old guy) Cheese(type == "65") then list.add("provolone"); end rule "Cheese fans_2" when Person(age == Young guy) Cheese(type == "21") then list.add("cheddar"); end rule "Cheese fans_1" when Person(age == Old guy) Cheese(type == "42") then list.add("stilton"); end Cheers, Patrick -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20161208/5f5e2498/attachment.html From nalini.ranjan at socgen.com Tue Dec 20 08:09:32 2016 From: nalini.ranjan at socgen.com (RANJAN Nalini) Date: Tue, 20 Dec 2016 13:09:32 +0000 Subject: [rules-users] Need help in drool workbench Message-ID: <01285820A6F40F49ACEE15283E3C22223CAF35BB@MMXBLR601.hermes.si.socgen> Hi Team, Hope you are doing good.. We are new in drool workbench and we are planning to use drools workbench for our upcoming project.. This development we are going to do across different region.. Currently we have common drools workbench which hosted in one PC...Major issue which we are facing is that whenever we do modification from one region and its break to other region development.. Is there any way to do our development without impacting to other region code ?. Do we have any mechanism to disable rule which has been written by one developer and it can be enable only when flag will be true(like toggle features) ? Regards, Nalini Ranjan ========================================================= Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes par le secret professionnel. Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee interdite. Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme falsifie. ========================================================= This message and any attachments (the "message") are confidential, intended solely for the addresses, and may contain legally privileged information. Any unauthorized use or dissemination is prohibited. E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ========================================================= -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20161220/c69384dc/attachment-0001.html From michael.anstis at gmail.com Tue Dec 20 08:15:49 2016 From: michael.anstis at gmail.com (Michael Anstis) Date: Tue, 20 Dec 2016 13:15:49 +0000 Subject: [rules-users] Need help in drool workbench In-Reply-To: <01285820A6F40F49ACEE15283E3C22223CAF35BB@MMXBLR601.hermes.si.socgen> References: <01285820A6F40F49ACEE15283E3C22223CAF35BB@MMXBLR601.hermes.si.socgen> Message-ID: Can you explain how one region manages to break an others rules!? On 20 December 2016 at 13:09, RANJAN Nalini wrote: > Hi Team, > > > > Hope you are doing good.. > > > > We are new in drool workbench and we are planning to use drools workbench > for our upcoming project.. > > > > This development we are going to do across different region.. > > > > Currently we have common drools workbench which hosted in one PC?Major > issue which we are facing is that whenever we do modification from one > region and its break to other region development.. > > > > Is there any way to do our development without impacting to other region > code ?. > > > > Do we have any mechanism to disable rule which has been written by one > developer and it can be enable only when flag will be true(like toggle > features) ? > > > > > > *Regards,* > > *Nalini Ranjan* > > > > ========================================================= > > Ce message et toutes les pieces jointes (ci-apres le "message") > sont confidentiels et susceptibles de contenir des informations > couvertes par le secret professionnel. Ce message est etabli > a l'intention exclusive de ses destinataires. Toute utilisation > ou diffusion non autorisee interdite. > Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE > et ses filiales declinent toute responsabilite au titre de ce message > s'il a ete altere, deforme falsifie. > > ========================================================= > > This message and any attachments (the "message") are confidential, > intended solely for the addresses, and may contain legally privileged > information. Any unauthorized use or dissemination is prohibited. > E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any > of its subsidiaries or affiliates shall be liable for the message > if altered, changed or falsified. > > ========================================================= > > _______________________________________________ > rules-users mailing list > rules-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20161220/ae6767db/attachment.html From vishu.jsp at gmail.com Wed Dec 21 21:23:20 2016 From: vishu.jsp at gmail.com (Vishal S) Date: Thu, 22 Dec 2016 07:53:20 +0530 Subject: [rules-users] Need help in drool workbench In-Reply-To: <01285820A6F40F49ACEE15283E3C22223CAF35BB@MMXBLR601.hermes.si.socgen> References: <01285820A6F40F49ACEE15283E3C22223CAF35BB@MMXBLR601.hermes.si.socgen> Message-ID: Hi In order to disable rule, you can mark it as 'enabled false'. This is rule specific setting so the rules marked with enabled false will not get executed. Thanks Vishal On Dec 20, 2016 6:42 PM, "RANJAN Nalini" wrote: > Hi Team, > > > > Hope you are doing good.. > > > > We are new in drool workbench and we are planning to use drools workbench > for our upcoming project.. > > > > This development we are going to do across different region.. > > > > Currently we have common drools workbench which hosted in one PC?Major > issue which we are facing is that whenever we do modification from one > region and its break to other region development.. > > > > Is there any way to do our development without impacting to other region > code ?. > > > > Do we have any mechanism to disable rule which has been written by one > developer and it can be enable only when flag will be true(like toggle > features) ? > > > > > > *Regards,* > > *Nalini Ranjan* > > > > ========================================================= > > Ce message et toutes les pieces jointes (ci-apres le "message") > sont confidentiels et susceptibles de contenir des informations > couvertes par le secret professionnel. Ce message est etabli > a l'intention exclusive de ses destinataires. Toute utilisation > ou diffusion non autorisee interdite. > Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE > et ses filiales declinent toute responsabilite au titre de ce message > s'il a ete altere, deforme falsifie. > > ========================================================= > > This message and any attachments (the "message") are confidential, > intended solely for the addresses, and may contain legally privileged > information. Any unauthorized use or dissemination is prohibited. > E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any > of its subsidiaries or affiliates shall be liable for the message > if altered, changed or falsified. > > ========================================================= > > _______________________________________________ > rules-users mailing list > rules-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20161222/b30f469c/attachment.html From peter.hamorsky at kogerusa.com Thu Dec 22 06:43:00 2016 From: peter.hamorsky at kogerusa.com (Peter Hamorsky) Date: Thu, 22 Dec 2016 12:43:00 +0100 Subject: [rules-users] Need help in drool workbench In-Reply-To: References: <01285820A6F40F49ACEE15283E3C22223CAF35BB@MMXBLR601.hermes.si.socgen> Message-ID: <007601d25c48$8c0d0570$a4271050$@hamorsky@kogerusa.com> Hi all, Disabling rule wont suppress when part of rule, also evaluation of all rules including disabled consumes CPU(at least). Disabling means only consequence(the part) is going to be disabled. Peter From: rules-users-bounces at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Vishal S Sent: Thursday, December 22, 2016 3:23 AM To: Rules Users List Cc: DEY Indranil Subject: Re: [rules-users] Need help in drool workbench Hi In order to disable rule, you can mark it as 'enabled false'. This is rule specific setting so the rules marked with enabled false will not get executed. Thanks Vishal On Dec 20, 2016 6:42 PM, "RANJAN Nalini" wrote: Hi Team, Hope you are doing good.. We are new in drool workbench and we are planning to use drools workbench for our upcoming project.. This development we are going to do across different region.. Currently we have common drools workbench which hosted in one PC?Major issue which we are facing is that whenever we do modification from one region and its break to other region development.. Is there any way to do our development without impacting to other region code ?. Do we have any mechanism to disable rule which has been written by one developer and it can be enable only when flag will be true(like toggle features) ? Regards, Nalini Ranjan ========================================================= Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes par le secret professionnel. Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee interdite. Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme falsifie. ========================================================= This message and any attachments (the "message") are confidential, intended solely for the addresses, and may contain legally privileged information. Any unauthorized use or dissemination is prohibited. E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ========================================================= _______________________________________________ rules-users mailing list rules-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20161222/23752b39/attachment-0001.html From nalini.ranjan at socgen.com Thu Dec 22 07:23:31 2016 From: nalini.ranjan at socgen.com (RANJAN Nalini) Date: Thu, 22 Dec 2016 12:23:31 +0000 Subject: [rules-users] Need help in drool workbench In-Reply-To: References: <01285820A6F40F49ACEE15283E3C22223CAF35BB@MMXBLR601.hermes.si.socgen> Message-ID: <01285820A6F40F49ACEE15283E3C22223CAF5D40@MMXBLR601.hermes.si.socgen> Hi VIshu, Could you please guide me where I can see enabling and disabling option into Drools workbench ?.. Thanks Nalini From: rules-users-bounces at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Vishal S Sent: Thursday, December 22, 2016 7:53 AM To: Rules Users List Cc: DEY Indranil BangIteCtt Subject: Re: [rules-users] Need help in drool workbench Hi In order to disable rule, you can mark it as 'enabled false'. This is rule specific setting so the rules marked with enabled false will not get executed. Thanks Vishal On Dec 20, 2016 6:42 PM, "RANJAN Nalini" > wrote: Hi Team, Hope you are doing good.. We are new in drool workbench and we are planning to use drools workbench for our upcoming project.. This development we are going to do across different region.. Currently we have common drools workbench which hosted in one PC?Major issue which we are facing is that whenever we do modification from one region and its break to other region development.. Is there any way to do our development without impacting to other region code ?. Do we have any mechanism to disable rule which has been written by one developer and it can be enable only when flag will be true(like toggle features) ? Regards, Nalini Ranjan ========================================================= Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes par le secret professionnel. Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee interdite. Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme falsifie. ========================================================= This message and any attachments (the "message") are confidential, intended solely for the addresses, and may contain legally privileged information. Any unauthorized use or dissemination is prohibited. E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ========================================================= _______________________________________________ rules-users mailing list rules-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20161222/e9d2f6ca/attachment.html