EndJob Method (JobExec)
- Last UpdatedNov 06, 2025
- 1 minute read
The EndJob() method ends the specified job. The job is specified by a work order ID, an operation ID, and an operation sequence number. If the job is part of a batch, an attempt is made to end all jobs in the batch. Ending a job sets the job state to Completed.
Parameters
- woId
- Required. Holds the work order ID of the job to be ended.
- operId
- Required. Holds the operation ID of the job to be ended.
- seqNo
- Required. Holds the operation sequence number of the job to be ended.
- statusNotes
Required. Holds the status notes that are to be saved with the job when the job is ended. These notes are edited on the dialog used to confirm that the user wants to end the job.