Use the Display work orders command to display work orders. You can display a list of all work orders, or you can display detailed information about a specific work order.
The following diagram indicates the structure of the command and its parameters.
>>-optimcmd--+- -workorder-+--workorder_id--------------------->< '- -w---------'
The following information can be entered with the command.
The following example output shows a list of all work orders.
ID WorkflowID StateID State Priority Description
10001 1 100 New Within 8 hours Create a subset of customers
10002 1 300 Submitted Within 16 hours Describing free text
10003 1 400 Ready Within 8 hours Ready for you
The following example output shows work order 10001.
ID=10001
WFID=1
STATEID=100
Description=Create a subset of customers
Priority=Within 8 Hours
Comments=Mask names, addresses, phone numbers, email addresses
CreatedBy=TEST1
CreatedDate=2014-12-12
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. |