Hi Laun,

Consider that 5000+ is a large number. Estimate the time it'll take you
to transform one rule: Will you be able to spend, say, 3 months for this
task?

We've already developed a piece of code which does this conversion. Following is an example.
Can you please comment on the converted rule? whether it is a valid drools rule or not?

Our Rule
IF _psubj(be,$var0) ^ NOT date($var0) ^ NOT $var0=$Time THEN ^1_Existence:Entity(be,$var0)

Converted Drools Rule
rule "0"
    when p: Processor( eval(p.existence("_psubj(be,"+p.conceptVar[0]+")")) && eval(!p.existence("date("+p.conceptVar[0]+")")) && eval(!p.testVar(p.conceptVar[0],"$Time")) )
    then
        eval(p.AppendRule(" ^1_Existence:Entity(be,"+p.conceptVar[0]+")"));
    end


 
Thanks.
-W



2010/10/31 Nirmal Fernando <nirmal070125@gmail.com>
Something like following 2 rules:

# IF when($Awareness,$var0) THEN ^1_Awareness:Time($Awareness,$var0)
# IF $relTime($Awareness,$Time) THEN ^1_Awareness:Time($Awareness,$Time)

thanks.

2010/10/31 Wolfgang Laun <wolfgang.laun@gmail.com>

What, exactly, do you mean by "hand written"? Java statements? Another Rule System?
Can you provide a sample?


2010/10/31 Nirmal Fernando <nirmal070125@gmail.com>
Hi,

I am having a 5000+ hand written rules which is used in an open source project.
I am searching for the reasons, me to be shifted to a rule engine like Drools, instead of using hand written once.
Drools rules can be debugged that will be a plus point, isn't it? I would love to get a list of benefits that I will be getting.

Thanks.

--
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users





--
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Blog: http://nirmalfdo.blogspot.com/