Re: [rules-users] Drools Govnor DB configuration

2009-07-16 Thread Pardeep . Ruhil
Hi, Thanks Jarek for your reply. Still I have one doubt in my mind, how can I see the data for a newly registered user (i.e name & permission ) created through Drools Guvnor administrator functionality. Where should I find the new user data(i.e. name & permission assigned) , so that I can wr

[rules-users] Visu Nageswaran is out of the office.

2009-07-16 Thread Viswanathan Nageswaran
I will be out of the office starting 17/07/2009 and will not return until 18/07/2009. I am in a training today. Response to emails would be delayed. For anything urgent, please call at +91-9884702390. ___ rules-users mailing list rules-users@lists.jbo

Re: [rules-users] Using variables as map keys in MVEL in LHS

2009-07-16 Thread Steve Ronderos
Thanks Edson, worked like a charm! Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 07/16/2009 09:09:31 AM: > [image removed] > > Re: [rules-users] Using variables as map keys in MVEL in LHS > > Edson Tirelli > > to: > > Rules Users List > > 07/16/2009 09:11 AM > > Sent by: >

Re: [rules-users] StatefulKnowledgeSession leaves threads running

2009-07-16 Thread Greg Barton
I have seen similar behavior, though at the time I didn't have the opportunity to investigate the cause. (Sorry about not reporting it at the time.) Unlike the code below it was while calling session.fireUntilHalt(). (In a seperate thread.) After calling session.halt() from another thread the

Re: [rules-users] Drools Govnor DB configuration

2009-07-16 Thread James Owen
Note:  I did ask permission before sending this notice to the Drools Developers and Drools Users Groups.  Greetings:As both Edson Tirelli and Mark Proctor are presenting two great talks at October Rules Fest (http://www.OctoberRulesFest.org) this year, I thought it might be appropriate to let every

Re: [rules-users] StatefulKnowledgeSession leaves threads running

2009-07-16 Thread Rafael Ribeiro
Hi Edson! as I've already mentioned I've modified the sample so, if you get the StockTick sample and replace the Main class this will run fine. The sample shuts down fine but as I saw it sets the JFrame uses frame.setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE ); which in turn makes the

Re: [rules-users] StatefulKnowledgeSession leaves threads running

2009-07-16 Thread Edson Tirelli
Hi Rafael, Are you setting the MultithreadEvaluation option or is this using default options? Do you have an example code that shows this behavior? Thanks, Edson 2009/7/16 Rafael Ribeiro > > Hi all, > > I've downloaded Drools fusion sample and started to make some changes to > t

[rules-users] Question regarding Release 5.1

2009-07-16 Thread McDonald, Daniel
Hi, Does anyone know if there is a roadmap for the next Drools release, an anticipated, forecast, or suspected date, for Release 5.1? Thank you, Dan Office phone: (972) 691-6593 Mobile phone (214) 697-8163 _ The information contained in this message is proprietary and/or co

Re: [rules-users] Using variables as map keys in MVEL in LHS

2009-07-16 Thread Edson Tirelli
This was a bug in one of the MVEL versions that is fixed. Can you update your MVEL jar to one of the latest releases? I think it is 2.0.12. []s Edson 2009/7/16 Steve Ronderos > > Hello, > > Again, I'm working on converting my project that used Drools 4.0.7 to > 5.0.1. > > I've run acro

Re: [rules-users] looking for more information on drools expert

2009-07-16 Thread Gab Aldian
Thank you very much for the precision, I didn't see that. I used 'matches' instead of '==', because using '==' for comparing Strings in java is very unsafe since it compares the references and not the content of the strings. I thought it was the same in drools and I thought 'matches' was the equiva

Re: [rules-users] looking for more information on drools expert

