Not really sure what you are trying to do. A rule doesn't have properties, other than the standard name, documentation, salience etc.

You should never try calling a rule directly almost always a sign you are doing something wrong, unless you really know what you are doing, it should fire as a reaction to facts asserted or modified.

Beyond that I don't really understand what you are trying to do.

Mark

Anagha wrote:
Hi,
I'm using drools in my application for routing. Application has full control
on firing rules in that it says fire rule R1.
Requirement is like this :
Any rule has 2 properties, name and class. e.g. Rule R1 has these properties
as "getIp" and  "BusinessClass" respectively.
These are not conditions.
When the application says fire "R1" it should get the properties for that
rule say, "getIp" and ""BusinessClass".
And consequence should use them.

I've implemented this by RuleAPI in which I've exetnded from drools
Condition class to store these properties.
How can I show the same in "drl" xml?

Please help.

--
Thanks & Regards,
Anagha


Reply via email to