StartSome(Int32,String,Int32,String,String,Int32,Nullable<DateTime>,Nullable<Double>,String,Nullable<Boolean>,Nullable<Boolean>,Nullable<Int32>,Nullable<Double>,Int32) Method
- Last UpdatedNov 06, 2025
- 3 minute read
The StartSome() method splits the supplied job and starts the newly split job.
This overload of the method uses the entity ID to specify the entity.
'Declaration
Public Overloads Shared Sub StartSome( _
ByVal sessionId As Integer, _
ByVal userId As String, _
ByVal entId As Integer, _
ByVal woId As String, _
ByVal operId As String, _
ByVal seqNo As Integer, _
ByVal jobStartTimeUtc As Nullable(Of Date), _
ByVal qtyAtStart As Nullable(Of Double), _
ByVal statusNotes As String, _
ByVal checkPrivs As Nullable(Of Boolean), _
ByVal checkCerts As Nullable(Of Boolean), _
ByVal jobPos As Nullable(Of Integer), _
ByVal qtyReqd As Nullable(Of Double), _
ByRef newSeqNo As Integer _
)
'Usage
Dim sessionId As Integer
Dim userId As String
Dim entId As Integer
Dim woId As String
Dim operId As String
Dim seqNo As Integer
Dim jobStartTimeUtc As Nullable(Of Date)
Dim qtyAtStart As Nullable(Of Double)
Dim statusNotes As String
Dim checkPrivs As Nullable(Of Boolean)
Dim checkCerts As Nullable(Of Boolean)
Dim jobPos As Nullable(Of Integer)
Dim qtyReqd As Nullable(Of Double)
Dim newSeqNo As Integer
JobExec.StartSome(sessionId, userId, entId, woId, operId, seqNo, jobStartTimeUtc, qtyAtStart, statusNotes, checkPrivs, checkCerts, jobPos, qtyReqd, newSeqNo)
public static void StartSome(
int sessionId,
string userId,
int entId,
string woId,
string operId,
int seqNo,
Nullable<DateTime> jobStartTimeUtc,
Nullable<double> qtyAtStart,
string statusNotes,
Nullable<bool> checkPrivs,
Nullable<bool> checkCerts,
Nullable<int> jobPos,
Nullable<double> qtyReqd,
out int newSeqNo
)
Parameters
- sessionId
- Required. Holds the ID of the session from which the call is being made.
- userId
- Required. Holds the ID of the user who is splitting the existing job.
- entId
- Required. Holds the ID of the entity on which to run the split job.
- woId
- Required. Holds the work order ID of the job.
- operId
- Required. Holds the operation ID of the job.
- seqNo
- Required. Holds the job sequence number.
- jobStartTimeUtc
- Optional. Holds the start time, in UTC, of the job. If not provided, the current time in UTC is used.
- qtyAtStart
- Optional. Holds the starting quantity for the new job.
- statusNotes
- Optional. Holds notes about starting the new split job.
- checkPrivs
- Optional. Holds a flag that, if set to true, specifies that the user’s privileges should be checked before starting the job. Default is false.
- checkCerts
- Optional. Holds a flag that, if set to true, specifies that the user’s certifications should be checked before starting the job (requires the Certification module). Default is false.
- jobPos
- Optional. Holds the job position. If greater than 1, jobs are running on this entity.
- qtyReqd
- Optional. Holds the required quantity for the new job. Default is 0.
- newSeqNo
- Output. Holds the returned sequence number of the newly split job.
If the supplied required quantity is 0, then this value is defaulted to quantity at start. This method calls the SplitJob() method to split the supplied job into two jobs. This method then starts the new job (newly split job) on the supplied run-on entity. Refer to the StartJob() method for more details.
If the supplied user is part of the job-based login group “Require job based login”, priv_id: 92, then this method logs the supplied user into the new job. Refer to the LogOnJob() method for more details.