Re: [rules-users] Doubt regarding drools Rule Engine

2010-07-11 Thread Premkumar Stephen
Pradeep, Please go through the entire documentation to understand how the rules are persisted. The default persistence for guvnor is through a Jackrabbit repository, but it can be configured to use several databases. Regards, Prem On Fri, Jul 9, 2010 at 12:34 AM, Pardeep Ruhil < pardeep.ru...@

Re: [rules-users] Drools Execution Server and Guvnor

2010-07-03 Thread Premkumar Stephen
Hi Vignesh, Please read Mauricio's explanation above on when to use. In addition, this approach frees you up from using Drools from only java applications. For instance, we invoke the rules engine from Rails code. Basically, you need to do the following steps: 1) Create a xml or json in the pres

Re: [rules-users] Drools Execution Server and Guvnor

2010-07-02 Thread Premkumar Stephen
Vignesh, There is sample code available when you get the source code from the trunk. Is there a reason you are choosing the execution server, over directly invoking the rules? Regards, Prem On Wed, Jun 30, 2010 at 1:44 PM, Vignesh wrote: > > Can you please let me know the steps or provide som

[rules-users] Thrift server implementation for Drools

2010-06-21 Thread Premkumar Stephen
Hello, We currently use drools-server to execute rules from our ruby environment. I have been reading about Thrift, originally from Facebook but now in Apache -- http://incubator.apache.org/thrift/ Has anyone worked on this approach, or thinking about doing so? Regards, Prem

Re: [rules-users] Drools5 in tomcat 5

2010-05-14 Thread Premkumar Stephen
Ruben, Drools Server is a web service which executes rules that can be deployed from Guvnor. Regards, Prem 2010/5/14 Rubén Marrero > Oh! > > I'm tempted to ask _why_ did anyone think that having a great web interface > where you can create, test, store & version (I would think that at least >

[rules-users] Drools 5.1 trunk - eclipse plugin "Could not find default Drools runtime"

2010-05-13 Thread Premkumar Stephen
Hi, I built the source from trunk and added the drools eclipse plugin. I was asked to create a new Drools 5 Runtime directory. I pointed it to a directory that has all the jars, but I still get this error message "Could not find default Drools runtime" Is there any documentation on how to set up

Re: [rules-users] Drools Solver - Multiple Entries

2010-04-29 Thread Premkumar Stephen
Hello Shekhar, 1) You need to read http://www.jboss.org/drools/lists.html (the list of todos) if you expect folks to help you. You have replied to a totally different thread!! 2) You don't need to create a webservice out of the Drools API. There is already one, called drools-server. Read document

Re: [rules-users] Drools Execution Server Executing Twice

2010-04-28 Thread Premkumar Stephen
@jgautier, I created the guvnor ticket 354, and while we are using that workaround, it is not elegant and adds a performance penalty. Michael Neale, the author of the drools execution server, told me then that he will not be working on it, as he is doing a rewrite of the drools execution server in

[rules-users] Guvnor: RESTful way to find when the last snapshot was deployed

