EndAllJobs Method
- Last UpdatedNov 06, 2025
- 1 minute read
The EndAllJobs() method attempts to end all jobs that are currently running on the specified entity. Any failure to end a job results in an error message being added to the end of the return string. All error messages in this return string are separated by a semi-colon (;) and contain the job information (work order, operation, sequence) and any message returned by the Middleware.
'Declaration
Public Shared Function EndAllJobs( _
ByVal entName As String, _
ByVal statusNotes As String _
) As String
public static string EndAllJobs(
string entName,
string statusNotes
)
Parameters
- entName
- Required. Holds the name of the entity whose jobs are being ended.
- statusNotes
- Required. Holds the status notes to be saved when ending a job.
Return Value
Returns an error message for any failures when attempting to end the jobs. Each
job is ended separately. Therefore, if there is a failure to end the job, an error
message is appended to the end of the returned string, providing the information about
the job that failed to end. The end of each string is indicated by a semi-colon
(;).