[rules-users] Help regarding Guvnor 5.0 integration in secured application (https protocol)

2010-08-01 Thread Swapnil Sawant
Hi, I am implementing drools 5.0(Guvnor GUI) in my application (protocol for same is https) For this purpose , I have set up drools 5.0 framework code needed to run the rules from my application. Also, I have integrated Guvnor GUi code inside my application itself. While doing implementation

[rules-users] Help regrading branching of call to a rule depending upon date

2010-07-29 Thread Swapnil Sawant
Hi, I am evaluating Drool Gunvor for to implement Rules for some finance related functionality. I need help from users to implement following scenario is Drools-Guvnor I have created simple Rule to Calculate House Rent Allowance i.e. HRA as HRA = 0.12 * Basic salary .(Basic will come as Inpu

[rules-users] Help : Enabling Role Base Authorization in Guvnor

2010-07-28 Thread Han Ming Low
Hi all, I try to enable the Role Base Authorization in Guvnor after it was running fine with the default login mechanism. But, encountered some problem with the attempt. What I did was that in the components.xml, - commented out the default - uncomment the - change the role base authorization t

Re: [rules-users] Help : Can't see process in gwt-console

2010-07-21 Thread Han Ming
: [rules-users] Help : Can't see process in gwt-console Hi, Which version are you using? I would recommend trying with the latest version in case of issues: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/drools-5.1.0.SNAPSHOT-gwt-console.zip Did you - ad

Re: [rules-users] Help : Can't see process in gwt-console

2010-07-21 Thread Kris Verlaenen
ules-users@lists.jboss.org Sent: Tuesday, July 20, 2010 5:58 AM Subject: [rules-users] Help : Can't see process in gwt-console Hi, I'm trying to start a sample process in the gwt-console by following a video tutorial and list thread http://blog.athico.com/2009/10/drools-51-m

[rules-users] Help : Can't see process in gwt-console

2010-07-19 Thread Han Ming Low
Hi, I'm trying to start a sample process in the gwt-console by following a video tutorial and list thread http://blog.athico.com/2009/10/drools-51-m1-release-notes.html http://markmail.org/message/y4sae37xvv44shhh What I did was - start h2 - start human task - start jboss It looks to me that all

Re: [rules-users] Help Needed in Drools Flow

2010-07-15 Thread santosh mukherjee
This is the code that I am using in the OnEntryActions part of my workItem. System.out.println(context.getProcessInstance().getWorkingMemory()); FactHandle fac=context.getProcessInstance().getWorkingMemory().insert(new Name("santosh")); System.out.println(fac); org.drools.runtime.rule.WorkingMemor

Re: [rules-users] Help Needed in Drools Flow

2010-07-15 Thread santosh mukherjee
Hi, I have inserted some objects into the process session through ksession.insert(Object arg0) method call in the class file that starts the process.Now I want to access those objects in my workItem on entry action code. Can I do it? If yes please let me know how?? Thanks Santosh Mukherjee. On W

Re: [rules-users] Help Needed in Drools Flow

2010-07-14 Thread Chris Raschl
Am 14.07.2010 12:05, schrieb santosh mukherjee: > Hi, > > I want to add some of my own customized components to Drools Flow components > pannel. How can this be done. Is there some API available to do so ?? Hi, i guess you want to add domain specific work items to use them in the process design

[rules-users] Help Needed in Drools Flow

2010-07-14 Thread santosh mukherjee
Hi, I want to add some of my own customized components to Drools Flow components pannel. How can this be done. Is there some API available to do so ?? Thanks Santosh Mukherjee ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.

Re: [rules-users] Help: Web based console for editing BPMN2 in 5.1M2 or SNAPSHOT

2010-07-11 Thread Low Han Ming NCS
Hi Mark, Thanks! Han Ming From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mark Proctor Sent: Monday, July 12, 2010 10:14 AM To: rules-users@lists.jboss.org Subject: Re: [rules-users] Help: Web

Re: [rules-users] Help: Web based console for editing BPMN2 in 5.1M2 or SNAPSHOT

2010-07-11 Thread Mark Proctor
Ming *From:* rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] *On Behalf Of *Mark Proctor *Sent:* Monday, July 05, 2010 9:00 PM *To:* rules-users@lists.jboss.org *Subject:* Re: [rules-users

Re: [rules-users] Help: Web based console for editing BPMN2 in 5.1M2 or SNAPSHOT

2010-07-11 Thread Low Han Ming NCS
-boun...@lists.jboss.org] On Behalf Of Mark Proctor Sent: Monday, July 05, 2010 9:00 PM To: rules-users@lists.jboss.org Subject: Re: [rules-users] Help: Web based console for editing BPMN2 in 5.1M2 or SNAPSHOT There is an additional WAR for oryx that must be installed first, kris should be able to

