Construct Quartz.Net Cron Expression for a requirement -
i have requirement send email reminder customers. i'm trying trigger quartz job based on datetime x weeks later after event. in quartz job, i'm supposed check condition whether happened or not. if condition false (e.g. no action customer), have send reminder y weeks later. check again same condition, if false, send last reminder on specific datetime known me right @ start of whole process.
any idea how construct cron expression? thanks
lyf
i suppose you're using c#, right? can use cron:
var cronreminderexpression = string.format("0 0 9 1/{0} * ? *", (periodicitylength*7).tostring()); where periodicitylength number of weeks. multiplying 7 cause there's no proper expression weeks or, @ least, haven't been able find it. can find cron expression builder here.
quartz.net 2.0 supports new trigger called calendarintervaltrigger. can read more here. can chain jobs way.
Comments
Post a Comment