You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 33 Next »

Introduction

Standalone Jobs and Order Jobs

JobScheduler comes with two types of job that can be used to carry out workflow automation tasks - Standalone Jobs and Order Jobs.

Order Jobs are the more powerful and flexible approach. However, Standalone Jobs are quite often used in simpler job scheduling environments and where users have migrated from other job scheduling systems such as TWS which are based on a similar concept.

Order Jobs are run in Job Chains and require an Order before they can run. Orders are triggers that start a job chain and convey information about the state in a job chain that corresponds with the job that is being run. Orders can also have a payload of parameters that are processed by individual jobs. These concepts are explained in more detail in our Concepts for jobs, job chains and orders article. In addition, our Job Chains article illustrates some of the basic job chain patterns that can be implemented with JobScheduler.

Most of these tutorials in this series concentrate on Order Jobs - however the following article provides a step-by-step guide to configuring and running Standalone Jobs:  

The tutorials in this series

First Steps

This first tutorial shows how to run a simple Order Job containing a shell script that writes "Hello World" into the job's log file and to verify that this job has run correctly. 

The order for the job will be started and monitored using the JOC Cockpit web browser interface. A good starting point for finding out more about JOC is our JOC Cockpit article.

Starting Requirements

Before you start this tutorial, it is assumed that the following software is installed and is running:

  • JobScheduler
  • JOE, for editing and creating Jobs and Orders
  • the JOC Cockpit for operating the JobScheduler

You should also have downloaded and unpacked the demo file and copied it to your JobScheduler's live folder.

See the JobScheduler - Tutorials - Introduction and Requirements article for instructions about meeting these requirements.

Running the "Hello World" Job using the JOC Cockpit

  1. To start the JOC Cockpit open a browser tab and call the JOC Cockpit using an address such as:
  2. Log into the JOC Cockpit using an authorized account name and password. The account name shown in the screenshot below is for one of the default accounts supplied with the JOC Cockpit. 
  3. After logging in successfully the Dashboard view will be shown:
  4. Click on the Job Chains link in the grey menu bar near the top of the dashboard as shown in the previous screenshot. This will open the Job Chains view, with the menu tree in the left hand part of the Job Chains view showing the folder structure in the JobScheduler's live directory.
    • Click on the tutorials link in the menu tree to the left as shown below:


  5. The tutorials folder contains a single job chain which will now be shown in card form as shown in the next screen shot:

    As indicated in the brief discussion of Jobs and Orders in the introduction to this Tutorial, an Order for the Job Chain is required to start the Hello World job.  The Card view provides two possible ways of generating an Order for the Job Chain:
    • the Add Order link at the bottom left of the Card and 
    • via the Additional Options (ellipsis) icon shown behind the pointer in the screen shot above. This will open a list of options for the Job chain:
      • Show Flow Diagram
      • Show Configuration
      • Add Order
      • Manage Orders
      • Show Calendar
      • Stop Job Chain
    • Now select the Show Flow Diagram option, which will open a schematic representation of the Job Chain and a table showing the recent Order History as shown in the next screenshot:

      The Card shown in the Job Chain represents the Hello World job and the Additional Options menu in the Card can be used to carry out operations on the Job itself, such as showing the Job's configuration or stopping it. The Order, which is required to run the Job, can be accessed via the Additional Options menu above the Job Card (behind the mouse pointer) and can be started by selecting Start Order Now as shown in the next screenshot:
    • The Job will only take a fraction of a second to run and therefore cannot be followed in the flow diagram but after a few seconds the Order History in the pane below the Flow Diagram will be updated as shown in the next screenshot:

      Clicking on any entry in the top row of the Order History will now open the Log file for the Order that has just run, where details of the Order can be inspected if necessary.

 

 

 

  • No labels