Scheduling a Flow
A flow schedule runs a job or process flow automatically at a specific time. You can schedule a flow to run once, or set up recurring execution.
-
If you have not already done so, expose the job or process flow.
You can expose jobs and process flows by opening the job or process flow in Spectrum Enterprise Designer and selecting
. - Open Spectrum Management Console.
- Go to Execution then click Scheduling.
- Click Add to create a new schedule or, if you want to modify an existing schedule, choose the schedule and click Modify.
-
In the Add Task or Modify Task window, choose the settings for this task.
- Task Name - The name you want to give to this scheduled task. This is the name that will be displayed in the task listing.
- Flow type - Choose the type of process you are scheduling, either a job or a process flow.
- Flow name - Select the job or process flow that you want to schedule. Only jobs and process flows that are saved and exposed are available here. If the job or process flow that you want is not shown, open the job or process flow in Spectrum Enterprise Designer then select .
- Enable task - Check this box to run the job or process flow at the specified time. Clear this box to suspend the schedule.
- Schedule - Specify the date and time you want the job or process flow to run.
-
If the flow uses files for input or output,
those files must reside on the Spectrum Technology Platform server or on a
file server defined as an external resource in Spectrum Management Console. This applies
both to jobs as well as job activities within a process flow. If a source or
sink stage references a file on a client computer do one of these steps:
Option Description Option 1: Modify the flow Move the file to the Spectrum Technology Platform server or file server then modify the flow: - Open the flow in Spectrum Enterprise Designer.
- Double-click the source or sink stage.
- In the File name field, click the browse button.
- Click Remote Machine then select the file
you want.Note: If you are running Spectrum Enterprise Designer on the same machine as the Spectrum Technology Platform server, it will appear that clicking Remote Machine is no different than clicking My Computer. However, you must select the file using Remote Machine in order for the system to recognize the file as being on the Spectrum Technology Platform server.
Option 2: Override the flow file location when this schedule runs You can override the input file specified in the flow's source stage (such as Read from File), as well as the output file specified in the flow's sink stage (such as Write to File). - Click Options.
- Under Stage file locations select the stage that references a local file.
- Click Modify and select the file on the Spectrum Technology Platform server.
- If you want the job or process flow to run on a recurring schedule, check the Task recurrence check box then click the Recurrence button and complete the fields.
-
If the flow has been configured for email
notification, you can specify additional recipients for the notifications that
will be sent when the flow runs.
- Click Options.
- Under Notification, click Add.
- Enter the email address to receive notification. For example, me@mycompany.com.
- Click OK.
Note: Notification must be configured in Spectrum Management Console in order for email notifications to work. In addition, verify that the flow has been configured to support notification. To do this, open the flow in Spectrum Enterprise Designer, select . - Click OK.