Table of Contents

Workflow Schedules Version 2.4 and prior

When Bizweaver workflows are in active use (in production), they are at times executed using a schedule. This means that they will execute automatically at a defined time. No user action is required.

A schedule is created by selecting the desired combination of options as described below. If both the schedule and the workflow are enabled, the workflow will execute automatically at the appropriate time.

Be sure to save the workflow after adding/changing a schedule. Saving the workflow is what saves the schedule, not just closing the schedule window.

To create a schedule for a workflow:

The Schedule Information window opens. This is where the schedule for this workflow is maintained.




Using VBScript and Decisions to Control Schedule

There may be situations where the standard scheduling tool will not accommodate your desired schedule. For example, you may only want the workflow to process data only between 8:00a and 5:00p on weekdays. You can only specify weekdays in the scheduler, but there is no way to defined the time range.

To accommodate this requirement, we can use VBScript and a Decision in the workflow.

The VBScript to check the hour is:

if (Hour(Now())) >= 8 and (Hour(Now())) <= 17 then CalcHour = "Y" else CalcHour = "N" end if
 
return "doProcess",CalcHour 

A Decision is set up to evaluate the “doProcess” variable.

The definition of the decision step is shown below.

Now, if the value = “Y”, the processing will continue. Otherwise, the cycle will end.