Good afternoon,
I've been tasked to put together a process in which a date is given and then there should be a reminder 90 days in advanced. So far so good, I'm using a Date Token Calculator to calculate the date and do my thing.
When the Date finally meets the criteria, then it goes into a branch where the "Number of Days" field is updated to 30, and then when the date finally meets the criteria again, then the "Number of Days" filed is updated to...say 15, and then 10 and then 5 and then 4,3,2,1,0
As you might be predicting, I'm creating a reminder for those dates. I have a branch with a condition to meet the criteria and once the criteria is met, then updates the number and on to the next branch and so and so.
Of course, event though it works, I'm looking for a more programmatic way to approach this. As I see it, I would have to make the "Number of Days" field read-only, otherwise the criteria would never be met if someone changes it, as it is hard-coded in metadata. Another problem would be if I want to add more criteria, like, 1 year, 6 months, 3 months, etc. It would become hard to maintain. It doesn't have to be a set number of days it could be calculated in weeks, moths, days combination, as long as it is scalable.
Any ideas on how to take the next step to improve this branch?
Thank you,
Raul Gonzalez