[rules-users] incompatible error
Hi, Am using drools 5 and am getting following error when I do packaging the drl and dsls org.drools.base.SalienceInteger incompatible with org.drools.rule.Rule what could be the reason? Thanks sikkandar ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] Does the result of one rule can trigger theevaluation of one or more other rules.
Yes it is quite possible provided that in the action part you need to set appropriate date that the other rule expect to trigger. ex: rule 1 when Object1(data1 == s) then Object2.setBoolValue(true) update() rule 2 when object2(boolvalue==true) then sop(); From: [EMAIL PROTECTED] on behalf of Swathi B Sent: Fri 4/11/2008 10:30 PM To: rules-users@lists.jboss.org Subject: [rules-users] Does the result of one rule can trigger theevaluation of one or more other rules. Can you please tell me whether the result of one rule can trigger the evaluation of one or more other rules. Is there any approach for doing so in Drools?? Thanks in Advance, Swathi. -- View this message in context: http://www.nabble.com/Does-the-result-of-one-rule-can-trigger-the-evaluation-of-one-or-more-other-rules.-tp16628148p16628148.html 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 winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RE:brms help
Hi, We have a rule base(drls and dsls) we want to use our existing rule base in brms so that in future if any rule required to add we can use brms. is that possible? How to do that? am new to brms. what is the most right way. i found brl and webgui. which one i should use Basha winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RE: Insert logical in session
Hi, Stateless session used Insert method or insertlogical method? How abt statefulsession Sikkandar Basha Tech Lead WPEPDS UST Globalhttp://intranet.ustri.com/email/UST-logo.jpg B5N 144, Bhavani Technopark, Trivandrum, India [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] T: +91-471-2335777 Extn: 6802036 M: +91-9946555330 F: +91-471-2527276 From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 10/4/2007 5:31 AM To: rules-users@lists.jboss.org Subject: rules-users Digest, Vol 11, Issue 27 Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of rules-users digest... Today's Topics: 1. RE: rules precompilation (ekke) 2. Re: How to have your emails ignored (Scott Reed) 3. Drools web project in eclipse - Drools Library issue (Malika) 4. Re: rules precompilation (Scott Reed) 5. Re: custom defined types in setter and getters (Steven Williams) 6. Re: Drools web project in eclipse - Drools Library issue (Steven Williams) 7. Re: Drools web project in eclipse - Drools Library issue (Fernando Meyer) -- Message: 1 Date: Wed, 3 Oct 2007 13:07:57 -0700 (PDT) From: ekke [EMAIL PROTECTED] Subject: [rules-users] RE: rules precompilation To: rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii sergey, just tried it: exported a package with rules as stream (using the writeExternal() from Package) then in another run I created new RuleBase, added new Package, then import the rules into this empty Package (using the readExternal() from Package) then added some facts, execute the rules, tested if all rules are there, tested if the Facts are in workingMemory - all ok (using snapshot 4.0.2, eclipse 3.3, osx 10.4.10) ekke Manukyan, Sergey wrote: Ming, Ekke, After deserialising the Package back - getting exception when inserting facts: Exception thrown : java.lang.NoClassDefFoundError: XXXShadowProxy XXX - is my class name Any ideas? -Sergey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jin, Ming Sent: Wednesday, October 03, 2007 1:50 PM To: Rules Users List Subject: RE: [rules-users] rules precompilation Sergey, I am using precompiled rules. Serializing instances of org.drools.rule.Package works for me. Thanks, -Ming -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manukyan, Sergey Sent: Wednesday, October 03, 2007 12:29 PM To: Rules Users List Subject: [rules-users] rules precompilation Folks, Where can I find information on how to pre-compile rules in 4.0.1? 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 -- View this message in context: http://www.nabble.com/How-to-have-your-emails-ignored-tf4562290.html#a13026864 Sent from the drools - user mailing list archive at Nabble.com. -- Message: 2 Date: Wed, 03 Oct 2007 17:42:51 -0400 From: Scott Reed [EMAIL PROTECTED] Subject: Re: [rules-users] How to have your emails ignored To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mark Proctor's message received 10/3/2007 12:28 PM: Scott Reed wrote: Please tell me how I can call a function on the LHS. (hurry my assignment is due today!) Is that not covered by #2, it's more of an example for #2? Actually I thought I was
[rules-users] RE: Reverse Engineering
Hi, I have one doubt regarding reverse engineering. I have rulebase(set of drls and corresponding dsls). From the existing file sources i want to use it as input to rule flow and brms. can i do that? If so can you briefly tell me how to do that Sikkandar Basha Tech Lead WPEPDS UST Globalhttp://intranet.ustri.com/email/UST-logo.jpg B5N 144, Bhavani Technopark, Trivandrum, India [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] T: +91-471-2335777 Extn: 6802036 M: +91-9946555330 F: +91-471-2527276 From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 10/4/2007 1:32 AM To: rules-users@lists.jboss.org Subject: rules-users Digest, Vol 11, Issue 26 Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of rules-users digest... Today's Topics: 1. Rule Compilation error (Michael Epstein) 2. MVEL VariableResolverFactory problem on eclipse (Felipe Piccolini) 3. suggestion for drl grammar: single-element constraints (Godmar Back) 4. RE: rules precompilation (Manukyan, Sergey) 5. RE: rules precompilation (Jin, Ming) 6. RE: rules precompilation (Manukyan, Sergey) 7. Re: MVEL VariableResolverFactory problem on eclipse (ekke) -- Message: 1 Date: Wed, 3 Oct 2007 11:32:57 -0700 From: Michael Epstein [EMAIL PROTECTED] Subject: [rules-users] Rule Compilation error To: rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Hi, I have a JBRMS question. I have DSL that I am using, when I build a rule in the guided editor that uses the DSL it works fine. When I use the business rule text edit, the same [when] fails validation. Here is the error: Rule Compilation error Expression smcUnit is not an rvalue Unknown variable or type smcUnit Expression smcUnit is not an lvalue Unknown variable or type smcUnit A method named setSmcUnitId is not declared in any enclosing class nor any supertype, nor through a static import Expression smcUnit is not an rvalue Expression smcUnit is not an rvalue Expression smcUnit is not an rvalue Unknown variable or type smcUnit Unknown variable or type smcUnit Expression smcUnit is not an rvalue Expression smcUnit is not an rvalue Expression smcUnit is not an rvalue Unknown variable or type smcUnit Exception:14 error(s) while compiling unit com/symark/smc/Rule_test2_0.java Here is the DSL: [when]There is a Log=LogStartStop() [when]- runUserId with a command run by user: '{id}'=runUserId == {id} [when]- submitUserId with a command submitted by user: '{id}'=submitUserId == {id} [when]- runHostId with a command run on host: '{id}'=runHostId == {id} [when]- submitHostId with a command submitted from host: '{id}'=submitHostId == {id} [then]Assign to unit with id: '{id}' = smcUnit = new SmcUnit() ; smcUnit.setSmcUnitId({id}) ; insert(smcUnit ) ; And finally here is the rule: when There is a Log - runUserId with a command run by user: 'smc_app_elton' then Assign to unit with id: '1' Any help would be greatly appreciated. Thanks, Mike -- Message: 2 Date: Wed, 3 Oct 2007 14:33:29 -0400 From: Felipe Piccolini [EMAIL PROTECTED] Subject: [rules-users] MVEL VariableResolverFactory problem on eclipse To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii updated to 4.0.1 and creating a new drools project. Any .drl file (and also rule flows) shows errors with this info on problems tab on eclipse: org/mvel/integration/VariableResolverFactory no more info, actualy I can run the rules (from the Sample.drl) but it shows the problem. I tried changing libraries and jdt dependencies, but not succes... what can it be?...anyone has this problem too? Thanks. Felipe Piccolini M. [EMAIL PROTECTED] -- next part -- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071003/69cbe07c/attachment-0001.html -- Message: 3 Date: Wed, 3 Oct 2007 14:38:01 -0400 From: Godmar Back [EMAIL PROTECTED] Subject: [rules-users] suggestion for drl grammar: single-element constraints To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 If a fact contains a single field, it would be nice to be able to express a constraint on the value of that field without having to
[rules-users] RE:brms with jdk compatibility
Hi, My application using jdk.1.4.2 and if i use brms with my application will it work Basha winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RE: not able to deploy in linux
when i deployed and run the rule in linux machine am getting the following error. why is that? The same rule is working fine with windows sun.io.MalformedInputException at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java(Compiled Code)) at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java(Compiled Code)) at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java(Compiled Code)) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java(Compiled Code)) at java.io.InputStreamReader.read(InputStreamReader.java(Compiled Code)) at java.io.Reader.read(Reader.java(Compiled Code)) at org.drools.compiler.DrlParser.getDRLText(DrlParser.java:150) at org.drools.compiler.DrlParser.parse(DrlParser.java:83) at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:196) winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] Stop Processing Rules
Hi, Still i have the problem with update(org.drools.FactException: Update error: handle not found for object). i read the manual and found one statement The update() method can only be used with objects that have shadow proxies turned on. i don't understand this. how to check proxy for my object basha winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] RE:Problem Using Update
Hi, a) Is the Object included in the include statement ? b) Is the Object inserted into the Working Memory ? I beleive If the object is not imported and not asserted in the working memory the rule may not activated. The problem for me occurred in the then part. what i narrate is simple scenario. From: [EMAIL PROTECTED] on behalf of Darko IVANCAN Sent: Tue 11/27/2007 5:18 PM To: Rules Users List Subject: Re: [rules-users] RE:Problem Using Update Hi, some simple questions: a) Is the Object included in the include statement ? b) Is the Object inserted into the Working Memory ? Do you have sample code, to show/reproduce the error ? The mentioned JUnit Test should do the job. thanks, Darko Ivancan On 26/11/2007 17:08, Mark Proctor wrote: Sikkandar Nawabjan wrote: Hi, I have rule like this rule Update Id dialect mvel salience 10 no-loop true when $add:Address(name==india) then $add.setId(100); update($add) end That should work, its a fairly trivial use case, so I'm very surprised it doesn't If you are suare this isn't working for you, can you open a jira with a minimal self contained test project showing the error. am getting the error org.drools.FactException: Update error: handle not found for object and Address mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] @4b25933f. Is it in the working memory? what could be the problem? can't i use update?? Thanks and Regs, basha ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users 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 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 https://lists.jboss.org/mailman/listinfo/rules-users winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RE:Problem Using Update
Hi, I have rule like this rule Update Id dialect mvel salience 10 no-loop true when $add:Address(name==india) then $add.setId(100); update($add) end am getting the error org.drools.FactException: Update error: handle not found for object and Address mailto:[EMAIL PROTECTED] @4b25933f. Is it in the working memory? what could be the problem? can't i use update?? Thanks and Regs, basha winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RE:update is not working properly
Hi, This exception is not throwing very often. Occasionally i got this FactException . Is it because of another rule/Fact? i have the following rule also rule check created error dialect mvel salience 10 no-loop true when $add:Address(continent==asia) then retract( $add) can't a drl file contain both update and retract together? if both rules satisfy the facts what will happen for the handle? Thanks and Regs, Basha Sikkandar Nawabjan wrote: Hi, I have rule like this rule Update Id dialect mvel salience 10 no-loop true when $add:Address(name==india) then $add.setId(100); update($add) end That should work, its a fairly trivial use case, so I'm very surprised it doesn't If you are suare this isn't working for you, can you open a jira with a minimal self contained test project showing the error. am getting the error org.drools.FactException: Update error: handle not found for object winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] RE: how to find duplicate inlineeval
Edson, As you said i used inline eval. But am getting erroe message like this can't be used in static context.am using statelesssession to assert my objects. i also put eval(this!=obj1) as follows. $obj1:Object1($id:id,$name:name) $obj2:Object1(id==$id,$name:name==$name, eval( this!=$obj1 )) eval($obj2!= $obj1) Though my references are different the rule is not firing Thanks and Regs Basha From: [EMAIL PROTECTED] on behalf of Edson Tirelli Sent: Tue 11/13/2007 9:35 PM To: Rules Users List Subject: Re: [rules-users] RE: how to find duplicate Sikkandar, The only way to check for identity is to use an inline eval and use java code to check that: when $obj1:Object1($id:id,$name:name) $obj2:Object1(id==$id,$name:name==$name, eval( this!=$obj1 )) then Another option is to configure your rulebase to not allow the same object to be matched by more than one pattern in your rules. To do that you can either set a system property: drools.removeIdentities = true Or you can use drools API: RuleBaseConfiguration conf = new RuleBaseConfiguration(); conf.setRemoveIdentities( true ); RuleBase rulebase = RuleBaseFactory.newRuleBase( conf ); If you do that, your rule can be written as this: when $obj1:Object1($id:id,$name:name) $obj2:Object1(id==$id,$name:name==$name) then Since the engine will never allow the same fact to simultaneously match both patterns. []s Edson 2007/11/13, Sikkandar Nawabjan [EMAIL PROTECTED]: Hi, am passing list of objects to working memory. i want to fire the rule if there is any duplicate objects in the list i write code like this when $obj1:Object1($id:id,$name:name) $obj2:Object1(id==$id,$name:name==$name,this!=$obj1) then fire rule Now the problem lies at this!=objj1(a highlighted check). i put this to avoid a object check with itself. But this is internally calling equals method of the corresponding object and always return true. Because i overriden equals method in the Object itself so at the end the rule won't fire even if there is a duplicate object. how i can solve this equals(Object obj){ if(this.id=obj.id this.name==obj.name) return true; else return false; } From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Tue 11/13/2007 2:04 AM To: rules-users@lists.jboss.org Subject: rules-users Digest, Vol 12, Issue 27 Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of rules-users digest... Today's Topics: 1. Re: Drools and jBPM integration (Fabian Weisensee) 2. Re: java.lang.OutOfMemoryError: Java heap space (Edson Tirelli) 3. Re: Drools and jBPM integration (Mark Proctor) 4. Re: Drools and jBPM integration (Mark Proctor) -- Message: 1 Date: Mon, 12 Nov 2007 18:23:06 +0100 From: Fabian Weisensee [EMAIL PROTECTED] Subject: Re: [rules-users] Drools and jBPM integration To: Rules Users List rules-users@lists.jboss.org mailto:rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Yes, thanks for your help. I'll try your suggestion for #2. I resolved the deployment problem by myself. It was just a mistake with the JBoss ESB deploying... But now I have another problem. The rule file is found, but there seem to be some problems with the parser. The FireRulesActionHandler class from the jbpm wiki uses the following code: RuleBaseImpl ruleBase = new RuleBaseImpl(); ruleBase.addPackage(pkg); But the RuleBaseImpl class doesn't seem to be part of drools anymore. I looked at the javadocs to find a replacement. I've found the RuleBaseLoader class which looked like what I needed. I replaced the two lines with this: RuleBaseLoader rbl = RuleBaseLoader.getInstance(); RuleBase
[rules-users] RE: Duplicate check using dialect
i just use this sort of rule rule Hello World dialect mvel when m : Message( $message1 : message ) mdup : Message($message2:message==$message1,eval(this!=m) ) then System.out.println(Rule Fired+m +::+mdup ); System.out.println(Rule Fired+$message1 +::+$message2 ); end if i put rule parameter dialect MVEL the error this should be used in static context is gone. But now the rule is firing whatever may be the data i assert 2 objects with message Hello and Hello1. still the rule is firing(2 times). Thanks and regs, basha Message: 1 Date: Wed, 14 Nov 2007 09:48:02 -0200 From: Edson Tirelli [EMAIL PROTECTED] Subject: Re: [rules-users] RE: how to find duplicate inlineeval To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Sorry, you lost me. What is the error message? Can you send us a self contained test showing the problem you are having? []s Edson 2007/11/14, Sikkandar Nawabjan [EMAIL PROTECTED]: Edson, As you said i used inline eval. But am getting erroe message like this can't be used in static context.am using statelesssession to assert my objects. i also put eval(this!=obj1) as follows. $obj1:Object1($id:id,$name:name) $obj2:Object1(id==$id,$name:name==$name, eval( this!=$obj1 )) eval($obj2!= $obj1) Though my references are different the rule is not firing Thanks and Regs Basha From: [EMAIL PROTECTED] on behalf of Edson Tirelli Sent: Tue 11/13/2007 9:35 PM To: Rules Users List Subject: Re: [rules-users] RE: how to find duplicate Sikkandar, The only way to check for identity is to use an inline eval and use java code to check that: when $obj1:Object1($id:id,$name:name) $obj2:Object1(id==$id,$name:name==$name, eval( this!=$obj1 )) then Another option is to configure your rulebase to not allow the same object to be matched by more than one pattern in your rules. To do that you can either set a system property: drools.removeIdentities = true Or you can use drools API: RuleBaseConfiguration conf = new RuleBaseConfiguration(); conf.setRemoveIdentities( true ); RuleBase rulebase = RuleBaseFactory.newRuleBase( conf ); If you do that, your rule can be written as this: when $obj1:Object1($id:id,$name:name) $obj2:Object1(id==$id,$name:name==$name) then Since the engine will never allow the same fact to simultaneously match both patterns. []s Edson winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] RE: Duplicate check using dialect(firing multiple times)
Edson, With this code it is firing. But it is firing 2 times(u also got same 2 time output). why is that? how we can avoid? Thanks and Regss, Basha Sorry, my mistake. this is a reserved word in java (duh!!), and so you need to use your own binding: m : Message( $message1 : message ) mdup : Message($message2:message==$message1,eval(mdup != m) ) You can't use mvel dialect, because in MVEL the operators == and != will call the equals() method anyway. Other than that, it is working just fine for me: rule Find duplicates salience 10 when $f1 : Message( $m1 : message ) $f2 : Message( $m2 : message == $m1, eval( $f1 != $f2 ) ) then System.out.println( FIRED DUPLICATE: ); System.out.println( $f1 = +$f1+ [ message=+$m1+ ] ); System.out.println( $f2 = +$f2+ [ message=+$m2+ ] ); end rule Find differents when $f1 : Message( $m1 : message ) $f2 : Message( $m2 : message != $m1 ) then System.out.println( FIRED DIFFERENT: ); System.out.println( $f1 = +$f1+ [ message=+$m1+ ] ); System.out.println( $f2 = +$f2+ [ message=+$m2+ ] ); end The code to insert facts is: Message message1 = new Message(); message1.setMessage( Hello World ); workingMemory.insert( message1 ); Message message2 = new Message(); message2.setMessage( Hello World ); workingMemory.insert( message2 ); Message message3 = new Message(); message3.setMessage( Hello Bob ); workingMemory.insert( message3 ); workingMemory.fireAllRules(); And the result is: FIRED DUPLICATE: $f1 = [EMAIL PROTECTED] [ message=Hello World ] $f2 = [EMAIL PROTECTED] [ message=Hello World ] FIRED DUPLICATE: $f1 = [EMAIL PROTECTED] [ message=Hello World ] $f2 = [EMAIL PROTECTED] [ message=Hello World ] FIRED DIFFERENT: $f1 = [EMAIL PROTECTED] [ message=Hello Bob ] $f2 = [EMAIL PROTECTED] [ message=Hello World ] FIRED DIFFERENT: $f1 = [EMAIL PROTECTED] [ message=Hello World ] $f2 = [EMAIL PROTECTED] [ message=Hello Bob ] FIRED DIFFERENT: $f1 = [EMAIL PROTECTED] [ message=Hello Bob ] $f2 = [EMAIL PROTECTED] [ message=Hello World ] FIRED DIFFERENT: $f1 = [EMAIL PROTECTED] [ message=Hello World ] $f2 = [EMAIL PROTECTED] [ message=Hello Bob ] []s Edson 2007/11/14, Sikkandar Nawabjan [EMAIL PROTECTED]: i just use this sort of rule rule Hello World dialect mvel when m : Message( $message1 : message ) mdup : Message($message2:message==$message1,eval(this!=m) ) then System.out.println(Rule Fired+m +::+mdup ); System.out.println (Rule Fired+$message1 +::+$message2 ); end if i put rule parameter dialect MVEL the error this should be used in static context is gone. But now the rule is firing whatever may be the data i assert 2 objects with message Hello and Hello1. still the rule is firing(2 times). Thanks and regs, basha Message: 1 Date: Wed, 14 Nov 2007 09:48:02 -0200 From: Edson Tirelli [EMAIL PROTECTED] Subject: Re: [rules-users] RE: how to find duplicate inlineeval To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Sorry, you lost me. What is the error message? Can you send us a self contained test showing the problem you are having? []s Edson 2007/11/14, Sikkandar Nawabjan [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : Edson, As you said i used inline eval. But am getting erroe message like this can't be used in static context.am http://context.am/ using statelesssession to assert my objects. i also put eval(this!=obj1) as follows. $obj1:Object1($id:id,$name:name) $obj2:Object1(id==$id,$name:name==$name, eval( this!=$obj1 )) eval($obj2!= $obj1) Though my references are different the rule is not firing Thanks and Regs Basha From: [EMAIL PROTECTED] on behalf of Edson Tirelli Sent: Tue 11/13/2007 9:35 PM To: Rules Users List Subject: Re: [rules-users] RE: how to find duplicate Sikkandar, The only way to check for identity is to use an inline eval and use java code to check
[rules-users] RE: rules-users Digest, Vol 11, Issue 27
Hi, What is the Role of dslr in development and deployment perspective. i don't see anything about dslr in this manual. please send some link where i can learn about this Thanks and Regs, basha From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 10/4/2007 5:31 AM To: rules-users@lists.jboss.org Subject: rules-users Digest, Vol 11, Issue 27 Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of rules-users digest... Today's Topics: 1. RE: rules precompilation (ekke) 2. Re: How to have your emails ignored (Scott Reed) 3. Drools web project in eclipse - Drools Library issue (Malika) 4. Re: rules precompilation (Scott Reed) 5. Re: custom defined types in setter and getters (Steven Williams) 6. Re: Drools web project in eclipse - Drools Library issue (Steven Williams) 7. Re: Drools web project in eclipse - Drools Library issue (Fernando Meyer) -- Message: 1 Date: Wed, 3 Oct 2007 13:07:57 -0700 (PDT) From: ekke [EMAIL PROTECTED] Subject: [rules-users] RE: rules precompilation To: rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii sergey, just tried it: exported a package with rules as stream (using the writeExternal() from Package) then in another run I created new RuleBase, added new Package, then import the rules into this empty Package (using the readExternal() from Package) then added some facts, execute the rules, tested if all rules are there, tested if the Facts are in workingMemory - all ok (using snapshot 4.0.2, eclipse 3.3, osx 10.4.10) ekke Manukyan, Sergey wrote: Ming, Ekke, After deserialising the Package back - getting exception when inserting facts: Exception thrown : java.lang.NoClassDefFoundError: XXXShadowProxy XXX - is my class name Any ideas? -Sergey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jin, Ming Sent: Wednesday, October 03, 2007 1:50 PM To: Rules Users List Subject: RE: [rules-users] rules precompilation Sergey, I am using precompiled rules. Serializing instances of org.drools.rule.Package works for me. Thanks, -Ming -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manukyan, Sergey Sent: Wednesday, October 03, 2007 12:29 PM To: Rules Users List Subject: [rules-users] rules precompilation Folks, Where can I find information on how to pre-compile rules in 4.0.1? 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 -- View this message in context: http://www.nabble.com/How-to-have-your-emails-ignored-tf4562290.html#a13026864 Sent from the drools - user mailing list archive at Nabble.com. -- Message: 2 Date: Wed, 03 Oct 2007 17:42:51 -0400 From: Scott Reed [EMAIL PROTECTED] Subject: Re: [rules-users] How to have your emails ignored To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mark Proctor's message received 10/3/2007 12:28 PM: Scott Reed wrote: Please tell me how I can call a function on the LHS. (hurry my assignment is due today!) Is that not covered by #2, it's more of an example for #2? Actually I thought I was being funny about #11 and threw in the bit about getting my homework done for spice. I always get a kick out of the emails that ask for solutions to homework problems. Do we want to ignore those too? #1.
[rules-users] RE: How to stop firing rules from dependent object
Hi, I have 2 Objects and its corresponding drl/dsls to validate the rule ObjectA - A.drl,A.dsl ObjectB - B.drl,B.dsl when i insert ObjectA i want the rules in A.drl to be fired. when i insert ObjectB along with ObjectA i want to fire rules only from B.drl There are some rule in B.drl requires ObjectA.so i need to insert always ObjectA with ObjectB. At the same time i don't want the rule from A.drl How to do that? Thanks and Regs, Basha winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RE: rules-users Digest, Vol 12, Issue 16
am sorry i understand partially. i don't know to use semaphores to control rule. can you give some example Message: 4 Date: Wed, 07 Nov 2007 20:23:05 + From: Mark Proctor [EMAIL PROTECTED] Subject: Re: [rules-users] RE: How to stop firing rules from dependent object To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 you'll have to setup rules that detect the state of the working memory that then uses semaphores to control which rules can fire. Mark Sikkandar Nawabjan wrote: Hi, I have 2 Objects and its corresponding drl/dsls to validate the rule ObjectA - A.drl,A.dsl ObjectB - B.drl,B.dsl when i insert ObjectA i want the rules in A.drl to be fired. when i insert ObjectB along with ObjectA i want to fire rules only from B.drl There are some rule in B.drl requires ObjectA.so i need to insert always ObjectA with ObjectB. At the same time i don't want the rule from A.drl How to do that? Thanks and Regs, Basha Sikkandar Basha Tech Lead WPEPDS UST Globalhttp://intranet.ustri.com/email/UST-logo.jpg B5N 144, Bhavani Technopark, Trivandrum, India [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] T: +91-471-2335777 Extn: 6802036 M: +91-9946555330 F: +91-471-2527276 From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 11/8/2007 5:21 AM To: rules-users@lists.jboss.org Subject: rules-users Digest, Vol 12, Issue 16 Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of rules-users digest... Today's Topics: 1. inconsistency with 'collect' and the '||' operator (Adrian Cowham) 2. Re: inconsistency with 'collect' and the '||' operator (Adrian) 3. RE: Combine DSL and Java Code? (Raj, Govinda (Mohan)) 4. Re: RE: How to stop firing rules from dependent object (Mark Proctor) 5. Re: inconsistency with 'collect' and the '||' operator (Mike D) 6. Re: Combine DSL and Java Code? (Edson Tirelli) -- Message: 1 Date: Wed, 7 Nov 2007 10:35:17 -0800 From: Adrian Cowham [EMAIL PROTECTED] Subject: [rules-users] inconsistency with 'collect' and the '||' operator To: rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 I'm running into an issue where the || operator embedded in a collect CE isn't working as expected. The rule I have is rule Grant Access when $request : AccessRequest($name : username, $ID : sessionID, $loc : accessLocation, $day : dayOfAccess) $user : NetworkUser(username == $name) $group : UserGroup(users contains $user) $locationRules : ArrayList(size 0) from collect (AccessRule((allowedLocation == ANY || allowedLocation == $loc), allowAccess == false) from $group.getRules()) then # access granted end The issue I'm having is with AccessRule((allowedLocation == ANY || allowedLocation == $loc), allowAccess == false), this translate to all access rules that have the allowed location set to ANY or set to the location the user is logging in from. I created a UserGroup named super.users that contains a user named root and a single rule that allows access from ANY location. However, when I simulate a login with root -- next part -- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071107/451e832f/attachment-0001.html -- Message: 2 Date: Wed, 7 Nov 2007 19:53:36 + (UTC) From: Adrian [EMAIL PROTECTED] Subject: [rules-users] Re: inconsistency with 'collect' and the '||' operator To: rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Adrian Cowham adrian.cowham at gmail.com writes: I'm running into an issue where the || operator embedded in a collect CE isn't working as expected. The rule I have is rule Grant Access when $request : AccessRequest($name : username, $ID : sessionID, $loc : accessLocation, $day : dayOfAccess) $user : NetworkUser(username == $name) $group : UserGroup(users contains $user) $locationRules : ArrayList(size 0) from collect (AccessRule((allowedLocation == ANY || allowedLocation == $loc), allowAccess == false) from $group.getRules()) then # access grantedendThe issue I'm having is with AccessRule((allowedLocation == ANY
[rules-users] RE: Is the future avail in 4.0
Hi, I have couple of questions 1) I want to validate a Object and based upon certain condition set the flag and that flag available in my working memory context so that all the rules will execute based on the value of this flag. Is there any way to set the Global variable in working memory environment and use it in predicate logic. I beleive passing Global variable using setGLobal() is possible but we can't use it in predicate logic. 2) my second quetion is i have 2 classes say Public class B extends Class A{ private boolean flag; } am validating my rule using of type B. But i want to assert object of class A. in normal java we do downcasting B b = (B)obj; if i don't do that will downcast will happen at the working memory side automatically?? Basha winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RE: How to set the static variable
Hi, I want to create and set the static flag(its not part of my object) in working memory and want to use it across all my drls/dsls. How to do that. Basha From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 10/4/2007 6:46 PM To: rules-users@lists.jboss.org Subject: rules-users Digest, Vol 11, Issue 31 Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of rules-users digest... Today's Topics: 1. RE: RE: RE: Regarding Package .Pkg (Drool_Beginner) 2. RE: RE: RE: RE: Regarding Package .Pkg (Anstis, Michael (M.)) 3. Fucntion call in rule ([EMAIL PROTECTED]) -- Message: 1 Date: Thu, 4 Oct 2007 05:30:16 -0700 (PDT) From: Drool_Beginner [EMAIL PROTECTED] Subject: [rules-users] RE: RE: RE: Regarding Package .Pkg To: rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi Michael, Can you please provide some code sample for building rule with API. Regrads, Abhi... Anstis, Michael (M.) wrote: I recall reading other users building rules with the API. But it is not something I have any experience of. Sorry. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Drool_Beginner Sent: 03 October 2007 11:25 To: rules-users@lists.jboss.org Subject: [rules-users] RE: RE: Regarding Package .Pkg Yes, instead I don't want to write any DRL file. I want to create Rule directliy in PackageBuilder object , instantiate it and run the rule through it. If it is not possible then I want to create drl file once and later on I have to modify PackageBuilder from my Java code or program code. is there any information regarding it is available. Thanks with Regards Abhi.. Anstis, Michael (M.) wrote: Do you mean, once you've loaded a DRL file into a Package object you want to modify rule definitions? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Drool_Beginner Sent: 03 October 2007 09:58 To: rules-users@lists.jboss.org Subject: [rules-users] RE: Regarding Package .Pkg Thanks Anstis, for your clarification. Is there a way that I can directly manipulate directly this PackageBuilder from my JAVA code . Instead of updating drl file. Thanks Regards, Abhi.. Anstis, Michael (M.) wrote: I think you might misunderstand. A DRL file contains text defining rules. Each DRL file is assigned a package name (much like Java). The DRL file is loaded, parsed (PackageBuilder) and converted into a Package instance. Packages are added to RuleBases from which WorkingMemory can be obtained for rule execution. There is no pkg file - the Java Package can be converted into a stream using Java's ObjectOutputStream. Have a look at 1.6. The Drools Rule Engine - 1.6.1. Overview in the excellent documentation. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Drool_Beginner Sent: 03 October 2007 08:53 To: rules-users@lists.jboss.org Subject: [rules-users] Regarding Package .Pkg Dear All, Where I can get more information about .pkg, Since I have got information that .drl file get converted in to pkg(Package), which is writing .drl information into Stream. Please send me some information as our requirement is some what to take benifit from .pkg. Thanks in Advance Regards, Abhishek _ View this message in context: Regarding http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13014401 Package .Pkg Sent from the drools - user mailing http://www.nabble.com/drools---user-f11823.html list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- View this message in context: http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015081 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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- View this message in context: http://www.nabble.com/Regarding-Package-.Pkg-tf4560333.html#a13015841 Sent from the drools - user mailing list archive at Nabble.com. ___
[rules-users] RE: rules-users Digest, Vol 10, Issue 56
Hi, How to check my property contains only numeric. for ex when address(telphoneno==??) telephone no should be numeric then s.o.p(error); Basha winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RE: rules-users Digest, Vol 8, Issue 45
anybody have the idea of what is consequneceexceptionwhy it is occured? am using droosl 3.0.6 org.drools.spi.ConsequenceException - org.drools.RuntimeDroolsException: java.lang.NullPointerExceptionorg.drools.spi.ConsequenceException: org.drools.RuntimeDroolsException: java.lang.NullPointerException at org.drools.common.DefaultAgenda.fireActivation(Unknown Source) at org.drools.common.DefaultAgenda.fireNextItem(Unknown Source) at org.drools.common.AbstractWorkingMemory.fireAllRules(Unknown Source) at Thanks and Regs, Basha From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Mon 7/9/2007 1:04 PM To: rules-users@lists.jboss.org Subject: rules-users Digest, Vol 8, Issue 45 Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of rules-users digest... Today's Topics: 1. Re: Re: No OR syntax (Ronald R. DiFrango) 2. More JBoss Rules IDE 4.x upgrade Woes (Ronald R. DiFrango) 3. Re: Re: No OR syntax (Mark Proctor) 4. Re: More JBoss Rules IDE 4.x upgrade Woes (Ronald R. DiFrango) 5. matches operator (Ashwini Joshi) -- Message: 1 Date: Sun, 8 Jul 2007 17:56:27 -0400 From: Ronald R. DiFrango [EMAIL PROTECTED] Subject: Re: [rules-users] Re: No OR syntax To: Mark Proctor [EMAIL PROTECTED] Cc: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Nice; an in operator just like SQL :-) On 7/7/07, Mark Proctor [EMAIL PROTECTED] wrote: Sorry it's now and || You can also us the 'in' operator Cheese( type in ( 'stilton', 'brie' )) Cheese( type not in ( 'stilton', 'brie' )) Cheese( type memberOf $myCheeseTypeList ) Cheese( type not memberOf $myCheeseTypeList ) Mark Ronald R. DiFrango wrote: Answered my own question: MyObject (status == StatusConstants.MATCHED | == StatusConstants.APPROVAL) On 7/7/07, Ronald R. DiFrango [EMAIL PROTECTED] wrote: All, If I remember correctly, in the 4.x version of Drools you were adding an or type syntax where you could compare a value against multiple values. What is the new syntax for it? I am looking to do something logically like: MyObject (status in (Open or Matched) Ron -- ___ rules-users mailing list rules-users@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/20070708/378aa152/attachment-0001.html -- Message: 2 Date: Sun, 8 Jul 2007 17:59:47 -0400 From: Ronald R. DiFrango [EMAIL PROTECTED] Subject: [rules-users] More JBoss Rules IDE 4.x upgrade Woes To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 All I have to that upgrading a 3.0.x JBoss rules project to a 4.0.x version is not the smoothest transition. First, I reported that the library path is not correct but I was able to work around this issue. Now, I found another feature/bug. When I click on RETE view, I get the following exception: !ENTRY org.drools.eclipse 4 120 2007-07-08 17:54:09.181 !MESSAGE Internal error in Drools Plugin: !STACK 0 java.lang.Exception: Unable to parse rules to show RETE view! at org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(Unknown Source) at org.drools.eclipse.editors.DRLRuleEditor2$3.run(Unknown Source) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run( ModalContext.java:113) !ENTRY org.drools.eclipse 4 120 2007-07-08 17:54: 09.259 !MESSAGE Internal error in Drools Plugin: !STACK 0 java.lang.reflect.InvocationTargetException at org.drools.eclipse.editors.DRLRuleEditor2$3.run(Unknown Source) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run( ModalContext.java:113) Caused by: java.lang.Exception: Unable to parse rules to show RETE view! at org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(Unknown Source) ... 2 more Root exception: java.lang.Exception: Unable to parse rules to show RETE view! at org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(Unknown Source) at org.drools.eclipse.editors.DRLRuleEditor2$3.run(Unknown Source) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run( ModalContext.java:113) Do I really have to create a new Project and re-import everything over to it to get it to work properly? Is there no upgrade feature
[rules-users] RE:[ rules-users] 4.0.0MR2 Beeta?
Hi, am bit confused about 4.0.0MR2. It is a official release i assume. But the name(milestone) seems it is a Beeta release. is it really a beeta version?If so when will be the standard edition planned to release? Thanks and Regs, Basha From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Tue 6/19/2007 10:26 AM To: rules-users@lists.jboss.org Subject: rules-users Digest, Vol 7, Issue 48 Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of rules-users digest... Today's Topics: 1. NoMuchMethod - But there is! (Steven Waldren) 2. RE: NullPointerException: org.drools.base.extractors.BaseObjectClassFieldExtractor.getLongValue(BaseObjectClassFieldExtractor.java:103) (Prakash Galagali) -- Message: 1 Date: Mon, 18 Jun 2007 13:56:06 -0500 From: Steven Waldren [EMAIL PROTECTED] Subject: [rules-users] NoMuchMethod - But there is! To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hello, I downloaded the JBoss Rules 4.0 Eclipse IDE. I built a small project with about 120 rules. My test asserts around 500 objects. When I try to add one more rule (regardless of the content of the rule) I get the error below, stating no such method error. Even if I add the following rule, I still get the error: rule new rule when Object() then System.out.print(test); end What other problems can throw these errors? Thanks, Steven -- Steven E. Waldren, M.D., M.S. OpenHealth Data Skype: steven.waldren === THE ERROR == java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems() [Lorg/eclipse/jdt/core/compiler/CategorizedProblem; at org.apache.commons.jci.compilers.EclipseJavaCompiler $2.acceptResult(EclipseJavaCompiler.java:295) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 454) at org.apache.commons.jci.compilers.EclipseJavaCompiler.compile (EclipseJavaCompiler.java:332) at org.drools.rule.builder.dialect.java.JavaDialect.compileAll (JavaDialect.java:311) at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java: 237) at org.drools.compiler.PackageBuilder.addPackageFromDrl (PackageBuilder.java:157) at com.sample.DroolsTest.readRule(DroolsTest.java:78) at com.sample.DroolsTest.main(DroolsTest.java:37) java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems() [Lorg/eclipse/jdt/core/compiler/CategorizedProblem; at org.apache.commons.jci.compilers.EclipseJavaCompiler $2.acceptResult(EclipseJavaCompiler.java:295) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 454) at org.apache.commons.jci.compilers.EclipseJavaCompiler.compile (EclipseJavaCompiler.java:332) at org.drools.rule.builder.dialect.java.JavaDialect.compileAll (JavaDialect.java:311) at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java: 237) at org.drools.compiler.PackageBuilder.addPackageFromDrl (PackageBuilder.java:157) at com.sample.DroolsTest.readRule(DroolsTest.java:78) at com.sample.DroolsTest.main(DroolsTest.java:37) -- next part -- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070618/0587f198/attachment-0001.html -- Message: 2 Date: Mon, 18 Jun 2007 21:56:03 -0700 From: Prakash Galagali [EMAIL PROTECTED] Subject: RE: [rules-users] NullPointerException: org.drools.base.extractors.BaseObjectClassFieldExtractor.getLongValue(BaseObjectClassFieldExtractor.java:103) To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii I guess one of the Attributes in IndividualNok has no getter / setter method. Just verify From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jian Li Sent: Monday, June 18, 2007 8:41 AM To: rules-users@lists.jboss.org Subject: [rules-users] NullPointerException: org.drools.base.extractors.BaseObjectClassFieldExtractor.getLongValue(Ba seObjectClassFieldExtractor.java:103) Hi, The following problem encountered: I have a rule defintion : --dpd.drl package ruletest; import ruletest.IndividualNok; rule Female_NOK_sex_401
[rules-users] RE:[ rules-users] Rule engine is worth?
Hi, I have a question. After gone through several rule engines and rule engine documents i learned the capability of rule engine is very good interms of giving coding/changing rules to business analyst.he able to modify the rule without the help of technical person. But the reality is not so. i belevie none of the rule engine including Drools reaching that level. For example to add a simple rule you need a technical person help. what benefits rule engine put in a big project. i don't want thoretical explanation. please let me know any real advantage lies there in implementing rule engine. Beside portability is absolutely not possible(despite being RULEML is defined). If it is not reached that level how it gonna be fit into SOA Thanks and Regs, Basha From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 6/7/2007 11:27 AM To: rules-users@lists.jboss.org Subject: rules-users Digest, Vol 7, Issue 13 Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of rules-users digest... Today's Topics: 1. Re: rule not valid... (Rahul Phadnis) 2. Re: New version of MSMTeam RuleEditor is on SourceForge (Mark Proctor) 3. Re: New version of MSMTeam RuleEditor is on SourceForge (Marko Frankovic) 4. working with deep object graph (Chris Mathrusse) 5. Re: working with deep object graph (Mark Proctor) 6. Dependency with JBoss (Joj) 7. Re: Dependency with JBoss (Mark Proctor) -- Message: 1 Date: Wed, 6 Jun 2007 13:56:10 -0700 (PDT) From: Rahul Phadnis [EMAIL PROTECTED] Subject: Re: [rules-users] rule not valid... To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 You probably need a package definition at the top of the file. Please also import the SupplierView class in the rules drl file. You can also first test using the drools sample files. -Rahul --- Manukyan, Sergey [EMAIL PROTECTED] wrote: Folks, I am using Rules 4.0 in WebSphere 6.0 app server. Made a simple test file with a simple rule : rule Test when cs : SupplierView() then System.out.println(cs); end But getting exception: [6/6/07 16:13:06:456 EDT] 0020 SystemErr R java.lang.IllegalArgumentException: The rule called Test is not valid. Check for compile errors reported. at org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:363) at org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:263) at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:293) How can I check compile errors?? And what is not valid in this rule? Thanks for any ideas... -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 -- Message: 2 Date: Wed, 06 Jun 2007 22:02:26 +0100 From: Mark Proctor [EMAIL PROTECTED] Subject: Re: [rules-users] New version of MSMTeam RuleEditor is on SourceForge To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 MSM Team, Good work on the project, have you thought of working with us to help build a better integrated tool, rather than a seperate satelite tool? We have someone working on unified belief system at the moment, that should allow fuzzy logic, and others, to be integrated. This system will be an integrated extension of the Rete network. Mark Marko Frankovic wrote: Greetings! Having difficulties in writing rules? Then try this visual editor! What is new ? - Fuzzy logic on one specific way - New Decision and Arithmetic Tables are built in. - Debuger (replay of rules fire) - and much more What is next ? Bayes Decision Table AHP Decision Table
[rules-users] RE: [rule-users]Drools support of Unix platform
Hi, We implemented our project using Drools3.6. we plan to port it on IBM AIX platform. Is there any shower stopper can anticipate? Drools3.6 is tested on AIX? Thanks and Regs, Basha winmail.dat___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [rule-users] rule comparison
Edson, am getting the following output [ b, a ] [ a, b ] only the order of the output is different. so if i check a equal to b according to the cross product law the then part execute 2 times? thats y i check the reference in the then part. how to use eval to variable comparison of objects in a single line Thanks and regs, Basha / Message: 3 Date: Sat, 19 May 2007 09:53:29 -0300 From: Edson Tirelli [EMAIL PROTECTED] Subject: Re: [rules-users] [rule-users]how to create object properties in single stmnt To: Rules Users List rules-users@lists.jboss.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Sikkandar, In 3.0.6, if you have 2 strings in the working memory (a and b ) and you write: rule cross product when $s1: String() $s2: String() then System.out.println([ +$s1+, +$s2+ ]); end The result MUST be: [ a, b ] [ b, a ] If it is not that, then we have a bug, but our integration tests that test this specific situation are working fine. Plz let us know if it is different for you. In 4.0, the result must be: [ a, b ] [ b, a ] [ a, a ] [ b, b ] So a fact (by default) may match multiple simultaneous patterns. Regarding your second question, comparing properties of the same object is also something we added for 4.0. In 3.0.x you need eval() too. []s Edson 2007/5/19, Sikkandar Nawabjan [EMAIL PROTECTED]: Hi , The very reason i used to compare two object reference is that i got then executed multiple time when i do duplicate check between object properties. so i beleive the pattern match happen more than a time for example when $obj1:object($code:code,$stdate:startdate); $obj2:object(code==$code,startdate=$stdate); then if(obj1!=obj2) System.out.println(Fired); My questions are 1) In 3.0.6 is there any other way to avoid this multiple check other than using eval(which affects performance i beleive). i can't use this operator in 3.0.6 2) related to this i have one more query. how to check properties within the object itself for example i want to do when $obj1:object($code:code,$stdate:startdate,$enddate:enddate $stdate, reasoncode == $code); then System.out.println(Fired); i beleive the above throws error in 3.0.6 (nullpointer related to alpha node) Earlier reply is highly appreciated Thanks and Regs, Bassha ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [rule-users]RunTime polypmorphic support in 3.0.6?
Hi, I have a query. am using Drools 3.0.6. i have a ObjectA and ObjectB and ObjectC. ObjectB and OBjectC inherits Object A. am using seperate drl file for objectA, objectB and objectC. i need to use the DRL pertain to ObjectA when validate ObjectB and ObjectC. So when i check the object say ObjectB which i asserted in working memory, can i assume that ObjectA also available implitcitly? The rules associated with ObjectA will fire when I assert just OBjectB? Please clarify Thanks and Regs, Basha ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] how to check reference
Hi, we are using drools version 3.0.6. I want to check the object references of t inserted objects in working memory. How to check the condition in LHS? right now am doing the following way when $obj1:object() $obj2:object() then if($obj1!=$obj2) System.out.println(Fired); how to move the if(if($obj1!=$obj2)) statement to LHS? am not able to use this operator in version 3.0.6 Thanks and Regs. Basha ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] M2 release DSL support is partial?
Mark, The DSL is enabled completely or partially(engine level). (ie) can we use the Eclipse(plugin) to create and test dsl? since we tested M2 with eclipse and it seems the Rules are not = acticvated when using DSL. Our rules are very complex and we required such a Guy support to = configure DSL and it is almost not possible to use text editor to write = dsl/. Please let me know about the DSL feauture that were added in this = release Thanks and Regs, Basha ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [rule-users]:Rule grouping
Hi, I have five rules A,B,C,D,E, Rule C is common for all(i.e) if A or B or D or E is executed then rule C need to be execute followed by the respective rule. i dont want to duplicate the C code in all other 4 rule and want C as a common seperate rule. how can i achieve this, Thanks and Regs, Basha ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Rule simplification
Hi, I have a object having 10 properties. i want to do null check for all those properties. i want to write a single rule to do and i don't want to write java functions in drl.i don't want to write 10 individual rules as the action are same for all the property null check. am using 3.0.6. how can do that in a single rule.syntax please Thanks and Regs, Basha ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Subject: Re: [rules-users] DSL is Dropped?
Mark, I did see your reply on one of the question that DSL is not enable for M1. In which version it will be enable. we plan to use milestone. Is it going to be enable or DSL feature going to be removed? Thanks and Regs, Basha ___ rules-users mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users]The Rule is not working with milestone
Hi, The below rule for dublicate checking is working fine with 3.0.5 but not with milestone version? Is that a problem with milesone? rule rule01 when $provAddress:ProviderAddress( $addType : addressTypeCode, $pPI : primaryPracticeIndicator ) $provAdd:ProviderAddress( addressTypeCode == $addType, $pp:primaryPracticeIndicator == $pPI ) then System.out.println(Hi+$addType+ +$pPI+::+$pp); retract($provAddress); end Basha ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] problem in comparing two dynamic values inside
Your logic in the condition is wrong. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users