adddep job

You can use the command option to add dependencies to a task.

Overview

The purpose of adding dependencies is to expand the scope of a task. You can use the command option to link other tasks and set specific time limits. You can add multiple dependencies at the same time and must add at-least one to perform the action. When you add multiple dependencies, use the semicolon (;) as a separator. To add dependencies to a task, you must have adddep access to the task.

Syntax and command line options

Before you run the command, you must give the details of the command line options such as task name, dependencies and required permissions. You can run the command as described below.

ocli plan adddep job | adj jobselect dependency [;noask]
Important: The jobselect and dependency are mandatory parameters.

You can add the dependency according to the specific results you want to accomplish. The details that are required with each parameters are described below.

Jobselect

Specify the task to update, by using attributes and qualifiers.

For example, enter the following command WA_AGT_0#WORKFLOW.TASK.

Dependency
You can specify the type of dependency and must add at least one to complete the command. The type of dependencies that can be used to create the command are listed below.
Restriction: Wildcard characters are not permitted.
Command Reference
at time[timezone | tz tzname][+n day[s] | mm/dd | mm/dd/yy] at
deadline time [timezone | tz tzname][+n day[s] | mm/dd | mm/dd/yy] deadline
every rate [+n day[s] | mm/dd | mm/dd/yy] every
follows [[folder/]workstation#][folder/]{jobstreamname[hhmm [mm/dd[/yy]]][.job | @] | jobstream_id.job;schedid}| job[,...] [if 'condition_name[| condition_name][| ...]'] follows
maxdur time [onmaxdur action] maxdur
mindur time [onmindur action] mindur
until time [timezone|tz tzname][+n day[s]] [;onuntil action] until and onuntil
Notes:
  1. If you add a dependency on a workflow to a task twice, the dependencies are processed twice.
  2. When you add a dependency after the task is completed, the dependency is resolved only for subsequent command runs.
;noask

When you add the noask option as an argument, the agent does not ask for confirmation before it acts on each qualifying item.

Examples

  1. To add an external follows dependency on task TASK033 in workflow RTW#/FOLDER2/SCHED_05(0800 03/25/22) from TASKD in workflow MLN#/FOLDER5/OLD_TEST(0700 04/05/22), run the following command:
    ocli plan adj=RTW#/FOLDER5/OLD_TEST(0700 04/05/22).TASKD ; 
    follows RTW#/FOLDER2/SCHED_05(0800 03/25/22).TASK033
  2. Run the following command to stop the task PAYACK_TASKS in workflow PRESENT_JS when it has run for more than 8 hours and 2 minutes:
    ocli plan adj DUBAI#PRESENT_JS.PAYACK_TASKS ;
    maxdur=802 ;onmaxdur kill