This doesn't look like it would be a simple transformation for the rules; but it depends on the logic hidden in the functions when and $relTime.
The part after THEN may be a plain method call, or require the insertion of a new fact. Read some of the Drools Expert documentation, and you should get an idea what is required for a Drools system to work. 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? -W 2010/10/31 Nirmal Fernando <[email protected]> > 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 <[email protected]> > > What, exactly, do you mean by "hand written"? Java statements? Another Rule >> System? >> Can you provide a sample? >> >> >> 2010/10/31 Nirmal Fernando <[email protected]> >> >>> 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. >>> >>> Blog: http://nirmalfdo.blogspot.com/ >>> >>> >>> _______________________________________________ >>> rules-users mailing list >>> [email protected] >>> https://lists.jboss.org/mailman/listinfo/rules-users >>> >>> >> >> _______________________________________________ >> rules-users mailing list >> [email protected] >> 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/ > > > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
