About Enterprise Item Number Business Rules

When you use a business rule, the entire enterprise item number (EIN) is generated for the user. There are no fields for the user to enter text.

With fully generated EINs, the Enterprise Item Number dialog box enables the user to only select or clear the Update Existing Enterprise Item Number check box. The user can select the check box to update or assign numbers for all items listed in the dialog box. The user can clear the check box to assign numbers to the items listed in the dialog that do not have them.

See Also
Creating Enterprise Item Number Business Rules
Note: If you customize the EIN format using either the Collaborative Spaces Configuration Center or using a business rule, enterprise item numbers are ignored in data that you import in the future using a spreadsheet.

When you create a business rule, the server Business Logic PLMComputePartNumber generates a new enterprise item number for each product that the user selects. A panel lists the generated enterprise item numbers and the user can either accept or refuse to use them. The user cannot edit the list.

If there is no business rule, the panel contains a field that enables the user to enter an enterprise item number using any format they choose.

Here is an example business rule:

/* 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", "VPMReference", and so forth.

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