Re: [rules-users] Help: Web based console for editing BPMN2 in 5.1M2 or SNAPSHOT

2010-07-05 Thread Mark Proctor
There is an additional WAR for oryx that must be installed first, kris should be able to provide more details on that. Mark On 05/07/2010 07:17, Low Han Ming NCS wrote: Hi, I saw on the blog post that there will be a browser base tool to edit BPMN2 processes in Guvnor 5.1. _http://blog.at

[rules-users] Help: Web based console for editing BPMN2 in 5.1M2 or SNAPSHOT

2010-07-04 Thread Low Han Ming NCS
Hi, I saw on the blog post that there will be a browser base tool to edit BPMN2 processes in Guvnor 5.1. http://blog.athico.com/2010/06/browser-based-bpmn2-authoring-in-drools.h tml I have downloaded the 5.1M2 and also the last successful build from http://hudson.jboss.org/hudson/job/drools/last

Re: [rules-users] HELP Drools Guvnor

2010-06-18 Thread Baig, Kaleem
18, 2010 4:23 AM To: Rules Users List Subject: Re: [rules-users] HELP Drools Guvnor What you are asking for is incredibly insecure and bad for so many reasons... If you really want to be passing around your passwords in the url for anybody to see then what you may be able to do is to use the stan

Re: [rules-users] HELP Drools Guvnor

2010-06-18 Thread Swindells, Thomas
://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-guvnor/html_single/index.html#d0e149 Thomas From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Baig, Kaleem Sent: 17 June 2010 21:04 To: rules-users@lists.jboss.org Subject: [rules-users] HELP Drools

[rules-users] HELP Drools Guvnor

2010-06-17 Thread Baig, Kaleem
I have been able to create users for Guvnor as admin and guest. But what I want is, instead of going to the login form http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html I should be able to pass in the username and password through a query string. Such as shown below: http

[rules-users] help

2010-06-08 Thread ron riley
help rules-users-requ...@lists.jboss.org wrote: > 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 subjec

[rules-users] Help needed in configuring drools guvnor with MySql

2010-05-26 Thread Dinesh kumar
Hi, I am trying to configure Drools Guvnor with MySql. I am using JBoss 4.0 . I searched the web and changed my repository.xml that was created in my JBoss/bin . But I am getting one exception after another and finally I am struck up in this exception. Any help on this will be of great help.. de

Re: [rules-users] help in date time format

2010-05-16 Thread Sudhir M
oss.org wrote on 05/13/2010 07:14:41 AM: > >> From: >> >> Esteban Aliverti >> >> To: >> >> Rules Users List >> >> Date: >> >> 05/13/2010 07:20 AM >> >> Subject: >> >> Re: [rules-users] help in date ti

Re: [rules-users] help in date time format

2010-05-13 Thread Steve Ronderos
> > Date: > > 05/13/2010 07:20 AM > > Subject: > > Re: [rules-users] help in date time format > > Sent by: > > rules-users-boun...@lists.jboss.org > > Maybe using a function to convert Strings to Date? > On Thu, May 13, 2010 at 9:06 AM, Sudhir M

Re: [rules-users] help in date time format

2010-05-13 Thread Esteban Aliverti
Maybe using a function to convert Strings to Date? On Thu, May 13, 2010 at 9:06 AM, Sudhir M wrote: > Hi, > > My requirement is to compare two dates one a date object and the other > a date literal. In comparison it should also consider time. There is > format given for date literal (dd-mmm-yyy)

[rules-users] help in date time format

2010-05-13 Thread Sudhir M
Hi, My requirement is to compare two dates one a date object and the other a date literal. In comparison it should also consider time. There is format given for date literal (dd-mmm-yyy) but how can we add time to it? I tried adding time it doesn't complain but seems to ignore the time part in the

Re: [rules-users] Help with LHS expression

2010-03-04 Thread Yamil Bracho
Ooops!Thanks a lot and yes, I need a new pair of glasses..! Date: Thu, 4 Mar 2010 11:34:14 -0500 From: ed.tire...@gmail.com To: rules-users@lists.jboss.org Subject: Re: [rules-users] Help with LHS expression You have a typo: double quote in here -> numérico"" Whenever t

Re: [rules-users] Help with LHS expression

