Re: [rules-users] Re: Constants on LHS?

2007-12-11 Thread Rahul Phadnis
In the application that I am working with we assert a Parameter object that provides API for retrieving the constants. The parameters are configurable and are loaded from a persistent store before they are asserted into the working memory. Rahul --- J Michael Dean <[EMAIL PROTECTED]> wrote:

Re: [rules-users] Using java.util.List in rules

2007-10-31 Thread Rahul Phadnis
Do you have an import statement for importing TipoCaracteristica? I see you are already using TipoMolde.CABELO which I assume is another public static variable in the TipoMolde class. If none of these work can you post your drl file? Rahul --- Anderson Pazza Mello <[EMAIL PROTECTED]> wrote: >

Re: [rules-users] Matching time diff

2007-10-26 Thread Rahul Phadnis
Are you sure that timediff is doing the correct thing? Can you post the code of MyFact and timediff? --- Miguel Figueiredo <[EMAIL PROTECTED]> wrote: > Hi listers, > > I have a fact MyFact that has a Date field in it, > and I want to check if the > difference between this date and the current

Re: [rules-users] Jboss rules: or with binding issue?

2007-10-24 Thread Rahul Phadnis
being handled as a > special case, or the multi-binding is ok for you. > > Meanwhile, the workaround is either use the > multi-bind as you are using > or the infix OR as I showed above. > >[]s >Edson > > 2007/10/23, Rahul Phadnis <[EMAIL PROTECTED]

[rules-users] Jboss rules: or with binding issue?

2007-10-23 Thread Rahul Phadnis
I am using Jboss Rules 4.0.2 version. I am trying to using or with binding. However the following doesn't work rule "RulesTest" # the if part activation-group "ActivationGroup1" salience 50 when $eventType: EventType(id == Constants.EVENT_DEVCOM_ID) $result : Resu

[rules-users] Logging from rules file

2007-06-28 Thread Rahul Phadnis
Hello, I am looking for pointers to how I can effectively log messages during rule executions. Do I need to assert a logger object for this purpose? Does anybody have an recommendations for this? -Rahul ___ rules-users mailing list rules-users@lists.jb

Re: [rules-users] rule not valid...

2007-06-06 Thread Rahul Phadnis
You probably need a package definition at the top of the file. Please also import the SupplierView class in the rules drl file. You can also first test using the drools sample files. -Rahul --- "Manukyan, Sergey" <[EMAIL PROTECTED]> wrote: > > Folks, > > > > I am using Rules 4.0 in WebSp

Re: [rules-users] Extracting an boolean variable

2007-05-29 Thread Rahul Phadnis
Does your Fact object have the isbooleanVariableName() method? The variable values are extracted using Java Bean conventions. -Rahul --- "Rajesh.Sachin10" <[EMAIL PROTECTED]> wrote: > > I tried to extract a boolean variable from a class > using context. The > following is my code in DSL file.

Re: [rules-users] LHS Dao Calls

2007-04-06 Thread Rahul Phadnis
> ItemVo( statusCode : itemStatusCode != null, (* > itemValidationDao.isValidItemStatus(statusCode)*) ) Can we call methods with arguments in the LHS? Or this can be done for globals but not facts? Is this a new feature of 3.1? -Rahul ___ rules-users ma

[rules-users] Are all predicates evaluated each time?

2007-04-05 Thread Rahul Phadnis
itions are "AND" conditions) >From my tests it seems like the getPvPower method is called irrespective of the value of timeRight. If that is the expected behaviour how can I improve my rule definition to ensure that getPvPower isn't called if it is not necessary. Thank you, Rahul

Re: [rules-users] NullPointer in LHS dao calls ..

2007-04-03 Thread Rahul Phadnis
Did you set the global in the WorkingMemory? You can do that using the API at http://labs.jboss.com/file-access/default/members/jbossrules/freezone/docs/3.0.5/apidocs/index.html and yes that is for 3.0.5. I am sure there is an equivalent for the version that you are using. -Rahul --- Sanjay Si

Re: [rules-users] NullPointer in LHS dao calls ..

2007-04-03 Thread Rahul Phadnis
Did you set the global in the WorkingMemory? You can do that using the API at http://labs.jboss.com/file-access/default/members/jbossrules/freezone/docs/3.0.5/apidocs/index.html and yes that is for 3.0.5. I am sure there is an equivalent for the version that you are using. -Rahul --- Sanjay Sing

[rules-users] RE: Rules with Lookup Tables...

2007-03-06 Thread Rahul Phadnis
Have you looked at http://labs.jboss.com/portal/jbossrules/subversion.html I think that page is not uptodate since at the bottom it says "Trunk is unstable and may often not build. If you wish to build form Subversion source the latest tag is: http://anonsvn.labs.jboss.com/labs/jbossrules/tags/3.

Re: [rules-users] Writing rules using java..

2007-03-02 Thread Rahul Phadnis
I may not be understanding your requirements but would storing the rule definition file in the database help. So you have file with all your rules and you store it in the database. At execution time you load the rules file and hence rules from the database. Rahul --- "Kolla, Sandeep" <[EMAIL PRO

RE: [rules-users] Rules with Lookup Tables...

2007-03-02 Thread Rahul Phadnis
Previously Edson had suggested using the "from" CE. Here is the example from his previous posting rule "Device not working (condition id = 4)" when alertDefinition : AlertDefinition (conditionID== 4, eid : entityID) Power( value < 1000 ) from dao.getPower( eid ) Temperature( deviceT

[rules-users] Previous mailing list archives

2007-02-28 Thread Rahul Phadnis
I understand that the jboss rules mailing list migrated to the current server recently. Can somebody tell me where can I find archives from the previous mailing list? -Rahul --- Edson Tirelli <[EMAIL PROTECTED]> wrote: > >Alexander, > >Seems a really interesting project indeed! >T

Re: [rules-users] Rule definition help

2007-02-23 Thread Rahul Phadnis
$ac : AlertCondition (conditionId ==4, $eid : > entityID, > >$p : power, $at : ambTemperature) > > then > > log("Triggered Device not working alert for " + > $eid + > >", power=" + $p + ", ambient temperature=&qu

[rules-users] Rule definition help

2007-02-22 Thread Rahul Phadnis
I am very new to JBoss rules and I am trying to use it for evaluating alert conditions. I am asserting the AlertDefinition object as a fact into the working memory. The rules file would define a variety of alert condition rules. for example rule "Device not working (condition id = 4)" # the

Re: [rules-users] Jar Files Required for Drools?

2007-02-20 Thread Rahul Phadnis
I am relatively new to Drools. In my case I need the following jar files for running drools with rules written in DRL. drools-compiler-3.0.5.jar drools-core-3.0.5.jar commons-jci-core-1.0-406301.jar commons-jci-eclipse-3.2.0.666.jar commons-logging-api-1.0.4.jar commons-lang-2.1.jar core-3.2.0.666