Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: WIP-Notice removed

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

This page is WORK IN PROGRESS ...

...

Adding documentation links to job titles

Links can be built into added to job titles.
These are mainly intended to be used to provide a convenient link to job documentation. The

Such links can be added in (JOE (- JobScheduler Object Editor) as shown in the screenshot below, which shows a simple HTTP link:

Image Added

 Image Removed

In In JOC (- JobScheduler Operations Center) this link will then look like this:

Image RemovedImage Added

The following conditions have to be met before a title containing an URL will be shown in JOC:

...

Links can also be placed in "a" tags as shown in the following examples:

Example 1

Open JOE and type the following text in the title field of a job. (See also the screenshot to the right):

Code Block

 See &lt;a - see the <a href="<nowiki>httphttps://sourceforge.net/apps/mediawiki/jobscheduler/index.php</nowiki>"&gt;here&lt;/a&gt; for more information and also www.sos-berlin.com.
kb.sos-berlin.com/display/PKB/Locks">Locks</a> article

 Image Removed

JOC will now show the following title for the job:
"See here for more information and also www.sos-berlin.com."

...

Image Added

Example 2: Links to documentation within the

...

SCHEDULER_

...

DATA directory

JOC knows a virtual directory ./scheduler_data/jobs, which points to the jobs directory under the working directory of the JobScheduler.
So, when a link in the job title is defined with ./jobs/my_job_descriptions/test1.html, JOC will look for the file at the address ./scheduler_data/jobs/ folder in the JobScheduler's working directory. JOC will automatically link to files in this folder.

  1. Custom Documentation Files
    JOC will link to custom documentation files in a sub-directory the jobs folder.
    The following example shows the XML code to link to a test1.html file in a my_job_descriptions

...

Example:

...

  1. subfolder.

    Code Block
    languagexml
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
       

...

  1. <job title="test 

...

  1. <a href=

...

  1. "./scheduler_data/jobs/my_job_descriptions/test1.html

...

  1. ">docu</a>" stop_on_error="yes" order="no">
    

...

  1.    <script language="shell"><![CDATA[
    

...

  1.         env # "Print the environment"
       ]]></script>
    </job>
    
  2. JITL Job Documentation Files
    Copies of the documentation of all JITL jobs are provided in the ./scheduler_data/jobs, and the following code will link to the documentation of the JobSchedulerCheckRunHistory job:

    Code Block
    languagexml
    <?xml version="1.0" encoding="ISO-8859-1"?>
       <job title="test <a href="./scheduler_data/jobs/JobSchedulerCheckRunHistory.xml">JobSchedulerCheckRunHistory</a>" stop_on_error="yes" order="no">
       <script language="shell"><![CDATA[
            ...
       ]]></script>
    

...

  1. </job>