Use the Display work orders states command to display a list of active work order states for a specified workflow.
The following diagram indicates the structure of the command and its parameters.
>>-optimcmd--+- -workorder-+--display=-+-states-+--workflow_id->< '- -w---------' '-s------'
The following information can be entered with the command.
The following example output shows the states for workflow ID 1.
WFID State ID State Name
1 100 NEW
1 200 REQUESTED
1 250 DENIED
1 300 SUBMITTED
1 301 INCOMPLETE
1 350 REJECTED
1 400 READY
1 450 RETURNED
1 999 TERMINATED
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. |