2010-03-04 Thread Enda J Diggins
Hi Yamil, It looks to me like you might have another error in your first rule. There are two closing double quotes in your RHS. This could cause the error you're seeing. try: rule "Header - NumeroArchivo Numerico" salience 50 when Map( this["NU_ARCHIVO"] not matches "[0-9]\{3\}") then

Re: [rules-users] Help with LHS expression

2010-03-04 Thread Edson Tirelli
You have a typo: double quote in here -> numérico"" Whenever the error says something like "Line 0:-1" means the lexer did not found the end character in a token, so you have for example an open quote for strings, without the closing quote. Edson 2010/3/4 Yamil Bracho > Hi > I have a

[rules-users] Help with LHS expression

2010-03-04 Thread Yamil Bracho
HiI have a map that contains some data and I would like to check if a value inside this map is numeric. I wrote : rule "Header - NumeroArchivo Numerico" salience 50 whenMap( this["NU_ARCHIVO"] not matches "[0-9]\{3\}") then listBitacora.add(new BitacoraDTO($map.get("_NUMLINE_"),

[rules-users] Help in fixing Persistence of a process

2009-11-16 Thread ramram8
I am trying to create a workflow scenario in the GWT console. So what I am doing is that I am uploading the jar file and the rule flow into the Guvnor in order to use the scenario in the Gwt Console. I start a task service alone and start the JBOSS with no problems when loggin in into the GWT con

Re: [rules-users] Help me improve my rules performance.

2009-11-15 Thread ABRA2
YOU have made my Day! :jumping: Thanks for the immediate reply. rgds ABRA2 -- View this message in context: http://old.nabble.com/Help-me-improve-my-rules-performance.-tp26261345p26367500.html Sent from the drools - user mailing list archive at Nabble.com. _

Re: [rules-users] Help me improve my rules performance.

2009-11-15 Thread Wolfgang Laun
On Mon, Nov 16, 2009 at 7:16 AM, Greg Barton wrote: > The answer to both questions is basically the same: use the "this" > reference. > > rule CheckValidBinNumber > when > $br:BillingRecord(cardNo!=null || cardNo!="") > This part, taken from the original mail, looks suspicious to me: if cardNo

Re: [rules-users] Help me improve my rules performance.

2009-11-15 Thread Greg Barton
cordHelper.MERCHANT_NO_ASSIGNED_INFO,log); end --- On Sun, 11/15/09, ABRA2 wrote: > From: ABRA2 > Subject: Re: [rules-users] Help me improve my rules performance. > To: rules-users@lists.jboss.org > Date: Sunday, November 15, 2009, 11:13 PM > > Thanks  a lot. Your suggestions h

Re: [rules-users] Help me improve my rules performance.

2009-11-15 Thread ABRA2
Thanks a lot. Your suggestions has helped me improve my rule's performance. I have two more rule i need help with. 1. How do i check for condition of boolean variable without using eval like in the case below? rule CheckValidBinNumber when $br:BillingRecord(cardNo!=null || cardNo!="") $

Re: [rules-users] Help with StatefulSession and Stream Mode

2009-11-13 Thread Nestor Tarin Burriel
Hi Ric, The method fireAllRules shouldn't block you ... I'm also using similar rules and similar fact inyection system and the fireAllRules never block me ... isnt it? 2009/11/13 richarda > > I may have solved this, but still not sure I am doing this 'correctly' > > I have changed this to use o

Re: [rules-users] Help with StatefulSession and Stream Mode

2009-11-13 Thread richarda
I may have solved this, but still not sure I am doing this 'correctly' I have changed this to use one call to fireUntilHalt() and then from the insert code it now inserts the fact and runs: ksession.startProcess("rulesflow"); (and no fireAllRules) which seems to bring the engine

[rules-users] Help with StatefulSession and Stream Mode

2009-11-13 Thread richarda
Hi all, I am stuck trying to understand how to setup my drools system.. I am using Stream mode, with some negative rules, and a continuous stream of facts. Facts are evaluated and will in turn insert events into the memory if required. I thought it would be like this: First, setup, Knowledge

Re: [rules-users] Help me improve my rules performance.

2009-11-08 Thread Greg Barton
rdHelper.BAC_ASSIGNED_INFO,log); end And I figure rules like this will be a heck of a lot faster... --- On Sun, 11/8/09, ABRA2 wrote: > From: ABRA2 > Subject: [rules-users] Help me improve my rules performance. > To: rules-users@lists.jboss.org > Date: Sunday, November 8, 2009, 11

[rules-users] Help me improve my rules performance.

