We have the following scheduling scenarios requested, we have tried to code some javascript but it is not working for us. Anyone out there know of a solution or had to schedule something similar
Job 1
Schedule on 1st workday of Month at 17:00 GMT & Schedule on 20th Day to last workday of month at 17:00 GMT
if (today('1st workday of month')) APPL.RUNME ='true';
if (daysFrom('20th day of month') >= 0 && daysTo('last workday of month') <= 0) APPL.RUNME ='true'; (doesn't work from 21st day through last workday)
else APPL.RUNME ='false';
Job 2
Schedule Daily at 11:00 GMT. DO Not Schedule on 1st WorkDay and 2nd WorkDay of every month & Schedule on 1st WorkDay if it falls on Friday (only)
if (today('1st workday of month plus 0 workdays')) APPL.RUNME = 'false';
if (today('1st workday of month plus 1 workdays')) APPL.RUNME = 'false';
else if (today('1st workday of month' == 'friday')) APPL.RUNME = 'true'; (This contradicts on something on occasion)
else APPL.RUNME = 'true';