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]
- 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
- Run the following command to set the
Gold_priceworkflow defined inWKS_AGTworkstation in draft mode.OCLI model draft WKS_AGT#Gold_price - Run the following command to restore the
Gold_priceworkflow defined inWKS_AGTworkstation.OCLI model undraft WKS_AGT#Gold_price - Run the following command to set all workflows
defined in all the folders to
draft.
ocli model draft @#@.@