2009-11-08 Thread ABRA2
Hi, I have an example of two rules we use in our project. Rule CheckStationNumber checks if the station number field is null in BillingRecord Object which is stored as a list in AssertionObject object. Rule AssignBAC gets a value from a static map(we dont want to do database calls eachtime.so w

Re: [rules-users] Help needed - Problems with forall operator

2009-11-07 Thread Tom.E.Murphy
the sender immediately by reply e-mail and delete this message.  Thank you for your cooperation. -- Message: 1 Date: Sat, 7 Nov 2009 09:55:37 +0100 From: Wolfgang Laun Subject: Re: [rules-users] Help needed - Problems with f

Re: [rules-users] Help needed - Problems with forall operator

2009-11-07 Thread Edson Tirelli
Yap, Wolfgang has the picture right. Just 2 clarifications: * A single pattern forall in Drools is a syntax sugar to a multi-pattern forall in the following way: forall( Pattern( ) ) => forall( $p : Pattern() Pattern( this == $p, ) In other words, drools uses the fact type to de

Re: [rules-users] Help needed - Problems with forall operator

2009-11-07 Thread Wolfgang Laun
Here's the explanation why Tom's version does not work. The first pattern of a "forall" defines the domain, which is: all CreditReport facts; for each object in this domain, the remaining patterns must match; since the FICO pattern merely ascertains the existence of a single FICO chained to a paren

Re: [rules-users] Help understanding rule flow

2009-10-23 Thread Kris Verlaenen
Quoting dbrownell83 : > > Hi, > > I am just going through Conway's game of life to understand how this > works. > I am using the Eclipse plug-in to make life easier. > I see you can either use the agenda-group style, or the rule-flow > style. > > Some points of confusion: > > 1. In killAll.rf,

[rules-users] Help understanding rule flow

2009-10-23 Thread dbrownell83
Hi, I am just going through Conway's game of life to understand how this works. I am using the Eclipse plug-in to make life easier. I see you can either use the agenda-group style, or the rule-flow style. Some points of confusion: 1. In killAll.rf, there is "calculate before" and "calculate aft

Re: [rules-users] Help with Drools Flow

2009-10-08 Thread Kris Verlaenen
By default, the engine only executes rules if you tell it to. So the behaviour you are describing is indeed the expected behaviour, the ruleflow-group will remain active until all rules in it that are active have been executed. So you need to call fireAllRules() manually or run the engine in reac

[rules-users] Help with Drools Flow

2009-10-07 Thread Nair, Mahesh
Hi, I have recently started with Drools flows . I am having some trouble using the ruleFlowGroup node. The way I understood the user guide is that when the flow reaches a ruleFlowGroup the engine will start firing rules associated to the specific rule flow group . But when I try what I see is

[rules-users] Help needed for a weird issue when firing an external event with Drools Expert and Flow

2009-07-07 Thread kitc25
I have the the following rule, rule "Validation" ruleflow-group "Validation" when $tar : MyObject() eval ($tar.validation() == true) then kcontext.getKnowledgeRuntime.signalEvent("ValidationError", null); end Where ValidationErr

Re: [rules-users] Help debugging NPE

2009-06-25 Thread Edson Tirelli
Oh, ok. Then it is shadow proxy related. :) Shadow proxies can't override final methods, and if they can't override them, they can not safely prevent hashcode changes at unsafe points... and that causes all kind of problems with hashmaps that are used internally. Drools 5 no longer requi

Re: [rules-users] Help debugging NPE

2009-06-25 Thread Dirk Bergstrom
Edson Tirelli was heard to exclaim, On 06/24/09 15:43: > Drools 5 is mostly backward compatible with Drools 4. You don't need > to migrate to the new API, although it is recommended. Ahh, that's good to know. You might want to mention that somewhere in the release notes, or on the website. I

Re: [rules-users] Help debugging NPE

2009-06-24 Thread Edson Tirelli
Dirk Drools 5 is mostly backward compatible with Drools 4. You don't need to migrate to the new API, although it is recommended. Anyway, I understand your concern. My wild wild guess is that the memberOf operator is complaining about a null in that constraint. If that is the case, it

Re: [rules-users] Help debugging NPE

2009-06-24 Thread Dirk Bergstrom
Edson Tirelli was heard to exclaim, On 06/24/09 06:14: > The problem seems not related to shadow facts, but to constraint > resolution and fact data extraction. It might be a bug or not... need > more info. I've also seen the following stacktrace: java.lang.ArrayIndexOutOfBoundsException: 4

Re: [rules-users] Help debugging NPE

2009-06-24 Thread Edson Tirelli
Dirk, The problem seems not related to shadow facts, but to constraint resolution and fact data extraction. It might be a bug or not... need more info. In any case, the offending rule is not the one you showed. The offending rule contains a double beta constraint in a join: org.

[rules-users] Help debugging NPE

2009-06-23 Thread Dirk Bergstrom
I'm running into an NPE using Drools 4.0.7, and I'm stumped by it (stacktrace below). I made some changes to seemingly unrelated code, and this error started showing up. It would help me to understand what's going on if someone could tell me roughly what's going on here. Since the error is throw

RE: [rules-users] help

2009-06-23 Thread Anstis, Michael (M.)
aire ) Sent: 22 June 2009 16:54 To: rules-users@lists.jboss.org Subject: [rules-users] help Effectivly by using the version 4 and plugin 4 of drools, the application Works without any problem, but with version 5 and plugin 5 of drooos i have allwise the exception. Is the first time that I use

