Has anyone had any success creating new Recurrence Patterns for use with the Recurring Activity Management Design App?
I've been working with Support on this as well but I'm interested in ideas from the community.
I'm tackling understanding Boo, so my calculations may not be correct even though they pass syntax.
Based on the modified calculation by Support (thanks Martyn) to recur on Monthly, I attempted to calculate for Quarterly and Annual as well.
Please have a look at my calculation formula from the Create Task attribute on the Recurring Activity business object in the Recurring Activity Management module and see if it makes sense.
if RecurringActivity._RecurringActivityPattern._Name == 'Monthly':
currentDate = RecurringActivity._StartDate.Day
if currentDate == DateTime.UtcNow.Day and RecurringActivity._StartDate.AddHours(1).Hour == DateTime.UtcNow.Hour:
if RecurringActivity._RecurringActivityPattern._Name == 'Quarterly':
currentQuarter = RecurringActivity._StartDate.Month
if currentQuarter == ((DateTime.Now.Month - 1) / 3) + 1 and RecurringActivity._StartDate.AddHours(1).Hour == DateTime.UtcNow.Hour:
if RecurringActivity._RecurringActivityPattern._Name == 'Annual':
currentYear = RecurringActivity._StartDate.Year
if currentYear == (DateTime.Now.Year - 1) + 1 and RecurringActivity._StartDate.AddHours(1).Hour == DateTime.UtcNow.Hour:
Additionally, is there a recommended method of testing this?
I have been creating an Activity and advancing the date and time on the server to force the Activity to create the tasks. I'm wondering if there is another method that might be better.
Any advice would be greatly appreciated.