Is there a way to dynamically create rules in java?

Specifically, for a rule in the following general form I have a .txt list of
strings I want to match against and take actions upon.  I know I can make a
.drl out of this list without too much trouble; however the ideal case would
be to simply genearate and load the rules directly into the rulebase.  Is
this possible?  And if so, can you give me a simple example?


rule "name"
no-loop true
salience 0
        when 
                sd : SmartDescription(description matches "string", 
                possibleFamilyKeySet contains "some value", 
                description : description);

        then
                *perform java actions*
end

Any assistance would be appreciated
Thanks,

___________________________________________________
Brian Trezise
Staff Software Engineer
IntelliData, Inc
3173 s. uravan way
aurora, colorado 80013
T: 720.524.4864
[EMAIL PROTECTED]

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to