PauseJob(JobStates,String,String,Int32,String,Boolean,Int32) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The PauseJob() method pauses the specified job by putting it in the New, On Hold, or Suspended state. The job is specified by a work order ID, an operation ID, and an operation sequence number.
For this overload of the method, the current session object and current job exec object will be refreshed automatically.
'Declaration
Public Overloads Sub PauseJob( _
ByVal pausedState As JobStates, _
ByVal woId As String, _
ByVal operId As String, _
ByVal seqNo As Integer, _
ByVal statusNotes As String, _
ByVal checkPrivs As Boolean, _
ByVal jobPos As Integer _
)
public void PauseJob(
JobStates pausedState,
string woId,
string operId,
int seqNo,
string statusNotes,
bool checkPrivs,
int jobPos
)
Parameters
- pausedState
- Required. Holds the state into which the job should be put.
- woId
- Required. Holds the job's work order ID.
- operId
- Required. Holds the job's operation ID.
- seqNo
- Required. Holds the job's operation sequence number.
- statusNotes
- Required. Holds notes to explain why the job is being paused. Pass an empty string if no notes are to be stored.
- checkPrivs
- Required. Holds a flag that, if set to true, indicates that the privileges of the user should be checked to determine if the user has permission to pause the job.
- jobPos
- Required. Holds the position of the job in the job exec.