[rules-users] Regarding Jboss drools rules

Sai Venkat sai_botta at yahoo.co.in
Tue May 11 21:56:03 EDT 2010


Good Morning Mr.Laun,

Yes you are correct.But request you to send me sample code for that sort of application as how to write ro implement rules.
what class need to be written and rules related to that.

waiting for your response

thanks in advance   

venkat




________________________________
From: Wolfgang Laun <wolfgang.laun at gmail.com>
To: Rules Users List <rules-users at lists.jboss.org>
Sent: Tue, 11 May, 2010 21:36:59
Subject: Re: [rules-users] Regarding Jboss drools rules

If I understand you correctly, you just have to classify data records (facts) as "passed" and "failed".

If possible, add another field "result" to the class representing your "record" which may assume the values "undef", "passed", "fail".

Write rules to detect the "passed" objects with result == Result.UNDEF and set result to Result.passed, or print and retract the fact.

Write one rule with low (negative) Salience for objects with result == Result.UNDEF and set 
result to Result.failed, or print and retract the fact.

That's all there is to it.
-W




2010/5/11 Sai Venkat <sai_botta at yahoo.co.in>

Hi Mr.Laun,
>Thank you very much for the response.
>yes i mean Facts only.but my requirement is for a set of input which contains records in text or xls or anyother format we write some rules, based on the conditions the set of input if satisfies will give an outcome or result.
>so is there any tracking like where i can figure out tht these were the outcomes or result for total of 5 records only 3 were satisfied and the rest failed.
>
>i need the output to be shown to the enduser for the processed records or for the total input and total output.
>please do help me.
>
>Thanks and regards
>
>venkat 
>
>
>
>
________________________________
From: Wolfgang Laun <wolfgang.laun at gmail.com>
>To: Rules Users List <rules-users at lists.jboss.org>
>Sent: Tue, 11 May, 2010 16:32:31
>Subject: Re: [rules-users] Regarding Jboss drools rules
>
>
>This is the strangest request I have seen on this list...
>
>If you need a sample application, take your pick from the examples provided with Drools, which you could modify to show whatever you want to see.
>
>Anyway, what you write is far from a clear specification. There is no such thing as a "success(ful)" or "failed" record in Drools. (Do you mean facts?)
>
>-W
>
>
>
>2010/5/11 Sai Venkat <sai_botta at yahoo.co.in>
>
>Hi could anyone send me a sample application which has two rules for a set of 5 records and process the rules show the output in any format(text,csv,xls...).
>>
>>the result should be dispalyed with both the success and failed records after it processed the rules.
>>
>>Thanks n Regards
>>
>>venkat  
>>
>>_______________________________________________
>>rules-users mailing list
>>rules-users at lists.jboss.org
>>https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
>_______________________________________________
>rules-users mailing list
>rules-users at lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/rules-users
>
>



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100512/ec4d6c89/attachment.html 


More information about the rules-users mailing list