Flow Run by Schedule
Once the specified date and time come, the Flow Service's scheduler will run the Flow. You can specify 5 kinds of schedules as following for 1 Flow. (1)Run once only (2) Run at intervals. (3) Run once every day (4) Run once every week (5) Run once every month.
Flow
To create the Flow run by schedule, you should start it with a Start Component, and finish it with an End Component.
Create the Flow
Create a Flow as usual. You can click the "NewFlow" icon under the "Flow" tab in the "Create Flow" dialog box.
Start (Input stream)
There is no input stream for the Flow.
Flow parameter
Flow's parameter is a framework in which the value you want to set can be got from a caller by publishing the variable of the Flow you want to run. In the Flow run by schedule, by defining and publishing any Flow variable, you can specify a fixed value for execution settings. Once the Flow runs, the Flow Service will set the fixed value in the execution settings for the Flow variable.
Finish(Output stream)
There is no output stream.
Execution setting
You can connect the Flow with the specified date and time or any interval by execution settings. You can select one from 5 execution settings below according to your needs.
| Schedule execution type | Flow execution |
|---|---|
| Data/Time | Run once at the specified time in the specified date. |
| Interval | Run at specified intervals. |
| Daily | Run at the specified time every day. |
| Weekly | Run at the specified time in the specified day in a week |
| Monthly | Run at the specified time in the specified day in a month. |
Define execution setting
Click any one from "Date/Time", "Intervals", "Daily", "Weekly" and "Monthly" in the Execution Setting dialog box or Trigger Management's tool bar. Then click "Select" in the right of the "Flow" under "Flow settings", and select a Flow from the dialog box.
Settings for start and finish
Specify a date and time seperately for start and finish. To specify a date, you can click the pull-down list button in the right of the "Start time" and the "Finish time" to open a calendar, and select a date from it, or enter a date directly. To set a time, you can click the spin box button to set, or enter a time directly.
Parameter
When the public Flow variables in the Flow are defined, the Flow variable names are shown as the paremeter names automatically. When you want pass any value when the Flow runs, please set a value in the "Value" field.
Set a schedule
Specify a time with "Execution time"'s spin box.
To make the Flow not run in holiday and run on weekdays, you can select an operation from the pull-down list of the "Holiday operations", then select a system calendar from the pull-down list of the "Holiday setting" for each execution settings.
Create system calendar
Open "Calendar" of "Tools" in the Management Console, and enter a name into "New calendar name" field. After selecting the check box of "Specify holidays in a week", then select the holidays of a week in the check boxes, finally click "Create" button. The created system calendar will show in the "Holiday settings"'s pull-down list in execution settings.