[rules-users] Problem with eval

2011-10-24 Thread rahulkrishnan
some times when am using eval am getting this error unable to build expression *eval:null(condition i give)* i have used like this $work : WorkClass *eval($work.getStatus(5))* // here was the exception -- View this message in context:

Re: [rules-users] Problem with eval

2011-10-24 Thread rahulkrishnan
is it because i have used a object in session inside the eval -- View this message in context: http://drools.46999.n3.nabble.com/Problem-with-eval-tp3447294p3447297.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

[rules-users] How to use GlobalArea enum inside package defined rules

2011-10-24 Thread pravinborekar
Hi, Would like to use GlobalArea enumeration - 'Member.title': ['Mr.', 'Miss'] in my custom package rule. Am trying to access it in DSL rule (as we want guided editor to use enum), like {title:ENUM:Member.title} If I create above enum in custom package, am able to do it cleanly. Also

Re: [rules-users] How to use GlobalArea enum inside package defined rules

2011-10-24 Thread Michael Anstis
AFAIK, you still need to import the asset from the Global Aarea into your package. Think of it like creating a symlink\shortcut between the Global Area and your package - changes to the asset in the Global Area will be visible in your package. Assets in the Global Area are not automatically

Re: [rules-users] Regarding BPEL

2011-10-24 Thread Sumeet Karawal
Thank you. This was really helpful. Regards, Sumeet Mailto: sumeet.kara...@tcs.com From: Mauricio Salatino sala...@gmail.com

[rules-users] Drools 5.3.0.Final is released

2011-10-24 Thread Toni Rikkola
http://blog.athico.com/2011/10/drools-530final-released-including.html Toni___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Validation flow - defer expression evaluation

2011-10-24 Thread peters
Hi, I was wondering which is the proper way to do sanity checks (not null etc...) on a fact before starting the actual business rules. I have created a a ruleflow with a validation node (VALRFG) and a business rule node (BRRFG) to determine execution order. If in the validation node a not null

Re: [rules-users] How to use GlobalArea enum inside package defined rules

2011-10-24 Thread pravinborekar
Thanks for the reply. Actually I was trying to work it out the REST API way, I used for my other purpose. I understand that Global area wont be accessible directly, but couldnt find related content on net. Since I am a beginner to drools, am still working on importing the assets from Global

[rules-users] Drools Performance /Memory Leak Issue

2011-10-24 Thread arrehman
Hi, I am not much of an expert on Drools. I got a DRL file (very small rule set of less than 10 rules, that checks few conditions, also includes DB calls). I use Drools 5.2 inside a grails application. I am using stateful session. I call this rules 100,000 times for each for each of the 100,000

Re: [rules-users] Drools Performance /Memory Leak Issue

2011-10-24 Thread arrehman
Hi, Are there any instructions on how to enable JMX Beans and monitor Drools using JConsole or JVisualVM anywhere? Thanks, Abdul -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Performance-Memory-Leak-Issue-tp3448321p3448342.html Sent from the Drools: User forum

Re: [rules-users] Validation flow - defer expression evaluation

2011-10-24 Thread zstlaw
There are a couple different options available. I haven't tried it but some of what you are trying to do sounds suspiciously like what you are trying to do is a workfow process or rules plan. Which might mean you want to look at planner or consider how you are approaching the problem. If they

[rules-users] How to use lists in RHS when using MVEL?

2011-10-24 Thread zstlaw
I want to make an array and pass it to a method in the RHS but can't when I use mvel. If I use mvel then java new Object[3] causes compile errors. If I use the mvel syntax the object is not an real array, only a string in mvel's special array notation which is not useful for the functions I am

Re: [rules-users] Drools Performance /Memory Leak Issue

2011-10-24 Thread Edson Tirelli
I assume you are calling dispose() after using each session? Using stateless session is an option as well. If so, with Drools 5.2 we had a problem with jbpm being in the classpath, fixed in 5.3. Did you tried Drools 5.3 yet? To enable MBeans, just use the MBeansOption.ENABLED in the

Re: [rules-users] Drools Performance /Memory Leak Issue

2011-10-24 Thread arrehman
Hi Edson, Yes I am calling displose(). No I have not tried 5.3 it, I will give it a shot. What was the issue with jbpm being in the class path, is it related to memory leak over time? AS for MBeans, thanks, I will try that also. What I am doing now is removed all rules, putting one rule at a

[rules-users] Printing rule content when a rule is fired

2011-10-24 Thread GPatel
Is is possible to get textual rule content from org.drools.definition.rule.Rule? What I am looking to do is get the rule definition (the when/then part) when a rule fires (i.e on AfterActivationFiredEvent) Thanks G. Patel - The information contained in

