Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

The conditions Conditions for the jobs can be checked before the job execution and after the job execution. The condition which is checked before the job execution is called In - Condition and the condition which is checked after the job execution is called Out - Condition.

  • The condition which that controls the execution of the job is referred to as In - Condition.
  • And the The condition which that either Create creates an Event or Delete Event according to the Event List deletes an Event is referred to as Out - Condition.

Conditions to the job can be added to jobs depending upon whether the new Job Stream is to be created or the Job Stream already exists. 

  1. Creating a new Job Stream:
    • Login to the JOC Cockpit, switch to the JOB STREAMS tab"Job Streams" tab.
    • From the left side tree view select the folder with the jobs to which a condition is to should be added.
    • After clicking on folder there will be a message displayed No Job Streams found. Click Here to Add. 
    • Click on the link to add the Job Stream.
    • A Create Job Stream pop up window will be displayed. Enter the name of the Job Stream and click hit the "submit" button.
    • Now drag and drop the jobs for which you want to add an In - Condition or Out - Condition.
    • The conditions for a job can also be added or deleted by the option Edit Conditions in the action menu of the job from the list view of the JOB STREAMS "Job Streams" tab.    
  1. Image Added

  2. Note:

      • The
  3. Edit Conditions tab can also be used to add a condition for existing Job Stream by adding the same name of Job Stream as that of existing Job Stream in the
      • Conditions
  4. Editor.
  5. Image Removed
      • A Condition Editor opens for the job.

    Image Modified

  6. Adding a condition for to a job in an Existing existing Job Stream:
    • If a Job Stream is already created for a job/jobs in the same folder then you can drag and & drop the job for which you want to add a condition.
      • Note: On dropping a job to the Job Stream the name of the Job Stream will be set by default to the name of Job Stream on to which the job is added/dropped.

Image Modified


    • When the job is dropped a the Conditions Editor pop-up window opens.

Image Modified

How to add an In

...

Condition to a

...

Job?

  • Open the Conditions Editor, if there are no In - Conditions added then in the In - Conditions tab there will be written displayed "No Inconditions In Conditions found. Click Here To Add". Click on "Click Here To Add" to add an In - Condition.

Image Modified


  • Another Conditions Editor window will open.  Add the expression Expression to be evaluated. You can use the Expression Editor to check what Expressions are supported by Job Streams. Then select a Command which is to be executed if the expression becomes Expression evaluates to true. The In - Condition supports two commands:
    • startJob: This command starts the job according to the value of Command Param if the expressions evaluate Expression evaluates to true. The default value of Command Param is now, which means the job will be started start as soon as the result of the Expressions becomes Expression becomes true.
    • writeLog: This command writes the message provided in with the Command Param to the task log of the log for job to which the In - Condition is added. 

Image Modified

How to add an Out

...

Condition to a job?

  • Open the Conditions Editor , and switch to the Out - Conditions tab there . There will be written displayed "No Outconditions Out Conditions found. Click Here To Add". Click on "Click Here To Add" to add an Out - Condition.
  • Another Conditions Editor window  will open.  Add the expression Expression to be evaluated. You can use the Expression Editor to check what Expressions are supported by Job Streams. By default, the expression Expression is set to "returncode:0" which means the checks a successful run of the job. Then select an Event List which is to be executed if the expression becomes Expression evaluates to true. The Out - Condition supports two Event Listevent lists:
    • Create Event: The Create Event Event List event list is used to create an event if the expression Expression for the Out - Condition evaluates to true. The default name of the Event to be created is the same as that of the jobs job name. 
    • Delete Event: The Delete Event Event List event list is used to delete an existing event Event if the expression Expression for the out- Out Condition evaluates to true.

How to edit an existing In

...

Condition

...

or Out

...

Condition

...

 with a Job Stream

...

?

  • To edit an existing In - Condition/ or Out - Condition from the graph using the Update Expression option from the action menu of the Condition of the job. For egexample: you want to update the expression Expression for an Out - Condition of a job form the returncode:0 to returncode:10 .to indicate that 
  • Then switch to the Job Streams graph, use the action menu of the Out - Condition denoted indicated by parallelogram after the job. Click on Update Expression
    • Note: An In - Condition for a job is denoted indicated by the a left inclined parallelogram before the job and . An Out - Condition for a job is denoted indicted by the a right inclined parallelogram after the job.
  • A The Conditions Editor will be openedopen. Update the Expression and click on Submit to reflect the hit the "submit" button to apply your changes.