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.
The following diagram indicates the structure of the command and its parameters.
>>-optimcmd--+- -workorder-+--action=-+-transition-+--work_order_id--transition_id->< '- -w---------' '-t----------'
The following information can be entered with the command.
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. |