PauseJob Method (Ent)
- Last UpdatedNov 06, 2025
- 2 minute read
The PauseJob() method pauses the specified job that is currently running on this entity, or changes the paused state to another paused state. The job status is set to New, Suspended, or On Hold.
'Declaration
Public Sub PauseJob( _
ByVal woId As String, _
ByVal operId As String, _
ByVal seqNo As Integer, _
ByVal curStateCd As JobStates, _
ByVal newStateCd As JobStates, _
ByVal editTime As String, _
ByVal statusNotes As String, _
ByVal concurrent_link As Integer _
)
public void PauseJob(
string woId,
string operId,
int seqNo,
JobStates curStateCd,
JobStates newStateCd,
string editTime,
string statusNotes,
int concurrent_link
)
Parameters
- woId
- Required. Holds the work order of the job to be paused.
- operId
- Required. Holds the operation ID of the job to be paused.
- seqNo
- Required. Holds the operation Sequence of the job to be paused.
- curStateCd
- Required. Holds the current state of the job.
- newStateCd
- Required. Holds the new state of the job. This can be New, Suspended, or On Hold.
- editTime
- Required. Holds the timestamp of the last edit of the job record in the database. This must match the current value in the database, or the record cannot be changed.
- statusNotes
- Required. Holds the notes about pausing the job. This can be an empty string.
- concurrent_link
- Required. Holds the concurrent link value of the job. The concurrent link value indicates if this job is part of a batch jobs and, if so, which other jobs in the queue it is batched with. Batched jobs will all be paused at one time.