[rules-users] help

2009-06-22 Thread SHIMI Abdelouahad ( Prestataire )
Effectivly by using the version 4 and plugin 4 of drools, the application Works without any problem, but with version 5 and plugin 5 of drooos i have allwise the exception. Is the first time that I use Drools, I don't undurtand why don't work, I need the help. Please please help This e-mail and

[rules-users] Help with LHS part of the Rule

2009-06-20 Thread new2drools
I am using Drools 5. In the LHS part of a rule, is it possible to call a method, in a class instance (that has been inserted into the working memory) which expects two parameters, and returns a boolean? For example, how can I invoke the following method in LHS (in a DRL file) part of the rule?

Re: [rules-users] help

2009-06-19 Thread Jaroslaw Kijanowski
Can you try *the same versions* of the plugin+runtime and Guvnor. GA should work. SHIMI Abdelouahad ( Prestataire ) wrote: I was deploy Guvnor(drools-5.0.0.CR1-guvnor) as an exploded archive on the JBoss Application Server(version jboss-4.2.3.GA). And I was * Create categories, ok * Cre

Re: [rules-users] help

2009-06-19 Thread SHIMI Abdelouahad ( Prestataire )
Yes I have build package with any probleme When the application run I have this message: connection, reason: No current connection., state/code: 08003/4 16:22:35,981 INFO [STDOUT] ERROR 19-06 16:22:35,981 (Contexts.java:flushAndDestroyContexts:335) could not discover transaction status 1

Re: [rules-users] help

2009-06-19 Thread David Sinclair
Did you build the package on guvnor? On Fri, Jun 19, 2009 at 8:14 AM, SHIMI Abdelouahad ( Prestataire ) < abdelouahad.shimi.prestata...@unibail-rodamco.com> wrote: > I was deploy Guvnor(drools-5.0.0.CR1-guvnor) as an exploded archive on > the JBoss Application Server(version jboss-4.2.3.GA). > An

[rules-users] help

2009-06-19 Thread SHIMI Abdelouahad ( Prestataire )
I was deploy Guvnor(drools-5.0.0.CR1-guvnor) as an exploded archive on the JBoss Application Server(version jboss-4.2.3.GA). And I was * Create categories, ok * Create package,ok * Importe model, ok * Create rule, ok And create a simple Drools application(with Eclipse vers

[rules-users] Help -- running JSR-94 TCK with drools-jsr

2009-06-17 Thread Chuck Baker
Hi, The mvn package nicely generated the tck_res_1.xml and tck_res_2.xml fles. All the implementation instructions I've been able to find indicate that an additional file run_tck.xml is also needed. Is there a way to generate this file as well? thanks Charles Baker Charles Binford wrote:

Re: [rules-users] Help -- Conditional Logic in DRL

2009-06-16 Thread new2drools
; ... > end > > rule "ElseAtCondition0" > when > !Condition0 > then > ... > end > > --- On Mon, 6/15/09, Scott Reed wrote: > >> From: Scott Reed >> Subject: Re: [rules-users] Help -- Conditional Logic in DRL >> To: "Rules Use

Re: [rules-users] Help -- Conditional Logic in DRL

2009-06-16 Thread Wolfgang Laun
tion0 > !Condition1 > then > ... > end > > rule "ElseAtCondition0" > when > !Condition0 > then > ... > end > > --- On Mon, 6/15/09, Scott Reed wrote: > > > From: Scott Reed > > Subject: Re: [rules-users] Help -- Conditional Logic in

Re: [rules-users] Help -- Conditional Logic in DRL

2009-06-15 Thread Greg Barton
Condition0" when !Condition0 then ... end --- On Mon, 6/15/09, Scott Reed wrote: > From: Scott Reed > Subject: Re: [rules-users] Help -- Conditional Logic in DRL > To: "Rules Users List" > Date: Monday, June 15, 2009, 10:19 PM > Looks like 5 rules with a global fl

Re: [rules-users] Help -- Conditional Logic in DRL

2009-06-15 Thread Scott Reed
Looks like 5 rules with a global flag might work: global boolean flag = false; rule "name1" when (condition1 == true ) (flag == false) then consequence1(); flag = true; end ... rule "name5" when (condition5 == true ) (flag == false) then consequence5(); flag = true; end Does that work

[rules-users] Help -- Conditional Logic in DRL

2009-06-15 Thread Vishy
Hi All, I am new to drools...and am trying to figure out as to how I can represent the following logic in a DRL file. if (condition1) { if (condition2) { } else if (condition3) { } else if (condition 4) { } else if (condition 5) { } } In DSL, a typical rule is represented as foll

Re: [rules-users] Help creating a GUI for an example

2009-06-04 Thread Wolfgang Laun
I have a few idle days starting this weekend. I have some (real-world) experience doing 2D graphics with AWT, so I might qualify ;-) Send me the specs, please, unless you are already crowded by applications. -W On 6/3/09, Edson Tirelli wrote: > >Hey people, > >To achieve a list of shor

