[rules-users] activationCancelled() not being executed?
Hi! I'm using a JTable to display rules that have been activated. My goal is to have the table display a set of activations ordered by their salience. The user should then choose which one of them to fire (if you want to know why, be invited to read the background). Of course this makes only sense as long as the activations are valid. Rules whose activation has been cancelled should still be displayed, but in a different style (like greyed out). In order to accomplish this, I want to use an implementation of the AgendaEventListener-interface, implementing the activationCancelled()-method. The Listener itself works, as I use the activationCreated()-method to add the rule as a row to my table (which works fine). Unfortunately the activationCancelled()-method doesn't seem to be executed at all! I assume that I have a fundamental misunderstanding of what should trigger an activationCancelled() event? Background: (just if you're curious...) I'm working as a PhD student in physics at the CERN international high-energy physics laboratory, for the ATLAS experiment. As a member of the Detector Control System (DCS) group, I'm going to write an expert system in order to assist the shift crew with the detector operation. The operation of the detector is a difficult task, because more than 7 parameters (like voltages, currents and temperatures) have to be controlled. A Finite State Machine (FSM) computes a defined and limited number of states from the given parameters (like ON, OFF, STANDBY,...). I'm going to synchronize the expert system application to ERROR states of the FSM, in order to extract the relevant parameters from the system (as it would be impossible to feed all parameters into the XPS all the time). This is handled by quite some control rules that decide which data has to be requested, released and so on. Once all necessary data has been received, this might lead to activations of the (more interesting) user rules. Those rules have an explanatory character like The temperature of this XYZ is too high, so please try ABC. For a given set of facts I assume more then one rule to be activated. Whilst the rule engine should take care of the execution (firing) of all control related rules, the execution of the user rules should be under direct user control. Displaying all activations in a GUI will allow the user to pick one (try it) and rate it (the proposed solution solved the problem yes/no). Changing the rules salience according to the answer, will allow the system to dynamically reflect the current system status. (Rules that are related to broken connections / wrongly connected cables are likely to be found at the beginning of the experiment but hopefully only on rare occasion later on.) In order to ensure that no information is lost during the absence of DCS experts (which will not always be around), a log file should be written for each major FSM-ERROR. At the moment the WorkingMemoryFileLogger seems to be predestined for this job. This way I hope to collect large amounts of ERROR data during the initial phase of the experiment that helps to extract rules for numerous error conditions. This will become especially handy, as such errors have a tendency to come back, even if the original detector experts are gone for years... -- View this message in context: http://www.nabble.com/activationCancelled%28%29-not-being-executed--tf4348054.html#a12387991 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Execution problems with (or and (and
Hi, I have a problem with this execution : rule Your First Rule when (or not Venue() (and v:Venue() l:ListeSousVenue() p:Param())) then System.out.println(OK - 1); end rule Your Second Rule when (or not Venue() (and p:Param() l:ListeSousVenue() v:Venue())) then System.out.println(OK - 2); end In my WM, I have a Param and a ListeSousVenue but no Venue But after execution, I have just this result : OK - 1 Why the second rule doesn't execute ? Thanks, Vdelbart -- View this message in context: http://www.nabble.com/Execution-problems-with-%28or-and-%28and-tf4352997.html#a12403501 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] problem with threads
Hi all, I have a HashTable dawned by a thread T1, another thread T2 take this HashTable and give it to the working memory as assertion. what happens if T2 and JRools try to access to the HashTable? Can I consider the working memory as a thread and use a method synchronization to solve the concurrent access problem? Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] problem with threads
Raffaele, Hashtable is synchronized already, and so you will not have any problem. But answering your question, drools does not start any inner thread. It will simply use the thread calling its methods, so the default java synchronization mechanisms apply. []s Edson 2007/8/30, Raffaele Viola [EMAIL PROTECTED]: Hi all, I have a HashTable dawned by a thread T1, another thread T2 take this HashTable and give it to the working memory as assertion. what happens if T2 and JRools try to access to the HashTable? Can I consider the working memory as a thread and use a method synchronization to solve the concurrent access problem? Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3529-6000 Mobile: +55 11 9287-5646 JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Ruleflow and Global - precision
Did you put a global declaration in the XOR Split Constraint Editor (same spot to put imports)? vdelbart wrote: Just an additionnal information of my problem : this two sentences work in a rule with the declaration of my global (Global HashMap map) : Boolean(eval((Boolean)map.get(decision) == true)) from Boolean.TRUE; Boolean(booleanValue == false) from map.get(decision) thanks, ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Ruleflow and Global - precision
Thanks for the answer, I have the snapshot 4.0.1 version and I only have a imports... button http://www.nabble.com/file/p12409258/constraint%2Beditor.jpg and in the imports textual editor the global declaration is not save : I can write the declaration : http://www.nabble.com/file/p12409258/Imports%2Beditor.jpg but the declaration is not save : http://www.nabble.com/file/p12409258/Imports%2Beditor_without_global.jpg Is there a textual editor for global declaration in the ruleflow ? thank you, vdelbart -- View this message in context: http://www.nabble.com/Ruleflow-and-Global---tf4347589.html#a12409258 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] package merging
Hi, in the documentation (7.1.4.2. Package) it seems possible to merge package in the rule base, how ca I do this. (Drools 4.0.1 SNAPSHOT) -- View this message in context: http://www.nabble.com/package-merging-tf4355086.html#a12409940 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] release 4.0.1
no as I said 4.0.1 will not work with eclipse 3.3. [EMAIL PROTECTED] wrote: Mark, Is there any change in the 4.01 snapshot eclipse plug-in in this release? More specifically, is it compatible with eclipse 3.3? Thanks, Best Regards, Tim Nguyen Mark Proctor [EMAIL PROTECTED] s.org To Sent by: Rules Users List rules-users-bounc rules-users@lists.jboss.org [EMAIL PROTECTED] cc g Subject Re: [rules-users] release 4.0.1 08/30/2007 06:07 AM Please respond to Rules Users List [EMAIL PROTECTED] s.jboss.org we have only two issues left, related to IDE, code completion and break points for MVEL. We really want to get those fixed today, so we can release, but it's proving hard to nail those down, fix one thing and it breaks another. I have IDE development :( But you can get a snapshot release from here: http://cruisecontrol.jboss.com/cc/artifacts/jboss-rules Mark Manukyan, Sergey wrote: Folk, How can I get a nightly build of 4.0.1…? Or are you still on track to make a release this week? Thanks, -Sergey ** ** LEGAL DISCLAIMER ** ** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] is there anyway to access to lower level of an attribute in LHS
Hi group, Currently I have to use eval to access to lower lever of an attribute. For example: rule test rule when $person: Person () eval (($person.getContact() != null) ($person.getContact().getEmail() == null)) then System.out.println (Email address is missing) end Is there anyway not to use eval. I would like to do something like this: $person: Person ($contact: contact != null, $contact.getEmail() == null) but it throws errors Thanks, Tim ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] logical chain
Folks, Using 4.0.GA I need to have the following logical chain: Having facts F1(), F2(), F3(), F4() I need a rule to be fired when (F1() and F2()) or (F3() and F4()) condition is true, so made a rule: when (or (and F1() F2() ) (and F3() F4() ) ) then ... But it doesn't execute correctly. F.e. it fires when F1() and F4() are inserted although F2() and F4() are not! Please advice is it my incorrect syntax, or a bug? Thanks, -Sergey ** ** LEGAL DISCLAIMER ** ** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer.___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] is there anyway to access to lower level of an attribute in LHS
Did you tried: Person( contact != null, contact.email == null ) ? Edson 2007/8/30, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi group, Currently I have to use eval to access to lower lever of an attribute. For example: rule test rule when $person: Person () eval (($person.getContact() != null) ($person.getContact().getEmail() == null)) then System.out.println (Email address is missing) end Is there anyway not to use eval. I would like to do something like this: $person: Person ($contact: contact != null, $contact.getEmail() == null) but it throws errors Thanks, Tim ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3529-6000 Mobile: +55 11 9287-5646 JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] logical chain
Yes, this was a bug related to prefixed AND/OR CEs: http://jira.jboss.com/jira/browse/JBRULES-1149 The good news is that it is fixed and was included in the 4.0.1 released that was just uploaded to the site: http://labs.jboss.com/auth/drools/downloads.html Please, upgrade to 4.0.1 and you should see no more problems. And if you see, please let us know... :) BTW, the 4.0.1 anounce shall come soon, but the artifacts are already there. []s Edson 2007/8/30, Manukyan, Sergey [EMAIL PROTECTED]: Folks, Using 4.0.GA I need to have the following logical chain: Having facts F1(), F2(), F3(), F4() I need a rule to be fired when (F1() and F2()) or (F3() and F4()) condition is true, so made a rule: when (or (and F1() F2() ) (and F3() F4() ) ) then … But it doesn't execute correctly. F.e. it fires when F1() and F4() are inserted although F2() and F4() are not! Please advice is it my incorrect syntax, or a bug….? Thanks, -Sergey ** ** LEGAL DISCLAIMER ** ** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3529-6000 Mobile: +55 11 9287-5646 JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] logical chain
Cool! Thanks... From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli Sent: Thursday, August 30, 2007 3:27 PM To: Rules Users List Subject: Re: [rules-users] logical chain Yes, this was a bug related to prefixed AND/OR CEs: http://jira.jboss.com/jira/browse/JBRULES-1149 The good news is that it is fixed and was included in the 4.0.1 released that was just uploaded to the site: http://labs.jboss.com/auth/drools/downloads.html Please, upgrade to 4.0.1 and you should see no more problems. And if you see, please let us know... :) BTW, the 4.0.1 anounce shall come soon, but the artifacts are already there. []s Edson 2007/8/30, Manukyan, Sergey [EMAIL PROTECTED] : Folks, Using 4.0.GA I need to have the following logical chain: Having facts F1(), F2(), F3(), F4() I need a rule to be fired when (F1() and F2()) or (F3() and F4()) condition is true, so made a rule: when (or (and F1() F2() ) (and F3() F4() ) ) then ... But it doesn't execute correctly. F.e. it fires when F1() and F4() are inserted although F2() and F4() are not! Please advice is it my incorrect syntax, or a bug? Thanks, -Sergey ** ** LEGAL DISCLAIMER ** ** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3529-6000 Mobile: +55 11 9287-5646 JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Help command Length in LHS
Hello list, as I can obtain the length of a variable in LHS when v: Validaciones( fonodestino.length 7) then In this way you give me error. That do I do wrong? thanks. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] Problems During addPackageFromDrl
Edson. As usualYou are right. The God and Evil maven transitivy dependency... http://www.auster.com.br/ Solution http://www.auster.com.br/ is our Business Marcos Tengelmann Relações Comerciais Auster Solutions do Brasil Avenida Ibirapuera 2120, cj 224 [EMAIL PROTECTED] tel: fax: mobile: Skype ID:5052-8535 http://www.plaxo.com/click_to_call?src=jj_signatureTo=5052-8535Email=marc [EMAIL PROTECTED] 5052-6711 9139.7983 http://www.plaxo.com/click_to_call?src=jj_signatureTo=9139.7983Email=marc [EMAIL PROTECTED] mtengelmann Want to always have my latest info? https://www.plaxo.com/add_me?u=21475157331v0=620798k0=16779217v1=620799; k1=1001594622src=client_sig_212_1_banner_joininvite=1 Want a signature like http://www.plaxo.com/signature?src=client_sig_212_1_banner_sig this? _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli Sent: quinta-feira, 30 de agosto de 2007 09:10 To: Rules Users List Subject: Re: [rules-users] Problems During addPackageFromDrl A wrong version of antlr-runtime jar, maybe? []s Edson 2007/8/29, Marcos Tengelmann [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : Hi, I am using the 29/aug snapshot of drools (4.0.1). During the PackageBuilder.addPackgeFromDrl(Reader) I am getting the following exception: Caused by: java.lang.NoSuchMethodError: org.antlr.runtime.DFA.unpackEncodedString(Ljava/lang/String;)[S at org.drools.lang.DRLParser.clinit( DRLParser.java:7302) at org.drools.compiler.DrlParser.getParser( DrlParser.java:204) at org.drools.compiler.DrlParser.parse( DrlParser.java:60) at org.drools.compiler.PackageBuilder.addPackageFromDrl( PackageBuilder.java:156) at br.com.auster.rules.AbstractRulesEngineProcessor.addPackages( AbstractRulesEngineProcessor.java:349 ) at br.com.auster.rules.AbstractRulesEngineProcessor.init( AbstractRulesEngineProcessor.java:254 ) at br.com.auster.rules.InvoiceRulesEngineFilter.configureEngine( InvoiceRulesEngineFilter.java:201 ) at br.com.auster.rules.InvoiceRulesEngineFilter.configure( InvoiceRulesEngineFilter.java:136 ) . ... 4 more Any ideas of what could be happening? http://www.auster.com.br/ Solution is our http://www.auster.com.br/ Business Marcos Tengelmann Relações Comerciais Auster Solutions do Brasil Avenida Ibirapuera 2120, cj 224 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] tel: fax: mobile: Skype ID:5052-8535 http://www.plaxo.com/click_to_call?src=jj_signatureTo=5052-8535Email=marc [EMAIL PROTECTED] 5052-6711 9139.7983 http://www.plaxo.com/click_to_call?src=jj_signatureTo=9139.7983Email=marc [EMAIL PROTECTED] mtengelmann Want to always have my latest info? https://www.plaxo.com/add_me?u=21475157331v0=620798k0=16779217v1=620799; k1=1001594622src=client_sig_212_1_banner_joininvite=1 Want a signature like http://www.plaxo.com/signature?src=client_sig_212_1_banner_sig this? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3529-6000 Mobile: +55 11 9287-5646 JBoss, a division of Red Hat @ www.jboss.com logo_pequeno.jpgclick_to_call.giflogo_pequeno.jpgclick_to_call.gif___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] check duplicate
Hi List, I'd like to check if any duplicate exists in my collection as below: rule check Duplicate when ref1: Reference ($type1: referenceType, $value1: referenceValue) ref2: Reference (this != ref1, referenceType == $referenceType, referenceValue == $value1) then errorHandler.record(Duplicate Reference is not allowed.); end Both my referenceType and referenceValue are String. I didn't get any error but it didn't work. Any idea? I am using 4.01 GA Best Regards, Tim Nguyen ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Help command Length in LHS
This is a limitation from MVEL (the expression language we use). At this moment, it only resolves methods that follows javabean naming conventions. As the length() method does not follow the javabean naming convention, you have to do: v : Validaciones( eval( fonodestino.length() 7 ) ) []s Edson 2007/8/30, grupo cft ing sostware [EMAIL PROTECTED]: Hello list, as I can obtain the length of a variable in LHS when v: Validaciones( fonodestino.length 7) then In this way you give me error. That do I do wrong? thanks. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3529-6000 Mobile: +55 11 9287-5646 JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Will this download site be updated
Most new users visit here after they have heard jboss rules: http://labs.jboss.com/jbossrules/downloads Does JBoss plan to update it? Thanks Xiandong ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Will this download site be updated
Hi, Use http://labs.jboss.com/drools/downloads.html instead. Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Aug 30, 2007, at 11:28 PM, Xiandong Su wrote: Most new users visit here after they have heard jboss rules: http:// labs.jboss.com/jbossrules/downloads Does JBoss plan to update it? Thanks Xiandong ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users