'This workflow will run on the schedule you define here once you <a data-key="activate">activate</a> it.<br><br>For testing, you can also trigger it manually: by going back to the canvas and clicking ‘execute workflow’',
name:'notice',
type:'notice',
default:'',
},
{
displayName:'Trigger Rules',
name:'rule',
placeholder:'Add Rule',
type:'fixedCollection',
typeOptions:{
multipleValues: true,
},
default:{
interval:[
{
field:'days',
},
],
},
options:[
{
name:'interval',
displayName:'Trigger Interval',
values:[
{
displayName:'Trigger Interval',
name:'field',
type:'options',
default:'days',
options:[
{
name:'Custom (Cron)',
value:'cronExpression',
},
{
name:'Days',
value:'days',
},
{
name:'Hours',
value:'hours',
},
{
name:'Minutes',
value:'minutes',
},
{
name:'Months',
value:'months',
},
{
name:'Seconds',
value:'seconds',
},
{
name:'Weeks',
value:'weeks',
},
],
},
{
displayName:'Seconds Between Triggers',
name:'secondsInterval',
type:'number',
default:30,
displayOptions:{
show:{
field:['seconds'],
},
},
description:'Number of seconds between each workflow trigger',
},
{
displayName:'Minutes Between Triggers',
name:'minutesInterval',
type:'number',
default:5,
displayOptions:{
show:{
field:['minutes'],
},
},
description:'Number of minutes between each workflow trigger',
},
{
displayName:'Hours Between Triggers',
name:'hoursInterval',
type:'number',
displayOptions:{
show:{
field:['hours'],
},
},
default:1,
description:'Number of hours between each workflow trigger',
},
{
displayName:'Days Between Triggers',
name:'daysInterval',
type:'number',
displayOptions:{
show:{
field:['days'],
},
},
default:1,
description:'Number of days between each workflow trigger',
},
{
displayName:'Weeks Between Triggers',
name:'weeksInterval',
type:'number',
displayOptions:{
show:{
field:['weeks'],
},
},
default:1,
description:'Would run every week unless specified otherwise',
},
{
displayName:'Months Between Triggers',
name:'monthsInterval',
type:'number',
displayOptions:{
show:{
field:['months'],
},
},
default:1,
description:'Would run every month unless specified otherwise',
},
{
displayName:'Trigger at Day of Month',
name:'triggerAtDayOfMonth',
type:'number',
displayOptions:{
show:{
field:['months'],
},
},
typeOptions:{
minValue: 1,
maxValue: 31,
},
default:1,
description:'The day of the month to trigger (1-31)',
hint:'If a month doesn’t have this day, the node won’t trigger',
},
{
displayName:'Trigger on Weekdays',
name:'triggerAtDay',
type:'multiOptions',
displayOptions:{
show:{
field:['weeks'],
},
},
typeOptions:{
maxValue: 7,
},
options:[
{
name:'Monday',
value: 1,
},
{
name:'Tuesday',
value: 2,
},
{
name:'Wednesday',
value: 3,
},
{
name:'Thursday',
value: 4,
},
{
name:'Friday',
value: 5,
},
{
name:'Saturday',
value: 6,
},
{
name:'Sunday',
value: 7,
},
],
default:[7],
},
{
displayName:'Trigger at Hour',
name:'triggerAtHour',
type:'options',
default:0,
displayOptions:{
show:{
field:['days','weeks','months'],
},
},
options:[
{
name:'Midnight',
displayName:'Midnight',
value: 0,
},
{
name:'1am',
displayName:'1am',
value: 1,
},
{
name:'2am',
displayName:'2am',
value: 2,
},
{
name:'3am',
displayName:'3am',
value: 3,
},
{
name:'4am',
displayName:'4am',
value: 4,
},
{
name:'5am',
displayName:'5am',
value: 5,
},
{
name:'6am',
displayName:'6am',
value: 6,
},
{
name:'7am',
displayName:'7am',
value: 7,
},
{
name:'8am',
displayName:'8am',
value: 8,
},
{
name:'9am',
displayName:'9am',
value: 9,
},
{
name:'10am',
displayName:'10am',
value: 10,
},
{
name:'11am',
displayName:'11am',
value: 11,
},
{
name:'Noon',
displayName:'Noon',
value: 12,
},
{
name:'1pm',
displayName:'1pm',
value: 13,
},
{
name:'2pm',
displayName:'2pm',
value: 14,
},
{
name:'3pm',
displayName:'3pm',
value: 15,
},
{
name:'4pm',
displayName:'4pm',
value: 16,
},
{
name:'5pm',
displayName:'5pm',
value: 17,
},
{
name:'6pm',
displayName:'6pm',
value: 18,
},
{
name:'7pm',
displayName:'7pm',
value: 19,
},
{
name:'8pm',
displayName:'8pm',
value: 20,
},
{
name:'9pm',
displayName:'9pm',
value: 21,
},
{
name:'10pm',
displayName:'10pm',
value: 22,
},
{
name:'11pm',
displayName:'11pm',
value: 23,
},
],
description:'The hour of the day to trigger',
},
{
displayName:'Trigger at Minute',
name:'triggerAtMinute',
type:'number',
default:0,
displayOptions:{
show:{
field:['hours','days','weeks','months'],
},
},
typeOptions:{
minValue: 0,
maxValue: 59,
},
description:'The minute past the hour to trigger (0-59)',
},
{
displayName:
'You can find help generating your cron expression <a href="http://www.cronmaker.com/?1" target="_blank">here</a>',
name:'notice',
type:'notice',
displayOptions:{
show:{
field:['cronExpression'],
},
},
default:'',
},
{
displayName:'Expression',
name:'expression',
type:'string',
default:'',
placeholder:'eg. 0 15 * 1 sun',
displayOptions:{
show:{
field:['cronExpression'],
},
},
hint:'Format: [Minute] [Hour] [Day of Month] [Month] [Day of Week]',