Display work order states (optimcmd -workorder display=states)

Use the Display work orders states command to display a list of active work order states for a specified workflow.

Command structure

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

Read syntax diagramSkip visual syntax diagram
>>-optimcmd--+- -workorder-+--display=-+-states-+--workflow_id-><
             '- -w---------'           '-s------'                

Input

The following information can be entered with the command.

optimcmd
The optimcmd tool.
-workorder or -w
The Work order command.
display=states or display=s
Indicate that the command is to display a list of active work order states for a specified workflow.
workflow_id
The ID that identifies the workflow whose active states you want to view. Enter 1 for the default workflow that is used by the manager and the service interface.

Example output

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

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