IsNew property: RCServiceDefinition class

Description

Use the IsNew property to return whether the instantiation of this related content service definition is for a new definition. This property returns True only after the RCServiceDefinition constructor is invoked with the service_ID parameter set to a new and unique ID or when CloneForNew is invoked. All other times and after a Save is invoked, IsNew returns False.

This property is read-only.

Example

import PTCS_SRVDEFN:*;

Component PTCS_SRVDEFN:RCServiceDefinition &rcServDefn;

&rcServDefn = create PTCS_SRVDEFN:RCServiceDefinition("NEW_SERVICE_DEFN", "ENG");
If &rcServDefn.IsNew Then
   /* Set properties of the new definition. */
Else
   /* Examine properties of the existing definition. */
End-If;