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 date

[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 :

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 WebSphere 6.0

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

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

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

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( deviceTemp

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