RE: [rules-users] could not access property ('=')

2007-08-16 Thread Arsalan S. Zaidi
Hi. Jira Bug created. http://jira.jboss.com/jira/browse/JBRULES-1089 BTW, the work around works just fine. Thanks! --Arsalan From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli Sent: 13 August 2007 22:16 To: Rules

[rules-users] Please help - losing hair

2007-08-16 Thread Richard Hoberman
I'm using Drools 4 (M2), which is supposed to support nested accessors* This works: when Claim( submissionInfo == null), but not this: when Claim( submissionInfo.date == null) Rule file, SubmissionInfo.java and exception are below. What am I missing? Richard * See

Re: [rules-users] Problems Extending the Golfer example - Cartesian joins ??

2007-08-16 Thread Mark Proctor
not yet. Mark Simon French wrote: Hi Mark, Any news on this one? I know its just a puzzle, but I would have hoped drools would cope with it. I was hoping to use the golfer example as a training aid to people in work. Regards Simon On 09/08/07, *Simon French* [EMAIL PROTECTED]

Re: [rules-users] Please help - losing hair

2007-08-16 Thread Manjax23
I think you should use dialect mvel when accessing the nested accessors. and I had some trouble with mvel dialect in 4M2 release. Please let me know if it works for you.. Thanks, Manjax23 Richard Hoberman wrote: I'm using Drools 4 (M2), which is supposed to support nested accessors*

[rules-users] RuntimeDroolsException

2007-08-16 Thread Raffaele Viola
Hi, I'm starting to use eclipse plug.in for JRules. I created the example JRules project in eclipse and I tried to start it as Java Application but I got this exception org.drools.RuntimeDroolsException: Unable to load dialect ' org.drools.rule.builder.dialect.java.JavaDialect:java' at

Re: [rules-users] RuntimeDroolsException

2007-08-16 Thread Mark Proctor
I'll probably want to speak to ILog about help with JRules. Mark Raffaele Viola wrote: Hi, I'm starting to use eclipse plug.in http://plug.in for JRules. I created the example JRules project in eclipse and I tried to start it as Java Application but I got this exception

Re: [rules-users] Please help - losing hair

2007-08-16 Thread Mark Proctor
in theory for nested accessors it should switch to the MVEL dialect automatically. You only need to specify the MVEL dialect explicitely for eval, return value and consequences. Mark Manjax23 wrote: I think you should use dialect mvel when accessing the nested accessors. and I had some

RE: [rules-users] RuntimeDroolsException

2007-08-16 Thread Anstis, Michael \(M.\)
More importantly why ILOG are using org.drools.* classes! ;-) Of course there could be another explanation. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor Sent: 16 August 2007 12:20 To: Rules Users List

Re: [rules-users] Please help - losing hair

2007-08-16 Thread Richard Hoberman
1. I can't find any mention of dialects anywhere in the Drools 4 manual. Am I missing something? 2. I've tried the following after finding a snippet in the archives for this list: package mvanamibia.claim; import java.lang.Object; import java.lang.String; import

Re: [rules-users] Please help - losing hair

2007-08-16 Thread Manjax23
I had same problem with 4M2 release. Please upgrade it to either 4.0.0 GA or 4M3 release. You can also find a sample example ShoppingExample.java and Shopping.drl, which is self-explanatory. However, I was not able to test few MVEL features like projections, which i think if added would make

[rules-users] trivial case in xls

2007-08-16 Thread Bin Shen (BA/EDD)
Hi, all, use 4.0.0 GA. want to have an xls rule file. i am not sure of how to define the following trivial case in xls. can anybody help? thanx! when $p : Person() then // do something with any person end / Ben

Re: [rules-users] Drools - is dynamic change possible ?

2007-08-16 Thread Geoffrey Wiseman
On 8/16/07, pns77 [EMAIL PROTECTED] wrote: Now, is it possible to change the logic dynamically at runtime ? Or is the drl file used only to externalize the business logic? I tried changing the message in drl file and it didnt get reflected Unless things have changed radically since the last

Re: [rules-users] Please help - losing hair

