Hi,
How can i schedule a work flow in custom time?
I want schedule my work flow every two week in Thursday.
Hi,
"Every 2 weeks on Thursday" is a type of recurrence that cannot be expressed in current vRO scheduler UI.
Not sure if they are applicable to your case, but here are some possible workarounds:
Hi,
"Every 2 weeks on Thursday" is a type of recurrence that cannot be expressed in current vRO scheduler UI.
Not sure if they are applicable to your case, but here are some possible workarounds:
Thank you,
Please write a example of workflow.schedule method.
i want use it but can not write it in correct format
Something like the following should work - it demonstrates how to schedule a workflow for one-off execution after 14 days from now.
var wfToSchedule = workflow.rootWorkflow; // schedule itself (the current executing workflow)
//var wfToSchedule = Server.getWorkflowWithId("3689db6f-f9b3-4048-80cd-7dd2834d1d90"); // schedule a workflow with given ID
// Determine the schedule date (in this case, 14 days after now)
var scheduleDate = new Date();
var after = 14 * 24 * 60 * 60 * 1000; // 14 days in milliseconds
scheduleDate.setTime(scheduleDate.getTime() + after);
// Prepare workflow input parameters (if any)
var wfInputs = new Properties();
wfInputs.put("p1", "some value");
var task = wfToSchedule.schedule(wfInputs, scheduleDate, "myusername", "mypassword");
Thank You, It's work.