How to Implement the PLM Template Naming Business Logic? |
Technical Article |
AbstractThis article details how you can implement the PLM Template Naming Business Logic based on the knowledge scripting technology. |
This business logic is called whenever instantiating a PLM Template.
The BL provides a name for the duplicated references created at instantiation.
This section describes the objects defining the PLM Opening: i
PLM Opening ID | PLMTemplateCloning |
---|---|
Customization Intent | Computation |
Execution Context | Client |
The Business Logic is invoked for any reference included in the Duplicated Components list of the PLM Template. At instantiation, these components are duplicated and the BL is called to compute the new References name. .
PLM Component Class Types |
---|
PLMCoreReference |
PLMCoreRepReference |
No specific parameters are given for this BL. You can access the object on which the BL is called through the “ThisObject” variable.
The following BL sample shows how to modify the PLM_ExternalID of the cloned component of the Template using the username and the current time to ensure uniqueness.
ThisObject.PLM_ExternalID = Parameters.UserID + "_" + ThisObject.PLM_ExternalID + "_" + DateFormat("%d/%m/%y_%H:%M:%S")
Version: 1 [July 2010] | Document created |