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

Use the Display work order transitions command to display the state transitions for a specified work order state within a specified workflow. The output contains only the state transitions that are directly reachable from the specified work order state.

Command structure

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

Read syntax diagramSkip visual syntax diagram
>>-optimcmd--+- -workorder-+--display=-+-transitions-+--workflow_id--state_id-><
             '- -w---------'           '-t-----------'                          

Input

The following information can be entered with the command.

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

Example output

The following example output shows the transitions for workflow ID 1 and state ID 200 (REQUESTED).

TransitionID  TransName  WFID  OldStateName  State ID  StateName 

2             DENY       1     REQUESTED     250       DENIED
10            APPROVE    1     REQUESTED     300       SUBMITTED
6             TERMINATE  1     REQUESTED     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