v2.1.7+draft/undraft

Adds the draft flag to the definition. While in draft, no definition instances are created in the plan until the draft flag is removed. You can remove them by using the undraft command.

Overview

When you run the command on a workflow with an active run cycle, future occurrences are suppressed. Even if you create and submit the run cycle schedule before applying the command, the command prevents all future instances from running.

You must have NOOPDB or MODIFY access to the target workflow. NOOPDB access allows you to enable or disable items, whereas MODIFY access allows you to modify all workflow properties. For more information about authorization for Orchestration CLI commands, see Access required to run Orchestration CLI commands.

Syntax and command line options

ocli model [draft/undraft] workflow_name [;noask]
You can enter the command as follows:
workflow_name
Specify the name of an existing workflow. Use wildcards to perform the action on multiple workflows.
noask
Use this optional attribute to perform the action without prompting for confirmation.

Examples

  1. Run the following command to set the Gold_price workflow defined in WKS_AGT workstation in draft mode.
    OCLI model draft WKS_AGT#Gold_price
  2. Run the following command to restore the Gold_price workflow defined in WKS_AGT workstation.
    OCLI model undraft WKS_AGT#Gold_price
  3. Run the following command to set all workflows defined in all the folders to draft.
    ocli model draft @#@.@