CloneForNew method: RCServiceDefinition class
Syntax
CloneForNew(&RCSrvcDefn)
Description
Use the CloneForNew method to create an identical copy of the related content service definition executing this method.
Parameters
| Parameter | Description |
|---|---|
|
&RCSrvcDefn |
Specifies an already instantiated PTCS_SRVDEFN:RCServiceDefinition object that is to be copied to. |
Returns
A boolean value: True if the copy is successful, False otherwise.
Example
import PTCS_SRVDEFN:*;
Component PTCS_SRVDEFN:RCServiceDefinition &rcServDefn;
Component PTCS_SRVDEFN:RCServiceDefinition &rcCloneServDefn;
&rcServDefn = create PTCS_SRVDEFN:RCServiceDefinition("SERVICE_DEFN", "ENG");
&rcCloneServDefn = create PTCS_SRVDEFN:RCServiceDefinition("NEW_SERVICE_DEFN", "ENG");
Local boolean &bRet = False;
If ( True = &rcServDefn.CloneForNew(&rcCloneServDefn)) Then
&bRet = &rcCloneServDefn.Save();
End-If;
Related Topics