2010-04-26 Thread Premkumar Stephen
Hello folks, Currently, this timestamp information is available on the html page ( http://foo.com:8081/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html), but I am wondering if this could be available in some format like http://foo.com:8081/drools-guvnor/org.drools.guvnor.Guvnor/package/RulesP3/L

Re: [rules-users] A quick survey of application areas

2009-12-17 Thread Premkumar Stephen
demographics of users - to serve custom ads and alerts; specific rewards tailored for this demographic 2009/12/17 Wolfgang Laun > Folks who have a wider view of Drools Expert (not Flow, Fusion, Guvnor, > Solver) are > kindly invited to post application areas where plain Drools Expert has been

[rules-users] Extending the "validation of rules" functionality in Guvnor

2009-08-19 Thread Premkumar Stephen
Hello everyone, Currently, the validate functionality ensures that rules have proper syntax. it is possible to extend this functionality so that business use cases might also be validated? Is there an API/examples to do that. For eg, in our domain, an object X can be evaluated for 3 criteria (

Re: [rules-users] Drools 5 - Not sure why this simple DSL not working

2009-08-14 Thread Premkumar Stephen
. Also within the eclipse plug-in, “Rete View” > comes up fine for the DRL but while running as java application, “Unable to > expand:” error comes. > > > -- > > *From:* rules-users-boun...@lists.jboss.org [mailto: > rules-users-boun...@lists.jboss.

Re: [rules-users] Drools 5 - Not sure why this simple DSL not working

2009-08-14 Thread Premkumar Stephen
http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.htmlSection 4.10.2 2009/8/14 Vijay K Pandey > Hi, > > > > I am trying to get a very simple DSL working but all the time it gives the > error of *Unable to expand:* If I take

[rules-users] Creating a workflow for the Business Rules lifecycle in trac

2009-08-11 Thread Premkumar Stephen
Hello all, Out here in our company, we use trac to manage the lifecycle from the request to create and enhance code artifats, the developers then code and test, and then we deploy to a particular milestone. The business rules process however, did not correspond to the default development cycle and

Re: [rules-users] Drools Guvnor Remoting API

2009-08-04 Thread Premkumar Stephen
Michael & Steve, We would need to be able to pick certain rules using selectors for different runs too, and I will help you with testing efforts. Regards, Prem 2009/8/4 Steve Ronderos > > Michael, > > That is really good news! Due to the timeline my project is on, I think > I'm going to have

Re: [rules-users] DSL matching return wrong DRL

2009-07-21 Thread Premkumar Stephen
The order of the DSL entries matter. You should interchange the first and second lines in the DSL that you have provided. Regards, Prem 2009/7/21 Luis Silva > Hi everebody, I've a quiestion about DSL: > > I have the next DSL: > > [when][]Get month = $month: Month(); > [when][]Get month summer

Re: [rules-users] Creating custom selectors using the "category" property for deploying certain rules in guvnor

2009-07-06 Thread Premkumar Stephen
Hi, > you may vote for this one ;) > https://jira.jboss.org/jira/browse/GUVNOR-109 > > So far I have successfully used 'stateDescription' and 'creator', for > sample rules look at this: > https://jira.jboss.org/jira/browse/GUVNOR-108 > > Haven'

Re: [rules-users] Formula value assginment in LHS

2009-07-05 Thread Premkumar Stephen
How are you executing the rules? Are you using web services via the Drools execution server? because, I have seen multiple firings in this scenario. Regards, Prem 2009/7/2 Shabbir Dhari > Dear all > > We are developing a financial business application that contains hundreds > of business rule

[rules-users] Creating custom selectors using the "category" property for deploying certain rules in guvnor

2009-07-01 Thread Premkumar Stephen
Hello everyone, I am trying to create a custom selector, based on certain properties such as "categories" (primary property) and others such as status and author. from the examples in selectors.properties, I could not see a way to create using categories. In that file, some of the field described

Re: [rules-users] streams and equality assertion behavior

2009-07-01 Thread Premkumar Stephen
Hello all, Could this unfixed JIRA https://jira.jboss.org/jira/browse/GUVNOR-354 be related to this? I am inserting a single object via JSON and it fires twice. Regards, Prem On Wed, Jul 1, 2009 at 9:54 AM, Jaroslaw Kijanowski wrote: > https://jira.jboss.org/jira/browse/JBRULES-2154 > > Thank

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

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

2009-06-19 Thread Premkumar Stephen
Mark has provided the elegant way to do it. However, as a newbie, it can be done simpler without using this API for stateless rules,. In this JIRA, https://jira.jboss.org/jira/browse/GUVNOR-354, you will find complete working examples. This has a ruby file, which invokes the webservice --> easily

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

2009-06-14 Thread Premkumar Stephen
Using the Drools execution server, the rules engine can be exposed as a web service. In http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-guvnor/html_single/index.html, check out section 1.4.7.2 The web service can be invoked using JSON or XML, so, it

[rules-users] Execution server fails with CNF Exception. org.drools.RuntimeDroolsException: Unable to resolve import. JIRA: GUVNOR-356

2009-06-06 Thread Premkumar Stephen
Hello folks, I have created a JIRA for this at https://jira.jboss.org/jira/browse/GUVNOR-356 I have attached a simple usecase and all relevant artifacts. Created a new repository ( deleted repository folder and repository.xml) created new category - Ads created new package - Ads Uploaded model Cr

[rules-users] Comments Requested: Ideas on storing Drools Knowledge: The argument for JIRA as a knowledge store as well

2009-06-05 Thread Premkumar Stephen
Hello all, As a new user to Drools, I have been frustrated often and unable to find much information. Below is an IM session where a couple of us discuss what is missing and how we can fix it? A lot of knowledge imparted in the IRC channels does not get recorded. I believe it is the same with the

[rules-users] Drools Execution Server: Stateless call: using JSON: Ruby client: Single Rule with single object fires twice

2009-06-02 Thread Premkumar Stephen
Hello all: Please find at http://pastebin.com/m3480a28c 1) a very simple rule 2) the object model 3) the object inserted via json 4) the output from the engine 5) the output from the logs I cannot understand why 1) this rule would fire twice 2) why the rule engine adds the "income" attribute to t

[rules-users] Guvnor Enumerations; values to be taken from db table

2009-05-06 Thread Premkumar Stephen
Hello, We would like to have an enumeration that grabs values from a db table. We will have a list of clients, which change quite regularly. Maybe not at real-time, but at the time guvnor is started or something to that effect. Currently it is hard-coded. Has someone implemented something simila

Re: [rules-users] Inserting a JRuby object via Spring JRubyScriptFactory in Drools

2009-03-20 Thread Premkumar Stephen
, never for the actual internal > attribute. > >As long as you have an instance of a given interface and your rules are > written against the interface you should be fine in Drools 5. > >Drools 4 used shadow facts, so, there would be more considerations to > make on

[rules-users] Inserting a JRuby object via Spring JRubyScriptFactory in Drools

2009-03-19 Thread Premkumar Stephen
Hello Folks, I have been looking at options of using ruby objects as fact objects in Drool's working memory. One obvious way is using services. Another path that I have been researching about is to use Spring as outlined here http://www.jroller.com/habuma/entry/spring_meet_ruby Now, in this exam

Re: [rules-users] Will the alternative lead to a better performance?

2007-03-26 Thread Premkumar Stephen
"ABC" ) then // do something end What the engine will do behind the scenes is name.equals("ABC"). So, don't be afraid of doing that. Also, "huge" means don't worry about it. :) You will get something like log(n) comparisons in the worst case, so, le

Re: [rules-users] Will the alternative lead to a better performance?

2007-03-26 Thread Premkumar Stephen
th your 500 different classes. So it is a worst alternative for the proposed scenario. []s Edson Premkumar Stephen wrote: > Hi, > > Consider that I have 500 instances of interface userI. Now, there are > 3000 rules currently written based on a combination of these instances. >

[rules-users] Will the alternative lead to a better performance?

2007-03-23 Thread Premkumar Stephen
Hi, Consider that I have 500 instances of interface userI. Now, there are 3000 rules currently written based on a combination of these instances. if { $a : userI (name = "A") $b : userI (name = "B") } then { //do some actions } How many tests are needed for a match in the RETE network f

[rules-users] (no subject)

2007-03-23 Thread Premkumar Stephen
___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users