2009-07-16 Thread Edson Tirelli
Very good! :) Just FYI, in the case of accumulate, you could also use the collectList() function to simplify your rule. This: $alarmList : LinkedList() from accumulate ( ($e : Element(parentindex!=0) and $a : Alarm(

Re: [rules-users] Getting hold of the Evaluator Registry

2009-07-16 Thread Edson Tirelli
There are several places that drools looks for configuration files, including your home directory. Although, IMO it makes more sense to keep it confined to the project itself. If you create a dir in your project, like: src/resources/META-INF And then configure the eclipse project to use t

[rules-users] Using variables as map keys in MVEL in LHS

2009-07-16 Thread Steve Ronderos
Hello, Again, I'm working on converting my project that used Drools 4.0.7 to 5.0.1. I've run across a problem with a rule that accesses a map in the LHS using a variable as the key. When MVEL tries to resolve this, it appears that it is not evaluating the variable before accessing the map. I

[rules-users] StatefulKnowledgeSession leaves threads running

2009-07-16 Thread Rafael Ribeiro
Hi all, I've downloaded Drools fusion sample and started to make some changes to the code (first of all wipe out the UI so I can test it easier). I tried to get to a minimal set so I can run a console main class and see what happens but I am facing a strange behaviour. As soon as I start pushi

Re: [rules-users] looking for more information on drools expert

2009-07-16 Thread Gab Aldian
After some more investigation, I managed also to make it work with collect: http://drools.pastebin.com/m14f0e329 I would rather not multiplicate rules, because we probably will have dozens for our system which is very big and can supervise around a thousand equipements in some cases Thank you ver

Re: [rules-users] Updating a Boolean object in the WM

2009-07-16 Thread skasab2s
Thanks Wolfgang! It worked great! The Declare-Command did it perfectly! Nice job! :) Svetlomir. -- View this message in context: http://www.nabble.com/Updating-a-Boolean-object-in-the-WM-tp24513225p24515020.html Sent from the drools - user mailing list archive at Nabble.com. _

Re: [rules-users] Drools Govnor DB configuration

2009-07-16 Thread Jaroslaw Kijanowski
Hi, pardeep.ru...@lntinfotech.com wrote: > > Hi, > I am using Apache OFBiz and had successfully integrated Drools Guvnor > war file with OFBiz. > By default Drools Guvnor supports Embedded derby, but in OFBiz i am > using MYSql , so i changed > the default embedded derby to MySql using reposito

Re: [rules-users] Updating a Boolean object in the WM

2009-07-16 Thread Wolfgang Laun
Well, you can't change a Java object Boolean b; assigning another Boolean to b changes the object reference stored in b. Boolean has no setters. Notice that the CE when Boolean() always is true irrespective of the Boolean object that's in the WM. If writing a Java fact class stra

Re: [rules-users] OFBiz entity engine compatibility with Jackrabbit

2009-07-16 Thread Jaroslaw Kijanowski
Hi pardeep.ru...@lntinfotech.com wrote: > > Hi, > > I am using apache OFBiz which uses Entity engine as a persistence layer. > To know more about Entity engine refer this link > http://ofbiz.apache.org/docs/entity.html > Drools Guvnor uses Jackrabbit as a persistence layaer. > So my question is

[rules-users] Problems with persistence of drools-flow

2009-07-16 Thread Ševčík Martin
I have a simple flow with human task and I want to persist it into database. I'm using MSSQL DB. My code is like this: KnowledgeBase kbase = readKnowledgeBase(); // create the entity manager factory and register it in the environment

[rules-users] Updating a Boolean object in the WM

2009-07-16 Thread skasab2s
Hi guys, I've been desperately trying to update a Boolean object, which is in the working memory. I have an initial rule that first inserts it: rule "Insert initial weanable value" salience 100 when then Boolean $weanable = false;

Re: [rules-users] looking for more information on drools expert

2009-07-16 Thread Wolfgang Laun
accumulate is indeed complex; the simpler collect might be applicable as well in this case. rule all45_A when forall ( Equipment( parent == 0, $id : id ) Alarm( cause == 45, source == $id ) ) $alarms : ArrayList() from collect( Alarm( cause == 45, $source : source ) )

Re: [rules-users] looking for more information on drools expert

2009-07-16 Thread Gab Aldian
I finally suceeded to get what I wanted using the keyword accumulate which is really very poweful as said in the doc. Here is the rule: http://drools.pastebin.com/m4f938e40 It is a little bit complex, but it perfectly works. The only observation I have is that it seems drools compatible jdk is < 1

Re: [rules-users] Getting hold of the Evaluator Registry

2009-07-16 Thread Jaroslaw Kijanowski
On Linux, when I created my own accumulate functions, I had to put this file in my home directory to have it picked up by Eclipse. Cheers, Jarek Edson Tirelli wrote: > >root of your project "classpath", not root of your project. > >[]s >Edson > > 2009/7/15 Asif Iqbal mailto:asif