Clone Method (Process)
- Last UpdatedNov 06, 2025
- 3 minute read
The Clone() method adds a new process record to the Process table by making a copy of an existing record.
'Declaration
Public Shared Sub Clone( _
ByVal sessionId As Integer, _
ByVal userId As String, _
ByVal existingProcessId As String, _
ByVal newProcessId As String, _
ByVal newProcessDesc As String, _
ByVal newProcessVerId As String, _
ByVal disassociateItems As Nullable(Of Boolean) _
)
'Usage
Dim sessionId As Integer
Dim userId As String
Dim existingProcessId As String
Dim newProcessId As String
Dim newProcessDesc As String
Dim newProcessVerId As String
Dim disassociateItems As Nullable(Of Boolean)
Process.Clone(sessionId, userId, existingProcessId, newProcessId, newProcessDesc, newProcessVerId, disassociateItems)
public static void Clone(
int sessionId,
string userId,
string existingProcessId,
string newProcessId,
string newProcessDesc,
string newProcessVerId,
Nullable<bool> disassociateItems
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- userId
- Required. Holds the user ID of the user who is adding the process.
- existingProcessId
- Required. Holds the ID of the existing process that is being cloned.
- newProcessId
- Required. Holds the ID of the new process that is being added.
- newProcessDesc
- Required. Holds the description of the new process.
- newProcessVerId
- Optional. Holds the version of the new process.
- disassociateItems
- Optional. A flag that, if set to true, specifies that items of the source process be linked to the new process. The default value is true.
This method clones all the data from the existing process. All the records of the existing process data fields are copied and the process_id is updated with the new process ID.
The following tables have a new record added.
- Process: All the existing process data is copied to new process record.
- Process_Attr: All the attributes linked to the existing process are copied to the new process.
- Oper: All the operations linked to the existing process are copied to the new process.
- Oper_Attr: All the operation attributes linked to the existing process are copied to the new process.
- Data_Log_Grp_Oper_Link: All the data log group operations linked to the existing process are copied to the new process.
- Oper_Step_Grp: All the operation group steps that are linked to the existing process are copied to the new process.
- Oper_Step: All the operation steps that are linked to the existing process are copied to the new process.
- Oper_Step_Choices: All the operation step choices linked to the existing process are copied to the new process.
- Data_Log_Grp_Oper_Step_Link: All the data log group operation steps linked to the existing process is copied to the new process.
- Oper_Ent_Link: All the operation entity links linked to the existing process are copied to the new process.
- Oper_Ent_Route: All the operation entity routes linked to the existing process are copied to the new process.
- Oper_Spec_Ver: All the operation specifications version linked to the existing process are copied to the new process.
- Oper_Ent_Spec: All the operation entity specifications linked to the existing process are copied to the new process.
- Oper_Step_Ent_Exc: All the operation step entity exclusions linked to the existing process are copied to the new process.
- Oper_Step_File: All the operation step files linked to the existing process are copied to the new process.
- Cert_Oper_Link: All the certified operation links linked to the existing process are copied to the new process.
- Cert_Oper_Step_Link: All the certified operation step links linked to the existing process are copied to the new process.
- Spc_Char_Oper_Link: All the SPC characteristic operations links linked to the existing process are copied to the new process.
- Data_Entry_Sched: The entire data entry schedule linked to the existing process is copied to the new process. If the existing process items uses any pre-defined SPC characteristic, then all the records of Item_Process_Link, Bom_Item_Oper_Link, Bom_Item_Oper_Step_Link, and Bom_Item_Oper_Spec tables linked to existing process are copied to the process.