[rules-users] Help creating a GUI for an example

2009-06-02 Thread Edson Tirelli
Hey people, To achieve a list of short term goals related to Drools, I am implementing a fairly interesting new example using as many features from the Drools 5 platform as I see fit. Among other things, this example will serve as a basis for a few tutorials on the engine capabilities that I

Re: [rules-users] Help with MatchesEvaluatorsDefinition that caches compiled regular expression patterns

2009-05-04 Thread Edson Tirelli
Jared, Your idea is actually interesting. Although, we would need to take care of a few edge scenarios: * The actual evaluator instance is supposed to be a "fly weight" implementation, and as so, it might be used by multiple threads. So, first thing, the cache map implementation must be thr

[rules-users] Help with MatchesEvaluatorsDefinition that caches compiled regular expression patterns

2009-05-04 Thread Jared Davis
I need some help placing a cache of compiled regular expressions using the MatchesEvaluatorsDefinition as a starting point. Just for a test I placed a static map in the class: static Map uglyHack = new HashMap(); Then in each of the evaluators I have different versions of: Pattern p =

Re: [rules-users] help in writing this rule logic

2009-03-31 Thread Mark Proctor
techy wrote: Hello, Please guide me to implement following rule. I would like to found out the city where absence of either Male or Female found for same age. I also need to have ref to those Men and Female of that city in collection to use it RHS. Also there will be max of one male & female for

[rules-users] help in writing this rule logic

2009-03-31 Thread techy
Hello, Please guide me to implement following rule. I would like to found out the city where absence of either Male or Female found for same age. I also need to have ref to those Men and Female of that city in collection to use it RHS. Also there will be max of one male & female for same age. Mal

Re: [rules-users] Help on using Drools with embedded objects

2009-03-04 Thread David Sinclair
use word boundaries, i.e. \b to denote "words" \bassistant\b On Wed, Mar 4, 2009 at 5:56 AM, D1vy@@Ind1@ wrote: > > Thanks every one, I found a solution to this. I created an utility class > used > it in setGlobal of the drools session. Thus, I could call even non static > methods from the util

Re: [rules-users] Help on using Drools with embedded objects

2009-03-04 Thread D1vy@@Ind1@
Thanks every one, I found a solution to this. I created an utility class used it in setGlobal of the drools session. Thus, I could call even non static methods from the utility class. Could any one help me with regular expressions in Drools. I want to check the existance of any one of the keywo

Re: [rules-users] Help on using Drools with embedded objects

2009-03-02 Thread Greg Barton
gForm(...) $f:StaffingFormMailingServiceImpl() then ... end Unless you have multiple StaffingFormMailingServiceImpl instances, the first option is best. --- On Mon, 3/2/09, D1vy@@Ind1@ wrote: > From: D1vy@@Ind1@ > Subject: Re: [rules-users] Help on using Drools with embedded objects > T

Re: [rules-users] Help on using Drools with embedded objects

2009-03-02 Thread D1vy@@Ind1@
I have still not found a solution to the problem. The problem is that I have a non static function in my service class and i have to call thhat from my drools rule file. The function basically accepts a mail id and if a mailing list returns an arraylist of the individual mail ids in the mailing

