Basically you could do<br><br>rule RL1<br>when<br>   Request( type == &quot;Rq1&quot;,... )<br><br>which limits the rule to Requests of this type.<br><br>-W<br><br><div class="gmail_quote">On 8 August 2011 10:23, snehils <span dir="ltr">&lt;<a href="mailto:snehils@gmail.com">snehils@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I am new in Drools. I am using Drools version 5.1.0<br>
<br>
My requirement is kind of request response, where I have to perform some<br>
checks for the request and respond the result. Hence, I decided to go with<br>
stateless knowledge session.<br>
<br>
I have prepared .DRL file and it contains set of rules. When some request<br>
receives I have to identify the rule(s) belongs to that request and then<br>
fire the rule(s).<br>
<br>
I am not able to figure out how to categories the rules request wise in DRL<br>
file? Also, how to fire only those rules which belongs to the category.<br>
<br>
For example, there are three kinds of requests Rq1, Rq2 and Rq3. There are<br>
rules in DRL file: R1, R2, R3, R4 and R5. R1, R2 belongs to Rq1, R3 belongs<br>
to Rq2 and R4, R5 belongs to Rq3.<br>
<br>
When some request receives only its belonging rules should be fired. For<br>
example, on receiving of Rq2 only R3 should be fired.<br>
<br>
Please provide me some code snipped or link.<br>
<br>
Thanks<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Fire-Rule-in-Stateless-Knowledge-Session-tp3234893p3234893.html" target="_blank">http://drools.46999.n3.nabble.com/Fire-Rule-in-Stateless-Knowledge-Session-tp3234893p3234893.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>