[rules-users] tag is not working in rule file

2008-01-17 Thread prateek.katiyar
Hello all I am using Drools 4.0.3 I am using a .xml rule file in my application in which I am validating the user entered data through my rule file. When I am not using tag in my rule file then it is working fine but when I use it ,the rules are not firing even it is not showing any exception als

[rules-users] RE: rules-users Digest, Vol 12, Issue 79

2007-12-02 Thread prateek.katiyar
--- Begin Message --- Hello Mark Thanks for your reply. Actually I have already developed a framework in which for loading the rule file I am using the following steps: drl =new InputStreamReader(new FileInputStream(this.fileName)); drlStr = this.getInputStreamAsString(drl); strReader = new St

[rules-users] about use of org.drools.concurrent package

2007-11-28 Thread prateek.katiyar
Hello all I am using Drools 4.0.3 in my application. I want to know about the use of org.drools.concurrent package which is in the drools-core-4.0.3.jar. What type of concurrent operations I can do by the classes of this package. Any information will be appreciated. Thanks. With Regards Pra

[rules-users] RE: rules-users Digest, Vol 12, Issue 67

2007-11-26 Thread prateek.katiyar
--- Begin Message --- Hi Mark Thanks very much for your reply. Actually I want to keep functions and rules in saperate packages because all the functions will not change through out the application so I am loading the functions only once using te constructor of a singleton class but in my appl

[rules-users] How to link packages in rulebase

2007-11-25 Thread prateek.katiyar
Hello all I am using Drools 4.0.3 I have two packages in my rulebase.In one package I am keeping all the functions related to my application and in another package I am deploying some rules for a specific module using front end in my application. Now I want to use functions from one package in

[rules-users] problem in removing rule from rulebase

2007-11-25 Thread prateek.katiyar
Hello all I am using Drools 4.0.3 I want to remove rules from a InvalidRulePackage during the run time of the java program. For this I am using removeRule(String packageName, String ruleName) method in my program but it is giving me the following exception: org.drools.rule.InvalidRulePackage

[rules-users] Problem with Drools 4.0.3

2007-11-23 Thread prateek.katiyar
Hello all I am using Drools4.0.3 I have a J2EE application that I am running on Tomcat. I am using a singleton class in which I am doing the following steps in the constructor : PackageBuilderConfiguration pkgBuilderCfg = new PackageBuilderConfiguration(); JavaDialectConfiguration javaConf =

[rules-users] RunTime problem with Drools 4.0.3

2007-11-21 Thread prateek.katiyar
Hello all, I am using Drools 4.0.3. In my application I have one singleton class to validate the input parameters. Also I am using one commonfunction.xml file which has all the functions for the applications e.g. // System.out.println(" validateDate date "+date); // System.out.print

[rules-users] About use of function in rulebase having two packages

2007-10-24 Thread prateek.katiyar
Hello all I have two packages in my rulebase .I want to use one function from one package in another package. How can I do this? Please brief me. Thanks. With Regards Prateek The information contained in this electronic message and any attachments to this message are intended for the ex

[rules-users] Abour removing the rules from the rulebase

2007-10-24 Thread prateek.katiyar
Hello all Many congratulations on the release of Drools 4.0.3 I want to remove all the rules belonging to a specific AgendaGroup from the rulebase containing only one package. I want to use only the name of the AgendaGroup ,not the names of the rules. Is there any method in the API that can sol

[rules-users] Problem with rule file

