Change work order state (optimcmd -workorder action=transition)

Use the Change work order state command to change the state of a work order. The state of a work order indicates who is currently responsible for processing the work order and what is to be done with the work order. To change the work order state, you must specify a transition ID, which indicates the reason why the work order state is being changed.

Command structure

The following diagram indicates the structure of the command and its parameters.

Read syntax diagramSkip visual syntax diagram
>>-optimcmd--+- -workorder-+--action=-+-transition-+--work_order_id--transition_id-><
             '- -w---------'          '-t----------'                                 

Input

The following information can be entered with the command.

optimcmd
The optimcmd tool.
-workorder or -w
The Work order command.
action=transition or action=t
Indicates that the command is to change the state of a work order.
work_order_id
The ID of the work order whose state is to be changed.
transition_id
The ID of the transition that indicates why the work order state is being changed.

Return codes

The following return codes can be received when you enter the command.

Return code Description
0 No errors.
4 The specified work order was not found.
8 The command was not formed correctly.
12 The command cannot connect with the connection manager. The connection manager is not active or there is no active network connection between the computer and the connection manager computer.


Feedback