adddep sched
You can use the adddep sched command to add dependencies to a workflow.
Overview
To expand the scope of a workflow, add dependencies to it. You can use the adddep sched command to link one task to other tasks and set specific time limits. You can add multiple dependencies at the same time, and you must add at least one dependency to perform the action. When you add multiple dependencies, use semicolons (;) as a separator. To add dependencies to a workflow, you must have adddep access to the workflow.
Syntax and command line options
Before you run the command, you must specify options such as workflow name, dependencies, and required permissions. You can enter the command as follows.
ocli plan adddep sched | ads jstreamselect dependency [;noask]
You can add the dependency according to the specific results you want to accomplish. The details that are required with each parameters are as follows.
- jstreamselect
-
Specify the workflow to update, by means of attributes and qualifiers.
- Dependency
- Specify the type of dependency and add at least one to complete the command.
The following table lists type of dependencies that you can used to complete
the command.
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 follows [[folder/]workstation#][folder/]{jobstreamname[hhmm [mm/dd[/yy]]][.job | @] | jobstream_id.job;schedid}| job[,...] [if 'condition_name[| condition_name][| ...]']follows until time [timezone|tz tzname][+n day[s]] [;onuntil action]until and onuntil
- If you add a dependency on a workflow to a task twice, the dependencies are processed twice.
- When you add a dependency after the task is completed, the dependency is resolved only for subsequent command runs.
When you add the noask option as an argument, the agent does not ask for confirmation before it acts on each qualifying item.
Example
- To add an external follows dependency to the task
TASKAin the workflowCPUA#SCHED_05(0800 04/12/07)and a task limit to the workflowCPUB#TEST(0800 01/12/05), run the following command:ocli plan ads=CPUB#TEST(0800 01/12/05) ; follows CPUA#SCHED_05(0800 04/12/07).TASKA; limit=2