[rules-users] custom rule creation/parsing

Mark Proctor mproctor at codehaus.org
Mon Jul 16 07:33:15 EDT 2007


I'm working on a pluggeable parser API at the moment, but not for 4.0 
final :(

However you can build up a PackageDescr (package descrition) yourself 
and add that to the PackageBuilder. All any parser does is build up a 
PackageDescr which the PackageBuilder then compiles.

mark
Eugeny N Dzhurinsky wrote:
> Hello!
>
> We are about to develop an application where customers are responsible to
> create various rules and define actions. There are a dictionary of available
> conditions applied to objects as well as set of predefined actions.
>
> For now  we know there is a DRL, which is parsed and certain actions are
> executed, but we think the way
>
> our custom objects -> generate DRL -> parse DRL by Drools -> inject rules objects
>
> is a bit redundant, in such way we need to create additional layer to generate 
> something which is to be parsed then by Drools. 
>
> We would like to avoid such complexity, if possible.
>
> Is it possible to create our own objects which will act as rules for Drools
> framework, so we can implement some interfaces/inherit some abstract classes
> and inject our custom logic/objects there?
>
> Thank you in advance!
>
>   




More information about the rules-users mailing list