I didn't go as far as to use Velocity - but something like that could be handy. I wanted to minimise dependencies initially.
Note also that the DRL format in future will also have a non-xml format (XML will be supported as well) so any tool should support artibrary output (textual) format. If you want to work on something a little generic along these lines - such that you can build up a syntax tree of DRL with POJOs, and then serialise it to DRL in an appropriate format (ie support all SMFs, and XML, non xml eventually etc) that would be IMMENSELY useful. Would give us a head start in so many areas. This is needed for a whole lot of front end tools, and stuff like rule management and so on. Michael -----Original Message----- From: andrew mccormick (smileyy) [mailto:[EMAIL PROTECTED] Sent: Friday, 2 December 2005 10:12 AM To: [email protected] Subject: Re: [drools-dev] Object hierarchy to DRL file conversion It sounds like a similar issue to one that I faced. My solution was to use Velocity templates to generate XML rule files that were then parsed into a RuleBase. On 12/1/05, Nimesh Muley <[EMAIL PROTECTED]> wrote: > > Hi, > > In our project we are trying to build a UI (web-based) on similar > lines of Quick Rules. In this regard I wanted to know whether there is > a conversion between an Object hierarchy to a DRL file (for Java). In > some earlier threads I saw that from DRL Java object hierarchy is > being built. If the reverse is also possible can someone guide me as to how this can be done. > > We have our own Object hierarchy for the UI. So the thought process is > to convert this object hierarchy to the one acceptable to Drools and > then use the function to convert it to DRL file. > > Thanks. > Regards, > - Nimesh > -- [EMAIL PROTECTED] / [EMAIL PROTECTED]