Re: [rules-users] Help on using Drools with embedded objects

2009-02-25 Thread David Sinclair
There are many options you could use. Here are a couple - Insert the service object into WM, than match on it and use it on the RHS to call methods on it - Have the service object as a global and call methods on it - Make the service helper methods static and call them directly On We

Re: [rules-users] Help on using Drools with embedded objects

2009-02-25 Thread D1vy@@Ind1@
A couple of more questions, I am calling my rules engine from a service and into the session i am inserting the business object. In my service class, I have a few helper functions, which I need to call from my drl file. How can I do that ? Thanks -D Corneil du Plessis wrote: > > You should

Re: [rules-users] Help with using Agenda filter and firelimit with Web Guided decision tables

2009-02-23 Thread Edson Tirelli
Well found! Thanks for reporting. I will fix and let you know. Edson 2009/2/23 > Hi, > > I'm using *Drools 5.0M5* and *Web Guided decision tables*. What I want to > be able to do is to create several decision tables under one package and > then using an Agenda filter and firelimit option

[rules-users] Help with using Agenda filter and firelimit with Web Guided decision tables

2009-02-23 Thread guyt1122
Hi, I'm using Drools 5.0M5 and Web Guided decision tables. What I want to be able to do is to create several decision tables under one package and then using an Agenda filter and firelimit option to fire one rule from a single decision table that I'm filtering. What I did to try and accomp

Re: [rules-users] Help on using Drools with embedded objects

2009-02-23 Thread David Sinclair
I would suggest that you assert all of your objects into working memory. For example, if you have the object A with an embedded B and C, you need to do the following insert(A); insert(A.B); insert(A.C); than within your rules, join the objects where needed rule A(b$ : b != null) B(this

Re: [rules-users] Help on using Drools with embedded objects

2009-02-23 Thread Corneil du Plessis
You should initialise your globals and then pass them into the session. Your rule file will have: global java.lang.String recipients global java.lang.String to global java.lang.String cc On Mon, 2009-02-23 at 06:23 -0800, D1vy@@Ind1@ wrote: > Thanks for your help , Sudhir, > > I used > > ru

Re: [rules-users] Help on using Drools with embedded objects

2009-02-23 Thread D1vy@@Ind1@
Thanks for your help , Sudhir, I used rule when $a:A(b.z.s=="test"); then end And that solved my problem. But I would like to know one more information about global variables. package... dialect java import .., global java.lang.String recipients="di...@gmail.com" global java.lang.String to

Re: [rules-users] Help on using Drools with embedded objects

2009-02-23 Thread Sudhir M
Is B name of the class? If so it should be name of the variable not the class name.As you are using 4.0.7 the above rule can be written as: rule "test" salience 20 no-loop true when $a:A( $b : b); B(X=="testValue") from $b // eval (b.X

Re: [rules-users] Help on using Drools with embedded objects

2009-02-23 Thread D1vy@@Ind1@
Sudhir, Thanks for the information ... To give more data.. I am using drools 4.0.7 version. I have appropriate setters and getters in all my classes A, B, Z. My drools file look like this: rule "test" salience 20 no-loop true when $a:A( b : B);

RE: [rules-users] Help on using Drools with embedded objects

2009-02-23 Thread Vikrant Yagnick
ers@lists.jboss.org Subject: [rules-users] Help on using Drools with embedded objects Hi, I am planning to use Drools - JBoss Rules Engine. My requirement is to disburse mails from my application to different groups based on various criteria. I want to use Drools here. My object structure is as foll

Re: [rules-users] Help on using Drools with embedded objects

2009-02-23 Thread Sudhir M
Hi D, I don't know which version of drools are you using. If u are using drools 4 or higher you can use 'from' to write rules on nested objects. All u need to do is insert the root pbject in the working memory Regards, sudhir. On Mon, Feb 23, 2009 at 2:56 PM, Divya Rajendranath < divya.rajendran

[rules-users] Help on using Drools with embedded objects

2009-02-23 Thread Divya Rajendranath
Hi, I am planning to use Drools - JBoss Rules Engine. My requirement is to disburse mails from my application to different groups based on various criteria. I want to use Drools here. My object structure is as follows: class A{ String B = ""; B b; C c; } Hence Obj A has embedded objects with

Re: [rules-users] Help on writing drl in excel file

2009-01-27 Thread David Sinclair
Why are you writing it using Drools? Will you also have a lot of other rules in your system? If the answer is no, you may want to go another route. If the answer is yes, I would suggest contraining the No of purchase so there are no overlapping ranges, i.e. No Pens Purchased >=10, >=5 < 10, and >=

[rules-users] Help on writing drl in excel file

2009-01-27 Thread niraj manandhar
Dear Sir Thanks for the answer by the way is there any way to slove my free item problem . I want to make a decison table in excel where my client will fill in the item and free item list as Purchased ITem No of purchase Free Item No of free ===

[rules-users] Help writing DRL

2009-01-25 Thread niraj manandhar
I have following condition buying 3 pen gives 1 free pencil buying 5 pen gives 1 free rubber buying 10 pen gives 1 free chocolate so if some one buys 19 pen then his free items will be 1 chocolate due to 10 pen 1 rubber due to remaining (19-10) pen 1 pencil due to remaining (9-5) pen I have obj

[rules-users] Help representing drl files in decision table

2008-11-12 Thread Bhamidi Krishna
How would one represent the following lines (that appear as part of a drl) into an excel decision table $rulesToFire:ListRulesToFire($list:rulesToFire) eval($list.contains("ALL"))Krishna _ Color coding for safety: Windows Live H

[rules-users] Help with syntax for detecting when an object exists, none of whose children match a pattern

2008-09-05 Thread Tom.E.Murphy
As a newbie to Drools (using v4.0.7), I'm struggling a bit with the right way to express the following concept I have a ParentFactObject with an array of ChildFactObjects. The ChildFactObjects have a boolean attribute "TestMe" I want to pattern match all ParentFactObjects for whom all ChildFactOb

RE: [rules-users] Help in using drools

2008-05-12 Thread Stelarinc
is for older drools. Regards, Leonard Soetedjo --- On Thu, 5/8/08, Hehl, Thomas <[EMAIL PROTECTED]> wrote: > From: Hehl, Thomas <[EMAIL PROTECTED]> > Subject: RE: [rules-users] Help in using drools > To: "'Rules Users List'" > Date: Thursday, May

RE: [rules-users] Help in using drools

2008-05-08 Thread Hehl, Thomas
TECTED] On Behalf Of Stelarinc Sent: Thursday, May 08, 2008 6:03 AM To: rules-users@lists.jboss.org Subject: [rules-users] Help in using drools Hi, I would like to use drools in my application. However, there are a few things that I do not quite understand and whether it can fit my requirements. I

