PauseJob(JobStates,String,String,Int32,String,Boolean,Int32,Boolean) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The PauseJob() method pauses the specified job by putting it in the New, On Hold, or Suspended state, and specifies whether to refresh the current session object and current job exec object. The job is specified by a work order ID, an operation ID, and an operation sequence number.
This overload of the method includes a flag that allows you to specify that the current session object and current job exec object not be refreshed automatically.
public void PauseJob(
JobStates pausedState,
string woId,
string operId,
int seqNo,
string statusNotes,
bool checkPrivs,
int jobPos,
bool noFresh
)
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.
- noFresh
- Required. Holds a flag that, if set to true, indicates that the current session object and current job exec object should not be refreshed.