2007-10-24 Thread prateek.katiyar
Hello all, I am using Drools 4.0.3 in my application in which I am generating the rule file from the front end. I made my application in such a way that I can change my rule file during the runtime (i.e. server is running). Each time when I submit my test form (on which validation is happening

[rules-users] problem with Drools 4.0.1.

2007-10-23 Thread prateek.katiyar
hello all I am using Drools 4.0.1. I have one rule ( name = valsubmitLoanApplication#0_1193115386921 ) in my rule file. When I am running my application on Tomcat Server first time, the validation is happening properly. But when I am running the same application second time(the server is stil

[rules-users] Drools 4.0.3

2007-10-21 Thread prateek.katiyar
Hi all I am using drools 4.0.2 and in one of my application i am facing the same memory leak problem about which we have discussed earlier. I want to know that when are you going to release the latest version of Drools i.e. Drools 4.0.3. It's very argent please give me the proper advice. T

[rules-users] about function in rule file

2007-10-11 Thread prateek.katiyar
Hi all I am using Drools 4.0. I have written a function in a rule file and i want to use that function in another rule file. Please tell me what should i do for this. Thanks. With Regards Prateek The information contained in this electronic message and any attachments to this message a

[rules-users] About rules firing

2007-10-08 Thread prateek.katiyar
Hi I am using Drools 4.0. I have two rules in my rule file.The "when" condition of my first rule is satisfying.Now please tell me that what should i do if i don't want to execute the second rule? Thanks. With Regards Prateek The information contained in this electronic message and any a

[rules-users] RE: rules-users Digest, Vol 11, Issue 35

2007-10-04 Thread prateek.katiyar
--- Begin Message --- Hi Mark Thank for your reply. When i tried with the rule file(.drl format) then also i faced the same problem. Actually the problem is that when the function returns "true", the program works fine. But when the function returns "false",it gives the exception : java.lang.Nul

[rules-users] RE: rules-users Digest, Vol 11, Issue 29

2007-10-04 Thread prateek.katiyar
--- Begin Message --- Hi Fernando Thanks for your reply. Could you please tell me that is there any alternative to overcome this problem? Because this is a legal case in which the user just enter "" for a String field. So i have to validate this in my rule file. With Regards Prateek Katiyar __

[rules-users] About FactHandle

2007-10-04 Thread prateek.katiyar
Hi I am using Drools 4.0. As per the Drools 4.0 documentation if we are declaring a object as global then we can not use "insert(java.lang.Object Object)" method on this object. It will be inserted implecetly.Now if we want to update this object in the RHS part of our rule file then we need th

[rules-users] Query about attribute

2007-10-04 Thread prateek.katiyar
Hi I am using Drools 4.0. I want to know that can i use attribute in my rule file(.xml format). Actually i have used it in Drools 3.0 but their is no description for it in Drools 4.0 documentation. So please let me know that is it possible or not? If it is possible then please clarify me with

[rules-users] Help me

2007-10-03 Thread prateek.katiyar
Hi I hava a rule file as: http://drools.org/drools-4.0"; xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"; xs:schemaLocation="http://drools.org/drools-4.0 drools-4.0.xsd"> (rfq.getM_rfqId() ==null) || (rfq.getM_rfqId().trim().equals("")) System.out.println("The

[rules-users] executing specific rules using agenda group

2007-09-30 Thread prateek.katiyar
Hi I am using Drools 4.0. First time I want to fire some specific rules from my rule file(in .xml format) and then other rules for the second time. I have defined agenda-group attribute for the rules as follows: how can I execute specific rules using agenda group or is there any other o

[rules-users] Firing of specific rules

2007-09-28 Thread prateek.katiyar
Hi I am using Drools 4.0. First time I want to fire some specific rules from my rule file(in .xml format) and then other rules for the second time. I have defined agenda-group attribute for the rules as follows: how can I execute specific rules using agenda group or is there any other o

[rules-users] rule-set tag

2007-09-27 Thread prateek.katiyar
Hi I am using Drools 4.0. I want to know that can i use the rule-set tag in our .xml file for partitioning the rules. Can i write any statement in the rhs part of a rule to go back to the java program so that other rules will not execute. Thanks. The information contained in this electron

[rules-users] how to use a method in a xml file

2007-09-27 Thread prateek.katiyar
From: Prateek Katiyar (WT01 - ES- eEnabling) Sent: Wed 9/26/2007 3:07 PM To: rules-users@lists.jboss.org Subject: query Hi I am using Drools 4.0 version with .xml file. Here is my java program. <

[rules-users] query

2007-09-26 Thread prateek.katiyar
Hi I am using Drools 4.0 version with .xml file. Here is my java program. <> package com.wipro.rfq.report.bean; import java.io.InputStreamReader; import java.io.Reader; import org.drools.RuleBase; import org.droo

[rules-users] query

2007-09-24 Thread prateek.katiyar
Hi In one of my program i am getting the following erroe message Exception in thread "main" org.drools.compiler.PackageBuilder$MissingPackageNameException: Missing package name for rule package. at org.drools.compiler.PackageBuilder.validatePackageName(PackageBuilder.java:294) at org.dro