Re: [rules-users] How to manage roles and generate web-forms using Drools Flow?

2010-06-22 Thread KiranP
hello aman, according to me using drools rule flow is the best option to go with... according to what i get from your specified problem is you want 2 things : 1. u need to manage alternate flows using drools (i.e. leads request must go to manager etc.) ANS : this is fairly simple a

Re: [rules-users] Inter-fact comparison

2010-06-22 Thread Greg Barton
A regular old accumulate could do this.  Doesn't even have to be custom: rule "many bogus attempts" when $login : Login( $baseName : name) $total : Number( intValue > 5 ) from accumulate( Login( this != login, eval(levenshtein(name, baseName) ), init( int total = 0; ), action( total++; ), reverse(

Re: [rules-users] Inter-fact comparison

2010-06-22 Thread Earnest Dyke
Thanks for the quick reply. Yes, the original facts are already coming in via a stream (Fusion) to an existing set of rules so I was hoping to build on that. What I am trying to do is evaluate logins information as users are attempting to login trying to identify hack attempts by a person tryi

Re: [rules-users] Inter-fact comparison

2010-06-22 Thread David Sinclair
Hi Earnie, What you are explaining seems pretty straight forward and would more likely than not be overkill to use a rule engine. Are there other aspects of the system you are leaving out that warrant the use of Drools? dave 2010/6/22 Earnest Dyke > Greetings all, > > I have a requirement to c

Re: [rules-users] Couple of questions about Timers

2010-06-22 Thread nanic23
I'm looking to implement this behavior in ruleflow (DRF) either with the Timer node or the Timers present in the properties of a work item. Thanks! -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Couple-of-questions-about-Timers-tp912788p915073.html Sent fr

Re: [rules-users] Timer Date definition for Timer nodes

2010-06-22 Thread nanic23
Just to clarify I'm asking about this function in ruleflow (DRF) Thanks! -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Timer-Date-definition-for-Timer-nodes-tp912660p915070.html Sent from the Drools - User mailing list archive at Nabble.com. __

[rules-users] Inter-fact comparison

2010-06-22 Thread Earnest Dyke
Greetings all, I have a requirement to compare a set of facts against each other, calculate a value that indicates the amount of difference (Levenshtein distance) between a single attribute on each fact. So I load all of my facts into working memory then what? Do I execute a rule first that cre

Re: [rules-users] Drools 5 setGlobal

2010-06-22 Thread Samuli Saarinen
Removing the insert command has no effect on the outcome. Mauricio Salatino wrote: > yes you are right.. did you try removing the insert cmd from the second > code snippet? > just to have the same scenario? > The first code should fail as the second. With the message Unexpected > global [test2]

[rules-users] What is the format for sql-dates in Guvnor Test Scenarios?

2010-06-22 Thread ediblespread
Question is in the title really. Have a Java model for Drools, which includes a few tables with SQL Date fields (using java.sql.Date). How do I represent these in a Drools test scenario when testing my rules? Using the -mm-dd format gives back an error: ...could not access/write property (dat

Re: [rules-users] Drools 5 setGlobal

2010-06-22 Thread Mauricio Salatino
yes you are right.. did you try removing the insert cmd from the second code snippet? just to have the same scenario? The first code should fail as the second. With the message Unexpected global [test2] On Tue, Jun 22, 2010 at 8:40 AM, Samuli Saarinen wrote: > Actually I am trying to set an unex

Re: [rules-users] Drools 5 setGlobal

2010-06-22 Thread Samuli Saarinen
Actually I am trying to set an unexistent variable (test2) in both snippets. But for some reason only the second one produces the exception. Samuli Salaboy wrote: > Well, in the second code snippet you are trying to set an unexistent > variable called test2. For setting a global variable you n

Re: [rules-users] Drools 5 setGlobal

2010-06-22 Thread Salaboy
Well, in the second code snippet you are trying to set an unexistent variable called test2. For setting a global variable you need to define it first in the drl file. Greetings! - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - M

[rules-users] How to manage roles and generate web-forms using Drools Flow?

2010-06-22 Thread Aman Aggarwal
Hi all I am creating a workflow(integrated into a Java web application) for a leave application approval. The workflow is as follows: Leave request is raised for an employee. Case 1: If employee's role is not team lead. The request is sent to employee's team lead. If team lead rejects, workflow

[rules-users] Drools 5 setGlobal

2010-06-22 Thread Samuli Saarinen
Hello, I'm new to drools and have problems with globals or with the different behaviour of drools depending on how the globals are specified. I have the following simple rule: global String test rule "Global" when then System.out.println(test); end If i run the rule with: Knowledg

[rules-users] Thank you...

2010-06-22 Thread reddy80
Hi Geoffrey, Thanks for the suggestions. Its working fine now. Coming to Drools Planner - How can I start off a new project and What shld be the environment setup? My project is in such a way that Planner would be the best choice to implement it. I have been searching/googling a lot to get some

Re: [rules-users] Improve JPA persistence JIRA

2010-06-22 Thread tolitius
that's right.. did not notice there is no 5.1.0 M2.. Thank you. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Improve-JPA-persistence-JIRA-tp912770p913334.html Sent from the Drools - User mailing list archive at Nabble.com. _