Enterprise Item Number Definition (PLMComputePartNumber)

PLMComputePartNumber defines the required alphanumeric string format for the enterprise item number format object attribute. PLMComputePartNumber can include static text, one or more variables, and user-entered text in its definition. PLMComputePartNumber defines the format but does not determine whether EINs are required.

This page discusses:

General Information

Users can assign enterprise item numbers to products using the "Set Enterprise Item Number" command. As an Administrator, you can create a business rule that defines the enterprise item number.

You create business rules using either the Data Model Customization app or the Data Setup app. The Data Model Customization app is available only on the On Premises environment. The Data Setup app is available on On Premises and Cloud.

Definition Description
PLM Opening ID PLMComputePartNumber
Environment Availability
  • On the cloud
  • On premises
Customization intent Execution
Execution context
  • On the cloud: Server only
  • On premises: Server only

Input Objects

Input objects must be of the following types:

  • ThisObject
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
PartNumber Any EKL type Write The user can write PartNumber to be updated on the physical product.

PartNumber

/* ThisObject : VPMReference */ 

Let UniqueKey=""
Let ObjectCustoType=""
Let ExternalID=""
Let EnterpriseItemNumber=""

/* get counter */
ObjectCustoType = ThisObject.PrimaryType.Name
UniqueKey = GetUniqueKeyFromString( ObjectCustoType )

/* get PLMExternal_ID */
ExternalID= ThisObject->GetAttributeString("PLM_ExternalID")

/* generate Enterprise Item Number with schema */
EnterpriseItemNumber = "PN-" + ExternalID + "-" + UniqueKey 

/* set value in parameters*/
Parameters->SetAttributeString("PartNumber", EnterpriseItemNumber)

Where ObjectCustoType is any string such as "TestString" or "VPMReference".

In this example, the type of the object is used as the input string in ObjectCustoType.