Simply write a (static) Java function - it can be easily incorporated into DRL code so that you can use it in rules.
BTW: This list is not a Programming Service. If you'd like to hire a consultant: there are people on this list that might help you. -W On 16/06/2014, Ravi <gravisand...@gmail.com> wrote: > Hi, >> >> I am new to drools. I want to write a function that accepts two strings >> and returns a date. The two strings are one for the payment frequency and >> the other for the payment day. Following are my requirements: >> >> 1.If the payment frequency is daily, return current date >> 2.If the payment frequency is weekly and the payment day is let's say >> Monday, and the current day is Monday, then return current date. If the >> current day is Monday and the payment day is Tuesday, return current date >> + 1. Likewise, if the payment day is Wednesday, return current date + 2. >> 3.If the payment frequency is monthly and payment day is 15, retrieve the >> current month and current year and return MM-15-YYYY. >> Please help me write a function for this. Thank you so much in advance. >> > > _______________________________________________ > 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