Display work orders (optimcmd -workorder)

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.

Command structure

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

Read syntax diagramSkip visual syntax diagram
>>-optimcmd--+- -workorder-+--workorder_id---------------------><
             '- -w---------'                 

Input

The following information can be entered with the command.

optimcmd
The optimcmd tool.
-workorder or -w
The Work order command.
workorder_id
The work order ID for the work order that you want to view. If you do not specify a work order ID, a list of all work orders is returned.

Example output

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

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