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