Re: [rules-users] Printing rule content when a rule is fired

2011-10-24 Thread Mauricio Salatino
If you can get the name from the AfterActivationFiredEvent, you can search in the DRL file for that content right? I don't know if there is a way to get the content from the knowledge base, because as far as I know the knowledge base don't save the DRL file inside it, it just get the LHS of the

Re: [rules-users] Regarding BPEL

2011-10-24 Thread Mauricio Salatino
No problem Sumeet, Feel free to open new threads if you have more questions, I'm really passionate about these topics so I'm always open to discussions. Cheers On Mon, Oct 24, 2011 at 6:45 AM, Sumeet Karawal sumeet.kara...@tcs.comwrote: Thank you. This was really helpful. Regards, Sumeet

Re: [rules-users] Performance: StatefulKnowledgeSession.dispose()

2011-10-24 Thread Mauricio Salatino
Are you using persistence? can you give us more context about what are you trying to achieve? Cheers On Mon, Oct 24, 2011 at 12:25 AM, tonytang baiyuant...@hengtiansoft.comwrote: I have write a very simple rule to test StatefulKnowledgeSession.dispose() method. After I call this method, I

[rules-users] 5.3.0.Final resource change scanner bug

2011-10-24 Thread lhorton
I tried loading up 5.3.0 this weekend but have run into this bug: https://bugzilla.redhat.com/show_bug.cgi?id=733008 my server log says: Exception in thread Thread-38 java.lang.IllegalStateException: reader does have a modified date at

Re: [rules-users] 5.3.0.Final resource change scanner bug

2011-10-24 Thread Michael Anstis
I think it is this problem https://issues.jboss.org/browse/GUVNOR-1699... but no fix yet :( On 24 October 2011 21:30, lhorton lhor...@abclegal.com wrote: I tried loading up 5.3.0 this weekend but have run into this bug: https://bugzilla.redhat.com/show_bug.cgi?id=733008 my server log says:

Re: [rules-users] 5.3.0.Final resource change scanner bug

2011-10-24 Thread lhorton
We are not using Guvnor. Rules are being compiled from XLS and DRL files source files in change sets. I'm just mentioning this FYI. Some of the rules files compile and load but some do not. I don't see anything in the logs to tell me which file(s) are failing. -- View this message in context:

Re: [rules-users] 5.3.0.Final resource change scanner bug

2011-10-24 Thread Michael Anstis
Sorry Lisa, I should have remembered you don't use Guvnor. I assume all rules compile ok without use of a change-set? Is it possible to put together a test case and open a JIRA? This sounds like something new. sent on the move On 24 Oct 2011 22:02, lhorton lhor...@abclegal.com wrote: We are

Re: [rules-users] 5.3.0.Final resource change scanner bug

2011-10-24 Thread lhorton
Yes, all compile ok without change set (our tests compile the rules in code, but our server compiles using knowledge agent). I had to roll everything back to 5.2 for our developers, but I'll find some time tomorrow to try things out with 5.3 again. I'll see if I can narrow it down to specific

Re: [rules-users] 5.3.0.Final resource change scanner bug

2011-10-24 Thread Michael Anstis
Thanks Lisa, I appreciate it is a pain for you but your help is much appreciated. sent on the move On 24 Oct 2011 23:03, lhorton lhor...@abclegal.com wrote: Yes, all compile ok without change set (our tests compile the rules in code, but our server compiles using knowledge agent). I had to

Re: [rules-users] Printing rule content when a rule is fired

2011-10-24 Thread GPatel
I wish the Rule definition gave more detail than just a rule name, package name and metadata, or there was some way through the KBase api to get to it. Seems like I will need the to fetch the rule content from guvnor via REST (via some sort of timestamp versioning of my own) Thanks G. Patel

[rules-users] Using Drools Flow with Multiple Fact Types

2011-10-24 Thread Jason
I'm a relatively new user to Flows, but I have worked with a colleague to instantiate flows that control a sequence of rule sets being applied to a set of data in a meaningful order (e.g. I do pruning to limit the set of facts as a first step, then generate sets of hypotheses, then score the

Re: [rules-users] Performance: StatefulKnowledgeSession.dispose()

2011-10-24 Thread tonytang
I found the problem: This is because I use log: KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(session, test); If I use Stateful session, The rule engine will print many log in XML file. But if i use stateless session, it will not print any log. my code is like this

Re: [rules-users] Drools Performance /Memory Leak Issue

2011-10-24 Thread arrehman
HI, There was one bad rule, when I removed that memory leak is gone and the performance improved drastically!!! (from 60 sec for 1000 records to 10 seconds, satisfies our requirements) I am not sure what is wrong with the rule, I will check that tomorrow, I am a happy man now. Abdul -- View