How to schedule an Automation Services job using the Microsoft Windows Task Scheduler.

How to schedule an Automation Services job using the Microsoft Windows Task Scheduler.

book

Article ID: KB0081015

calendar_today

Updated On:

Products Versions
Spotfire Automation Services All Versions

Description

This article provides instructions to schedule an Automation Services job using the Client Job Sender and Microsoft Windows Task Scheduler.

The Client Job Sender can be installed and run on any machine which can access the TIBCO Spotfire Server URL which meets the prerequisites documented in the "Installing the Client Job Sender" documentation reference. This allows you to trigger already defined Automation Services jobs.

Issue/Introduction

How to schedule an Automation Services job using the Microsoft Windows Task Scheduler.

Resolution

  1. Create a job using Automation Services Job Builder in TIBCO Spotfire Analyst client.
  2. Save the job file. (For example: "ASjobfile.xml") 
  3. Make sure that the "Spotfire.Dxp.Automation.ClientJobSender.exe" and "Spotfire.Dxp.Automation.ClientJobSender.exe.config" files are placed together in one folder on the computer where you want to schedule this Automation Services job using the Windows Task Scheduler. (These files are provided in the Automation Services product download zip file. See "Installing the Client Job Sender" documentation reference)
  4. Copy the job file ("ASjobfile.xml") file to the same machine as above and save the job file to a specific folder (For example: to a folder named C:\XMLJobs ). 
  5. Open the Microsoft Windows Task Scheduler.
  6. Create a Task ("Actions" > "Create Task"):
    • General: Provide a name, such as "ASTaskScheduler" for example. (Triggers: skip this step for now.)
    • Triggers: Click "New" to define the desired triggers for the task (on schedule, startup, etc)
    • Action: 
      • Click on "New" > Select "Start a program" > "Program/script"
      • Browse to the folder where the "Spotfire.Dxp.Automation.ClientJobSender.exe" file is located. 
      • In the "Add arguments (Optional):" Section, add the relevant server URL and path to the job file:
        • For versions 7.5 and higher, input with the syntax "[TIBCO Spotfire Server URL] [JobFileLocation]". For example:
          "http://myTIBCOSpotfireServer:8080" "C:\XMLJobs\ASJobfile.xml"
          
        • For versions 7.0 and lower, input with the syntax "[TIBCO Spotfire Automation Services URL] [JobFileLocation]". For example:
          "http://myTIBCOSpotfireAutomationServicesHostname/SpotfireAutomation/JobExecutor.asmx" "C:\XMLJobs\ASJobfile.xml"
          
      • Click OK.
  7. Click OK
  8. Test the job to ensure it is configured correctly by selecting it, then running it via "Selected Item" > "Run".

Additional Information

Doc: Installing the Client Job Sender Doc: Scheduling the Client Job Sender External: Schedule a Task