[rules-users] Help in using drools

2008-05-08 Thread Stelarinc
Hi, I would like to use drools in my application. However, there are a few things that I do not quite understand and whether it can fit my requirements. I have tried to search through the documentation and mailing list, but to no avail. Here is my situation. I am creating a web-based applica

Re: [rules-users] Help Needed on BRMS with Tomcat

2008-03-03 Thread Mark Proctor
http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesTomcat SB.Raghavendra wrote: Hi All, Iam very new to Drools BRMS.In one of the project we are implementing drools.Currentluy iam working on BRMS.I have downloaded Insurance Example from Jboss and deployed in BRMS.I have downloaded Binary package t

[rules-users] Help Needed on BRMS with Tomcat

2008-03-03 Thread SB.Raghavendra
Hi All, Iam very new to Drools BRMS.In one of the project we are implementing drools.Currentluy iam working on BRMS.I have downloaded Insurance Example from Jboss and deployed in BRMS.I have downloaded Binary package to "c:\Raghu".Now i want to use this downloaded binary package in one of my rule p

RE: [rules-users] Help with my understanding

2007-12-19 Thread John.Dubchak
AM To: Rules Users List Subject: Re: [rules-users] Help with my understanding although it looks like you may want "not matches" instead? On Dec 19, 2007 10:19 AM, Andrew Robinson <[EMAIL PROTECTED]> wrote: > How about this: > > rule "Valid Format" > when >

Re: [rules-users] Help with my understanding

2007-12-19 Thread Andrew Robinson
although it looks like you may want "not matches" instead? On Dec 19, 2007 10:19 AM, Andrew Robinson <[EMAIL PROTECTED]> wrote: > How about this: > > rule "Valid Format" > when > $status : RuleResult() > Identifier(value matches "^([0-9]{9})$") > then > $status.addErrorMessage("Identifier do

Re: [rules-users] Help with my understanding

2007-12-19 Thread Andrew Robinson
How about this: rule "Valid Format" when $status : RuleResult() Identifier(value matches "^([0-9]{9})$") then $status.addErrorMessage("Identifier does not match required format"); end http://downloads.jboss.com/drools/docs/4.0.3.15993.GA/html_single/index.html#d0e3318 On Dec 19, 2007 9:48

<    1   2   3   >