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.
The following diagram indicates the structure of the command and its parameters.
>>-optimcmd--+- -workorder-+--display=-+-transitions-+--workflow_id--state_id->< '- -w---------' '-t-----------'
The following information can be entered with the command.
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
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. |