2007-08-16 Thread Mark Proctor
These days trunk snapshot is the best place, as it has all the latest fixes, this is what will make up 4.0.1 when its releases. http://cruisecontrol.jboss.com/cc/artifacts/jboss-rules Mark Manjax23 wrote: I had same problem with 4M2 release. Please upgrade it to either 4.0.0 GA or 4M3

Re: [rules-users] trivial case in xls

2007-08-16 Thread Manjax23
Download the example.zip and there is a sample ExamplePolicyPricing.xls and PricingRuleDTExample.java. :) pls read documentation :) Bin Shen (BA/EDD) wrote: Hi, all, use 4.0.0 GA. want to have an xls rule file. i am not sure of how to define the following trivial case in xls. can

Re: [rules-users] RuntimeDroolsException

2007-08-16 Thread Geoffrey Wiseman
On 8/16/07, Mark Proctor [EMAIL PROTECTED] wrote: I'll probably want to speak to ILog about help with JRules. Mark :) -- Geoffrey Wiseman ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] RuntimeDroolsException

2007-08-16 Thread Kris Verlaenen
This exception is thrown when it cannot find (one of) the necessary libraries for loading the Java Dialect. In this case probably the eclipse jdt compiler. Make sure all the necessary dependencies are in your classpath. If you are using a Drools project, the Drools classpath container should

RE: [rules-users] trivial case in xls

2007-08-16 Thread Bin Shen (BA/EDD)
hi, Manjax, have studied the example that u mentioned. take the schema as follows: object type $p : Person snippet ? cell? i mean a special case when there is no field constraint at all. if i leave out the snippet. some runtime

[rules-users] RE: trivial case in xls

2007-08-16 Thread Manjax23
http://downloads.jboss.com/drools/docs/4.0.0.13773GA/html_single/index.html#d0e1805 Condition and action cell should not be null and should contain valid data. If you could see a small plus sign, expand it.you should be able to see the parameters that are passed to the rule, and both the

[rules-users] Re: Drools 4.0 problem: insert (drl) not reflected StatefulSession.

2007-08-16 Thread Michael Waluk
The log file also shows that the BenefitsProgramEvent was inserted properly. So why wouldn't it appear in the working memory? Do I need to do something special or is somehow inserted in another working memory? Thanks for any suggestions, Michael object-stream list

RE: [rules-users] RE: trivial case in xls

2007-08-16 Thread Bin Shen (BA/EDD)
but, u haven't answered my question. i see the grouped hidden lines in the example. i use yr terms. the condition (snippet in my term) can not be empty, and the action (cell in my term) can be empty. in my case how should i put the condition, when no field constraint is there? how should i

[rules-users] RE: trivial case in xls

2007-08-16 Thread Bin Shen (BA/EDD)
sorry, i used the wrong word action, instead of data. take the schema once more to avoid misunderstanding (assume no grouped rows). --- | CONDITION --- object type/| $p :

Re: [rules-users] bug in accumulate

2007-08-16 Thread Edson Tirelli
Sorry, this message just came to my attention. A variable bound in the source pattern can only be used in the action() and reverse() blocks. This makes sense because the init() and result() blocks are executed only once for all matches, while the action() and reverse() blocks are executed

[rules-users] Drools Puzzles round 1 result

2007-08-16 Thread Drools Puzzle
Hi all, many thanks to all the participators in the round 1 and congratulations to the winner Dr. Starke. I'll post a detailed report with current scores of all participators and comments to each solution to Drools wiki tomorrow. Now it's Dr. Starke's turn to post the next puzzle. Happy

[rules-users] programmatic manipulation of 4.0 salience?

2007-08-16 Thread Scott Reed
My 3.1 app has a mechanism that allowed the user to change the salience of some rules before running them, before loading up WorkingMemory. This was quite simple, rule.getSalience() returned a rule's int salience value and rule.setSalience(int) set it. Now in 4.0 I see salience is no longer just

Re: [rules-users] programmatic manipulation of 4.0 salience?

2007-08-16 Thread Manjax23
Salience salience = new SalienceInteger( Integer.parseInt( salienceText ) ); rule.setSalience( salience ); Cheers, manjax23 Scott Reed-4 wrote: My 3.1 app has a mechanism that allowed the user to change the salience of some rules before running them, before loading up WorkingMemory. This