obj objRef reject

Available for: Content Management Server

Task: Cancels the current workflow and begins a new one (workflow action reject).

Syntax:

obj (withId objId) | (withPath path) | root reject [comment taskComment]

Additional information: If the file has a committed version, it is converted to a draft version.

Function parameters:

  • taskComment is the comment that is to be entered in the new task.

Return value if successful: none

Necessary permissions (CM only):

  • If there is a draft version, the user must have the permissionWrite permission for the file.
  • If there is a committed version, the user must have the permissionRead permission for the file and be a member of one of the remaining entitled groups or have the permissionRoot permission for the specified file.

Example:

CM>obj withId 2003 reject