How to Implement the PLM Template Naming Business Logic?

Technical Article

Abstract

This article details how you can implement the PLM Template Naming Business Logic based on the knowledge scripting technology.

Business Logic Intent

This business logic is called whenever instantiating a PLM Template.

The BL provides a name for the duplicated references created at instantiation.

PLM Opening Definition

This section describes the objects defining the PLM Opening: i

General Information

PLM Opening ID PLMTemplateCloning
Customization Intent Computation
Execution Context Client

Input Objects

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

Context Object Parameters

No specific parameters are given for this BL. You can access the object on which the BL is called through the “ThisObject” variable.

Implementation Sample

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")

Recommendations

References

History

Version: 1 [July 2010] Document created