Add(Int32,String,String,String,String,Nullable<Int32>,Nullable<Int32>,Nullable<DateTime>,Nullable<Boolean>,Nullable<Boolean>,Nullable<Boolean>,DBString,DBString,DBString,DBString,DBString,DBString,String) Method
- Last UpdatedNov 06, 2025
- 3 minute read
The Add() method adds a new process record to the Process table.
'Declaration
Public Overloads Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal processId As String, _
ByVal processClassId As String, _
ByVal processVerId As String, _
ByVal processDesc As String, _
ByVal processLevel As Nullable(Of Integer), _
ByVal processStatus As Nullable(Of Integer), _
ByVal lastInstantiated As Nullable(Of Date), _
ByVal disassembly As Nullable(Of Boolean), _
ByVal mayOverrideRoute As Nullable(Of Boolean), _
ByVal rework As Nullable(Of Boolean), _
ByVal notes As DBString, _
ByVal spare1 As DBString, _
ByVal spare2 As DBString, _
ByVal spare3 As DBString, _
ByVal spare4 As DBString, _
ByVal lastEditComment As DBString, _
ByRef modId As String _
)
'Usage
Dim sessionId As Integer
Dim processId As String
Dim processClassId As String
Dim processVerId As String
Dim processDesc As String
Dim processLevel As Nullable(Of Integer)
Dim processStatus As Nullable(Of Integer)
Dim lastInstantiated As Nullable(Of Date)
Dim disassembly As Nullable(Of Boolean)
Dim mayOverrideRoute As Nullable(Of Boolean)
Dim rework As Nullable(Of Boolean)
Dim notes As DBString
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim modId As String
Process.Add(sessionId, processId, processClassId, processVerId, processDesc, processLevel, processStatus, lastInstantiated, disassembly, mayOverrideRoute, rework, notes, spare1, spare2, spare3, spare4, lastEditComment, modId)
public static void Add(
int sessionId,
string processId,
string processClassId,
string processVerId,
string processDesc,
Nullable<int> processLevel,
Nullable<int> processStatus,
Nullable<DateTime> lastInstantiated,
Nullable<bool> disassembly,
Nullable<bool> mayOverrideRoute,
Nullable<bool> rework,
DBString notes,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
DBString lastEditComment,
out string modId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- processId
- Required. Holds the ID of the process that is is being added.
- processClassId
- Required. Holds the ID of the process class of which this process is a version.
- processVerId
- Required. Holds the ID the version of this process.
- processDesc
- Required. Holds the description of this version of the process.
- processLevel
- Optional. Holds an enumeration value that identifies the process level.
- processStatus
- Optional. Holds an enumeration value that identifies the process status.
- lastInstantiated
- Optional. Holds the date/time of the last time the process was used to successfully create a work order.
- disassembly
- Optional. Holds a flag that, if set to true, specifies that this process is disassembling something into its components.
- mayOverrideRoute
- Optional. Holds a flag that, if set to true, specifies that certain methods would include operations other than those immediately upstream or downstream from the current one.
- rework
- Optional. Holds a flag that, if set to true, specifies that this process is for rework, not production.
- notes
- Optional. Holds notes about this process.
- spare1
- Optional. Holds the contents of the user-defined spare1 field.
- spare2
- Optional. Holds the contents of the user-defined spare2 field.
- spare3
- Optional. Holds the contents of the user-defined spare3 field.
- spare4
- Optional. Holds the contents of the user-defined spare4 field.
- lastEditComment
- Optional. Holds comments that describe why this record is being added.
- modId
- Output. Holds the modification ID assigned to this record when it is added, for optimistic concurrency control. The modId parameter is used by other methods that modify or delete this type of record for optimistic concurrency control.
The columns creator, created_at, last_editor, and checked_out_by will automatically be filled in when record is added. The columns parent_process_id, approver, last_user_to_change_status, and last_status_changed_at will be set to the default value of null when the record is added.
Observe the following input parameter rules:
- Required non-DB* parameters: Must pass a value. Cannot be empty or null.
- Optional non-DB* parameters: Either enter a value or pass a null. If passing a null and a default value has been defined, the default value will be used for the parameter.
- Required DB* parameters: Must pass a value. To enter an empty value for the parameter, pass DB*.null (e.g., DBInt.null).
- Optional DB* parameters: To enter no value for the parameter, pass DB*.null (e.g., DBInt.null). To use the default value for the parameter if one has been defined for the object being added, pass a null.