[rules-users] How to install Drool web WB - Tomcat?

2014-04-10 Thread bbarani
I download the drools workbench war (kie-drools-wb-distribution-6.0.1.Final.zip) and tried deploying it on Tomcat. The application gets deployed but not getting started (when seen from server console). Do I need to do anything else apart from placing the WAR file in the webapps directory? please a

Re: [rules-users] How to use global hashmap in drools

2013-10-30 Thread bbarani
Sorry, I think I didn't explain my problem correctly. Consider I have to process 2 records. Each record will pass through the rule in drl file. Name Count a 100 b 200 a 100 Now I want to store the above values in a global hash map as below (When I process the 3rd document). I

Re: [rules-users] How to use global hashmap in drools

2013-10-30 Thread bbarani
Sorry for the confusion. I am just trying to store the value in to a global hashmap (more like a counter) and get back the total size of the hashmap after all the data is processed. function setValue(String a, String b){ hashValue.put(a,b); } function int getValue(){ return hashValue.s

[rules-users] How to use global hashmap in drools

2013-10-30 Thread bbarani
I am trying to use a global hashmap in drools but not sure how to create a global hashmap. I have a very simple function that counts the number of values passed hence I would need a global hash map to increment the count. The below function initializes the map every time the function is called, I

Re: [rules-users] Can we retrieve the rules as XML from guvnor using java code?

2012-05-25 Thread bbarani
We are trying to reuse the rules in commercial products like PolarLake (http://www.polarlake.com/), IBM Ilog BRMS.. -- View this message in context: http://drools.46999.n3.nabble.com/Can-we-retrieve-the-rules-as-XML-from-guvnor-using-java-code-tp4013660p4015914.html Sent from the Drools: User for

Re: [rules-users] Can we retrieve the rules as XML from guvnor using java code?

2012-05-24 Thread bbarani
Yes your assumption is right, I am trying to use the rules present inside Guvnor in other rule engines (other than Guvnor / drools rule engine). -- View this message in context: http://drools.46999.n3.nabble.com/Can-we-retrieve-the-rules-as-XML-from-guvnor-using-java-code-tp4013660p4013776.html S

[rules-users] Can we retrieve the rules as XML from guvnor using java code?

2012-05-24 Thread bbarani
Hi, I am using Guvnor as knowledge repository and using drools rule engine to evaluate the rules stored in Guvnor. Now I have one more rule engine for which we are planning to use the same rules stored in Guvnor, but I am not sure how to expose the rules present inside Guvnor to new system. Can so

[rules-users] Can I have 2 different instance of Guvnor to use same SQL server DB?

2010-09-27 Thread bbarani
Hi, I have a Guvnor instance (instance 1) running in tomcat and its using SQL server 2005 as its backend. Now I am planning to have one more instance of Guvnor (instance 2) running from another application server but want to point it to same SQL server (configured for instance 1) I just made ch

[rules-users] Issue in sending Multiple request to Drools Guvnor package

2010-09-23 Thread bbarani
Hi, We have a java code which connects to guvnor and fires all the rules in a package and gets back the final decision from Guvnor. The code works fine for single request, if I send multiple request the code takes more time to return the results. I am just wondering if we are doing anything wron

[rules-users] Perfomance issue when accessing Guvnor using a Web service

2010-09-22 Thread bbarani
Hi, We have written a webservice which will inturn invoke the Rules present in Guvnor and returns the response from Guvnor to the invoking client app. We have written the Webservice using Axis 2 WS. Guvnor is using SQL server 2005 as its backend. It takes around 15 to 20 seconds for Guvor to s

[rules-users] Migrate the package from Derby to MS SQL server

2010-09-21 Thread bbarani
Hi, I have rules created under a package using Derby as a backend. I am not trying to configure SQL Server as backend but not sure how to migrate all the rules created before (using Derby) to the new server. I configured the persistence manager (both version / workspace to use MS SQL server) and

[rules-users] Guvnor 5.1.1 Memory leak on Tomcat

2010-09-21 Thread bbarani
Hi, I have deployed Guvnor 5.1.1 in Tomcat. I am getting the below error message whenever I shut down Tomcat server. Sep 21, 2010 3:19:52 PM org.apache.catalina.loader.WebappClassLoader clearRefere ncesJdbc SEVERE: The web application [/drools-5.1.1-guvnor] registered the JBDC driver [o rg.apa

[rules-users] Memory leak error when deploying Guvnor in Tomcat

2010-09-15 Thread bbarani
Hi, I am getting the below now and then when I try to export the repository from one system to another system (move the repository folder / repository.xml file present in bin folder of tomcat to tomcat bin folder of another system). Can someone let me know what might be the root cause of this iss

[rules-users] How to aggregate decisions of multiple rules?? (In Guvnor)

2010-08-04 Thread bbarani
Hi, We have multiple rules defined in Guvnor and we fire all the rules at a time. There is a decision object set for each rule and I am trying to figure out a way to aggregate the result using the prirority of the decision object (kind of logical AND / OR) For Ex: The priority of the decision wo

[rules-users] How to fire all rules at once and get the status of all the rules present in Guvnor

2010-08-03 Thread bbarani
Hi, I am using Guvnor to store all the rules and I am having a webservice which invokes the rules. As of now I use wrkMemory.fireAllRules(); to fire all the rules. Now I want to know if there is a way to get back the identifier back for each rule such that I can validate the response returned fr

Re: [rules-users] Not able to create object in [then] clause in DSL using Guvnor

2010-08-03 Thread bbarani
Esteban, Thanks a lot for your timely help.. The below code did the trick.. [then] permitted = Decisions dec = new Decisions(); dec.setDecision("Granted") Thanks, Barani -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Not-able-to-create-object-in-then-cla

[rules-users] Not able to create object in [then] clause in DSL using Guvnor

2010-08-03 Thread bbarani
Hi, I am trying to execute a simple DSL as below. Decisions is the bean class which I have imported in to Guvnor [when] IMRR action requested is in one of {acts} = Action(action in {acts}) [then] permitted =dec:Decisions dec.setDecision("Granted") Now I want the object for decision to be create

[rules-users] How to write a simple DSL which can be used in setting / comparing the value prsent in hashmap

2010-08-02 Thread bbarani
Hi, I have created a very simple DSL file as below. It just reads the data from hashmap and sets the decision based on the key value present in the hashmap passed to Guvnor. [consequence][]Decision for DynamicValue is set as Denied=dec.setDecision("Denied"); [condition][]Decision Object=dec:Deci

Re: [rules-users] Dynamic attribute in Guvnor

2010-07-26 Thread bbarani
Our rules should work as below (in Guvnor) When DynamicAttribute(“AssetID”) = 8-AIT-3243 and Group<>’HR’ then Decision = Denied.  both the attribute name and value are dynamic.. Thanks, BB -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Dynamic-attribute-i

[rules-users] Dynamic attribute in Guvnor

2010-07-19 Thread bbarani
Hi, We have a scenario as below, Here is what we want to achieve. Let’s say we want to have following rule: When AssetType = DSTR Then Decision = Granted. I can have AssetType as static class or attribute in the model. But this may limit our ability to handle new information. Let’s say now

[rules-users] Issue when invoking rules present in Guvnor using AXIS webservice

2010-07-16 Thread bbarani
Hi, We are trying to create a drools Web service (using AXIS) and make it interact with the rules present in Guvnor. We tried implementing the logic to invoke the rule within the Skeleton and tried invoking the same from a test client by passing the request parameters, we are getting org.apache.

[rules-users] Can I create WS to access Guvnor?

2010-06-24 Thread bbarani
Hi, I am trying to create a WS which will invoke the rules present in Guvnor and sends back a response. We have multiple applications which needs to execute the Rules present in Guvnor and hence we thought of creating a WS which can be accessed by all the applications. We tried to use AXIS to cr

[rules-users] How to log defects with its corresponding rule id?

2010-05-24 Thread bbarani
Hi, I am currently using Guvnor for managing rules. I have a java program which retrieves the rules information from Guvnor and gives me the validated output. I now need to log the defects of each and every record with its corresponding rule / rule type id in order to know why that / for which v

[rules-users] Drools with Guvnor

2010-05-19 Thread bbarani
Hi, I am very new to Drools and very very new to Guvnor. I am in the process of creating a rule engine which will fetch the data from a source (I am using Hibernate framework to fetch the data) and evaluate the data using Drools rule engine. The rules supplied to the Drools rule engine are store