[rules-users] Dummy question from a new comer

2011-08-11 Thread cross.cy
Hi, I only started using Guvnor recently. Just wonder if anyone could clarify one question. A good benefit of using Guvnor to manage rules is to decouple the rules from application code. However, the RHS of some rules may involve actions related to other logic classes in application. For example, t

Re: [rules-users] Druplicate rule name: 0

2011-08-11 Thread lhorton
can you post a copy of a failing spreadsheet, i.e. one that gets the error when compiling? -- View this message in context: http://drools.46999.n3.nabble.com/Druplicate-rule-name-0-tp3246425p3247471.html Sent from the Drools: User forum mailing list archive at Nabble.com. __

Re: [rules-users] Druplicate rule name: 0

2011-08-11 Thread bitter
I have RuleTable and I use NAME column. As I said all works till I try (all rules are proper, have names, have flow-group, etc.) to change and save file. Now when exception occurs I copy changed content of the xls to new xls and use new xls instead of old xls and then everything works. But it is aw

[rules-users] Error in Guvnor with Enumerations (5.1.1)

2011-08-11 Thread John Peterson
Hi, I'm trying to utilize a "load method" for Guvnor, but I can't seem to get it working. His is my DataHelper class (modeling it off the documentation): package com.enumerations; import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class DataHelper {

Re: [rules-users] Dependency enumeration

2011-08-11 Thread Michael Anstis
This is a known bug in Guvnor, https://issues.jboss.org/browse/GUVNOR-1106. I assume your example uses a single DSL sentence - if not the bug is still related and at present unresolved. With kind regards, Mike On 11 August 2011 13:05, agarwalk wrote: > Hi > > I have created following enumerat

Re: [rules-users] Druplicate rule name: 0

2011-08-11 Thread Mauricio Salatino
Yes it was RuleTable Instead of RuleSet On Thu, Aug 11, 2011 at 3:13 PM, lhorton wrote: > Look at the Drools Expert doc. the 5.2.0 document says: > > 6.1.4.3. Rule Tables > > All Rule Tables begin with a cell containing "RuleTable", optionally > followed by a string within the > same cell. Th

Re: [rules-users] Druplicate rule name: 0

2011-08-11 Thread lhorton
Look at the Drools Expert doc. the 5.2.0 document says: 6.1.4.3. Rule Tables All Rule Tables begin with a cell containing "RuleTable", optionally followed by a string within the same cell. The string is used as the initial part of the name for all rules derived from this Rule Table, with the row

Re: [rules-users] Druplicate rule name: 0

2011-08-11 Thread bitter
But I have RuleSet, Import and Variables. This exception occurs only sometimes. Sometimes when I change cell outside the decision table and save changes, rules work. -- View this message in context: http://drools.46999.n3.nabble.com/Druplicate-rule-name-0-tp3246425p3246494.html Sent from the Droo

Re: [rules-users] Druplicate rule name: 0

2011-08-11 Thread Mauricio Salatino
If I don't remember wrong you need to have a cell that contains the ruleset name that will be used to generate all the rules names. Check the docs and the examples :) Cheers On Thu, Aug 11, 2011 at 1:21 PM, bitter wrote: > I have 100 rules in xls decision table. > > I modify any rule and save ch

[rules-users] Druplicate rule name: 0

2011-08-11 Thread bitter
I have 100 rules in xls decision table. I modify any rule and save change. Then I try to build create new knwoledge base using this file and I have exception: java.lang.RuntimeException: [784,0]: Duplicate rule name: 0 [801,0]: Duplicate rule name: 0 [818,0]: Duplicate rule name: 0 [837,0]: Dupli

Re: [rules-users] Drools 5.2 performance building KnowledgeBase

2011-08-11 Thread darktyco
Great, thanks for the heads up. I didn't see anything in your JIRA for it, would it help if I created an issue? If needed I am available to help test as well. Thanks -- View this message in context: http://drools.46999.n3.nabble.com/Drools-5-2-performance-building-KnowledgeBase-tp3239746p3246315

Re: [rules-users] Collect with same value

2011-08-11 Thread Wolfgang Laun
You enhance the accumulation context with a Set of those colours where the size drops below 5. Once you encounter a low one you add it to the set, clear the Map entry and block further additions by testing the set. -W On 11 August 2011 15:55, wendy wrote: > Right. But we don't want to match if t

Re: [rules-users] Collect with same value

2011-08-11 Thread wendy
Right. But we don't want to match if the size dropped below 5 during the last 20 m. so if the size for BLUE are: Time 0 5 10 15 20 25 30 35 40 45 50 Size 5 6 7 6 6 6 6 6 6 4 6 at times 25,30,35,40 we would want to trigger but not at 0, 45 or 50. -- View this message in context:

[rules-users] New Fact Role

2011-08-11 Thread Isaac Pereira
Hi, I would like to know if there's a way to add new role types without change the drools core? The reason is to build a module that handles situations (state of affairs) to support context aware systems. Situation would be the new role and then adds all specific handling for this type of fact.

Re: [rules-users] Collect with same value

2011-08-11 Thread Wolfgang Laun
On 11 August 2011 13:06, wendy wrote: > I'm still not sure I can make my rule work like that. Sorry, my real > problem > is a little more complicated then I initially described. > > We are trying to detect if some set of conditions stay within a set of > ranges over a period of time. So still u

[rules-users] Dependency enumeration

2011-08-11 Thread agarwalk
Hi I have created following enumeration and java class file. *Enumeration:* 'OrderData.propertyState':(new com.asps.rules.OrderData()).loadStates() 'OrderData.fulfillmentReviewerName[propertyState]':'(new com.asps.rules.OrderData()).loadReviewers("@{propertyState}")' *Java class:* public clas

Re: [rules-users] Collect with same value

2011-08-11 Thread wendy
I'm still not sure I can make my rule work like that. Sorry, my real problem is a little more complicated then I initially described. We are trying to detect if some set of conditions stay within a set of ranges over a period of time. So still using the example below. The color is really the ke

Re: [rules-users] Drools Queries with relation to the LHS and RHS syntax of the rule

2011-08-11 Thread Wolfgang Laun
Looks OK. -W On 11 August 2011 12:52, Dibya wrote: > Thanks .. > > Just to summarize : > > My modified drl file should be looking something like this (for both the > requirements mentioned). Could you pls verify : > > >

Re: [rules-users] Drools 4.0.7 compatible with Jboss 3.2.7

2011-08-11 Thread Dibya
Would be great of someone can extend help in letting me know if Drolls 4.0.7 is compatible with jboss3.2.7.. The rule version can be deployed in jboss appl server with out any issues ? BR D -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Drools-4-0-7-compatible-wi

Re: [rules-users] Drools Queries with relation to the LHS and RHS syntax of the rule

2011-08-11 Thread Dibya
Thanks .. Just to summarize : My modified drl file should be looking something like this (for both the requirements mentioned). Could you pls verify : === package application.rules global application.customresults.Proje

Re: [rules-users] best way to write this rule?

2011-08-11 Thread Swindells, Thomas
You are thinking too procedurally. You shouldn't be using lists, or collections within the rules, instead generally the thing within the list should be inserted into the working memory. Rather than having the function you can then right something like the following: //person has earned the badge p

Re: [rules-users] Drools Queries with relation to the LHS and RHS syntax of the rule

2011-08-11 Thread Wolfgang Laun
On 11 August 2011 11:25, Dibya wrote: > Just to clarify .. > > 1. The fact ,that will be send from my appl ,will be having a list of name > value pairs like > > Name Value > ----- > > Drools ABC > Java XYZ >

Re: [rules-users] Drools Queries with relation to the LHS and RHS syntax of the rule

2011-08-11 Thread Dibya
Just to clarify .. 1. The fact ,that will be send from my appl ,will be having a list of name value pairs like Name Value ----- Drools ABC Java XYZ Pega false TimeOut60

Re: [rules-users] Drools Queries with relation to the LHS and RHS syntax of the rule

2011-08-11 Thread Wolfgang Laun
There was an almost identical posting not long ago... Repeating: As you present this code, it doesn't make any sense. The condition is a join of two objects, and all parameters are literals - very unlikely. Providing an object to collect results is one reasonable way of doing it. But the syntax