If you can construct DRL String then pass this to a KnowledgeBuilder with StringReader and check for errors.
sent on the move
On 30 Apr 2011 13:55, "Vijeth Raj" <vijethrajk@gmail.com> wrote:
> Hi ,
> I am working on a Grails project where I have a web UI where the user
> can define rules with all the conditions and the .DRL file will be
> generated. Finally when the user clicks on a validate button ,my
> application should validate the defined rules (which is in .DRL file) to
> check for errors.
>
> So now my question is :How do I validate my DRL file?
>
> Can any one please guide me how can I achieve this?
>
> Thanks in advance.
>
> Vijeth Raj K
>
> vijethrajk@gmail.com