[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] Need help with setFocus

2009-06-23 Thread Wolfgang Laun
It's impossible to diagnose exactly what goes on without seeing the LHS patterns in detail. One possible reason for the rules rule[234] in groupX not firing the second time that group is given focus is that none of the objects participating in the LHS of the three rules has changed since the first

[rules-users] Need help with setFocus

2009-06-23 Thread new2drools
Hi All, Need some help with understanding setFocus. I have the following use case: if (condition1) { if (condition2) { } else if (condition3) { } else if (condition 4) { } } if (condition5) { if (condition2) { } else if (condition3) { } else if (condition 4) {

RE: [rules-users] How to execute the SQL query using drools

2009-06-23 Thread Amila Silva
RE: [rules-users] How to execute the SQL query using droolshi Anstis, Michael (M.), thanks a lot your final solution help me get and idea and start work on it. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/list

Re: [rules-users] RuleContext and insertLogical()

2009-06-23 Thread Michal Bali
Thanks Mark, I've created the JIRA: https://jira.jboss.org/jira/browse/JBRULES-2138 Best regards, Michal 2009/6/23 Mark Proctor > Michal Bali wrote: > > Hi, > > The org.drools.runtime.rule.RuleContext doesn't support insertLogical() as > did the deprecated KnowledgeHelper. Is it planned to su

Re: [rules-users] RuleContext and insertLogical()

2009-06-23 Thread Mark Proctor
Michal Bali wrote: Hi, The org.drools.runtime.rule.RuleContext doesn't support insertLogical() as did the deprecated KnowledgeHelper. Is it planned to support this method in the next release of Drools? Thanking you in advance. As this isn't available from the KnowledgeRuntime and it's linked

Re: [rules-users] RuleContext and insertLogical()

2009-06-23 Thread Michal Bali
Thank you Edson. 2009/6/23 Edson Tirelli > >Hi Michal, > >Yes, I just noticed the method was not published in there. Although you > don't need it if you are using straight forward insertLogical() call in the > consequence, if you try to pass the ruleContext as parameter to an external >

Re: [rules-users] unable to resolve method using strict-mode

2009-06-23 Thread Edson Tirelli
Can you create a self contained test case that I can execute to debug this? If so, plz open a JIRA, attach the test case and let me know. Thanks, Edson 2009/6/23 Chris Richmond > I am using Drools 5.0.1 Final……MVEL is whatever version was downloaded > with drools 5, specifically mv

[rules-users] fixed xsd for xml of knowledgebase-request,response

2009-06-23 Thread tanzu
Hi All I have a web client which is built with struts and jsp.I intend to convert the form data into ,a bean(pojo) and then convert it into an xml data for transporting it to drools-server ,using HttpClient. My doubts are ,how can i perform this conversion of bean into xml as per drools nota

RE: [rules-users] unable to resolve method using strict-mode

2009-06-23 Thread Chris Richmond
Simply declaring as examples do for MVEL: # setup dialect for the semantic code to be MVEL dialect "mvel" _ From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Edson Tirelli Sent: Tuesday, June 23, 2009 2:07 AM To: Rules Users List S

RE: [rules-users] unable to resolve method using strict-mode

2009-06-23 Thread Chris Richmond
I am using Drools 5.0.1 Final..MVEL is whatever version was downloaded with drools 5, specifically mvel2.jar. Thanks, Chris _ From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Edson Tirelli Sent: Tuesday, June 23, 2009 2:0

Re: [rules-users] Class Cast Exception in Drools 4 Generated Accumulate Method

2009-06-23 Thread Edson Tirelli
Steve and all users of Drools 4, Although earlier versions of Drools used mvel 1.3.1, in version 4.0.7 we updated to mvel 1.3.9. There are several fixes from 1.3.1 to 1.3.9, so I strongly suggest you all update. There are even newer versions of mvel 1.3.x, but the one I personally QA'd and f

Re: [rules-users] Class Cast Exception in Drools 4 Generated Accumulate Method

2009-06-23 Thread Steve Ronderos
Edson, Thanks for the quick response! I'm using Drools 4.0.7 and mvel 1.3.1 Thanks for the tip about packages and rulebases. I'll make sure to change that in our code. As far as changing the accumulate to collect, I can easily work around that selector returning a list of PotentialMatches i

RE: [rules-users] forEach node Clarification

2009-06-23 Thread rajakanthan
guys.. Thanks for your co-operation. I have just found a solution for this. This can be done finely using workitem. Anstis, Michael (M.) wrote: > > Your jpg was not visible at the enclosed URL. > > -Original Message- > From: rules-users-boun...@lists.jboss.org > [mailto:rules-users-

Re: [rules-users] process order example not working fully

2009-06-23 Thread Kris Verlaenen
Aziz, The order example can be executed using what we call "advanced execution mode". In that case, you are not automatically going from one node to the other in your process all the time, but we allow other rules to intervene and possibly override the default behaviour. The logging rules and as

Re: [rules-users] Class Cast Exception in Drools 4 Generated Accumulate Method

2009-06-23 Thread Edson Tirelli
Steve, What versions of MVEL and Drools are you using? Comments: * You can not share packages between rulebases. You can share rulebases among sessions. So, I strongly advise you to change your application to build the rulebase once, and have the web sessions only create the rule session

Re: [rules-users] workflow rules in process order example

2009-06-23 Thread Kris Verlaenen
Gryf, The order example can be executed using what we call "advanced execution mode". In that case, you are not automatically going from one node to the other in your process all the time, but we allow other rules to intervene and possibly override the default behaviour. The workflow_rules you a

Re: [rules-users] Link for drools-server module

2009-06-23 Thread Premkumar Stephen
if you are able to create your packages, then you do not need the guvnor, since guvnor merely automates it for you. create a xxx.properties file in your classes folder ( where xxx is the package name ) This is documented in the guvnor documentation --> search for drools-server or look at the prop

Re: [rules-users] Exposing the rule engine as a web service to be accessed by the client

2009-06-23 Thread Premkumar Stephen
Sorry I could not be of more help. I have only played with Guvnor with existing default server settings. Regards, Prem On Sun, Jun 21, 2009 at 9:27 AM, tanzu wrote: > > Dear prem > > Entire day I struggled ,but in vain.Please help.I downloaded the > drools-5.0.1 CR1 war and ,removed el-api .ja

[rules-users] Class Cast Exception in Drools 4 Generated Accumulate Method

2009-06-23 Thread Steve Ronderos
Hi Rules Users, I'm experiencing an issue with a Drools 4.0.7 rule. Here is a clip of the exception that is thrown: Caused by: org.mvel.CompileException: cannot invoke method at org.mvel.optimizers.impl.refl.MethodAccessor.getValue(MethodAccessor.java:54) at org.mvel.optimizers

Re: [rules-users] RuleContext and insertLogical()

2009-06-23 Thread Edson Tirelli
Hi Michal, Yes, I just noticed the method was not published in there. Although you don't need it if you are using straight forward insertLogical() call in the consequence, if you try to pass the ruleContext as parameter to an external method/function, you need the method. I will add it t

RE: [rules-users] How to execute the SQL query using drools

2009-06-23 Thread Anstis, Michael (M.)
Your requirement isn't that clear however here's a few thoughts:- Data can be inserted into the Rule Engine either externally (i.e. WorkingMemory.insert) or internally (using "from"). If you use DSL you can make DRL more human readable; although neither are binary format in the first place. D

Re: [rules-users] wait states, jpdl and nlp

2009-06-23 Thread Kris Verlaenen
Let me try to answer the first set of questions: > - does RuleFlow support arbitrary long wait states, in other words, > can I call long-running services from it asynchronously? Of course, there are various nodes that behave as some sort of wait node. For example, a work item node waits until th

Re: [rules-users] Rule overriding

2009-06-23 Thread Edson Tirelli
Kent, Not sure I understand your question. Does not matter if your rules are in source format or binary format from guvnor. As long as they have the same package name + rule name, a new rule will override a previous rule... []s Edson 2009/6/23 > > We are building a rule engine tha

Re: [rules-users] unable to resolve method using strict-mode

2009-06-23 Thread Edson Tirelli
What versions of Drools and MVEL are you using? []s Edson 2009/6/22 Chris Richmond > I cannot seem to call a static method on one of my classes and keep > getting this error: > > > > [Error: Failed to compile: 1 compilation error(s): > > - (1,44) unable to resolve method using stric

[rules-users] Rule overriding

2009-06-23 Thread kfs2
We are building a rule engine that will serve multiple companies. Many of the rules are common but there are some situations where the common rules need to be overriden by rules that are specific to a particular company. Each company has it's own rulebase that we create with packages that are

Re: [rules-users] wait states, jpdl and nlp

2009-06-23 Thread Mauricio Salatino
Hi Lemel, Yes ruleflow support wait state in the same way that jBPM does. With a different approach maybe, but you can do exactly the same with Ruleflow. There is also a limited support for jPDL inside ruleflow, that means, that you can take your jPDL process and run it with ruleflow. But, if you a

RE: [rules-users] Link for drools-server module

2009-06-23 Thread Anstis, Michael (M.)
Sounds like you found a solution! It could be worth you posting your configuration (including version of Tomcat, Drools components and EL) back to the forum to help others. Something showing the folder hierarchy and location of JARS would be good. You could even dig out the wiki page relating to D

Re: [rules-users] unable to resolve method using strict-mode

2009-06-23 Thread Andreas Kohn
On Mon, 2009-06-22 at 11:47 -1000, Chris Richmond wrote: > I cannot seem to call a static method on one of my classes and keep > getting this error: > > > > [Error: Failed to compile: 1 compilation error(s): > > - (1,44) unable to resolve method using strict-mode: > com.aps.syslog.logging.ma

[rules-users] wait states, jpdl and nlp

2009-06-23 Thread Clandes Tino
Hello, I read the post by Salaboy on drools blog. and after that, I began to think about replacing the JBPM WF implementation with RuleFlow in my web application. After a couple of days of reading, I can say that the tools are really excellent, but I am not sure if I understand: - does RuleFlow

Re: [rules-users] rules conversion to Flex

2009-06-23 Thread Julien Nicoulaud
For client-server communications in a flex application, take a look at GraniteDS. Le lundi 22 juin 2009 à 10:04 -0500, Brian Towles a écrit : > Howdy all > > I am trying to see if there is a project or product out there that > will do a conversion of rules to a flex based front end. This is a

RE: [rules-users] Link for drools-server module

2009-06-23 Thread tanzu
Hi Michael I added the el-api 1.2 to tomcat 5.5.7/common/lib ,and then the drools-server started working.But then my web-client ,built on struts and using jsp not jsf ,started giving the same el-api error. I am also working with tomcat 6.0.3 .I had added the jsf jars from jboss ,but drools s

RE: [rules-users] How to execute the SQL query using drools

2009-06-23 Thread Anstis, Michael (M.)
The best I think you could achieve would be something like this... Global ExecuterService es; rule "execute some SQL" when $q : Query() $f : Fields(query == $q) $t : Tables(query == $q) $p : Predicates(query == $q) then es.execute($f, $t, $p);

RE: [rules-users] How to execute the SQL query using drools

2009-06-23 Thread Anstis, Michael (M.)
Let me see if I understand correctly. You want the user to be able to define the SQL query (table, field list, predicates) and have the resulting SQL executed within Drools? Is this your only requirement for the rules engine; if so have you thought a rules engine might not be your best option.

[rules-users] How to execute the SQL query using drools

2009-06-23 Thread Amila Silva
Hi Anstis, I'm creating a rule engine which is basically a SQL query executor. for that i need to have a drool file where i can add new rules to build the different query criteria. user should be able to create new selection criteria. is there any way that i can define sql queries in side the

RE: [rules-users] Link for drools-server module

2009-06-23 Thread Anstis, Michael (M.)
Did you replace the EL jar with that available from JBOSS? You will still need an EL jar somewhere if you are using JSF. Do you have Java security enabled in your Tomcat instance? I've previously had to put the EL jar in Tomcat's lib folder to fix other issues relating to the use of JSF and EL on

RE: [rules-users] How to execute the SQL query using drools

2009-06-23 Thread Anstis, Michael (M.)
You have not clearly defined when you want to execute SQL queries. If you want to access a DB from the LHS you can use the "from" keyword. Note the results need to be time-constant i.e. not change on successive calls. If you want to access a DB from the RHS it is plain Java (or MVEL depending u

RE: [rules-users] help

2009-06-23 Thread Anstis, Michael (M.)
You need to provide more information. Your question is like me replying with "I don't have any problems". Not very helpful. -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of SHIMI Abdelouahad ( Prestataire ) Sent: 22

RE: [rules-users] forEach node Clarification

2009-06-23 Thread Anstis, Michael (M.)
Your jpg was not visible at the enclosed URL. -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of rajakanthan Sent: 23 June 2009 02:24 To: rules-users@lists.jboss.org Subject: [rules-users] forEach node Clarification Hey

[rules-users] How to execute the SQL query using drools

2009-06-23 Thread Amila Silva
hi All, I have requirement like to execute the sql queries through drools. is there are way to do it? please let me know asap. thanks amila silva ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-use

Re: [rules-users] Drools Guvnor DB setup issue.

2009-06-23 Thread Jaroslaw Kijanowski
What error? Can you paste the server log? Maybe it's the white space before 'brms' in your connection url? Maybe you didn't provide the driver jar? Cheers, Jarek ami...@hsenidmobile.com wrote: hi everyone, I had problem in setting up a Database (mysql) with Drools Guvnor. wht i did was