Validate Part Number Synchronization of Logical and Physical Elements (L2P_ValidatePartNumberSynchronization)

An opening ID is an entry point used to customize business logic. The Validate part number synchronization of logical and physical elements opening ID is available in the Logical to physical synchronization resources set and it is used to check the synchronization of predefined part number of logical elements with part number of physical elements linked to each other.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked during the Logical to Physical synchronization. For the selected element, the Business Rule checks whether the predefined part numbers of logical elements are synchronized with part numbers of physical element.

This opening ID is used to:

  • Validate the synchronization (severity=0)
  • Validate the synchronization with a warning message computed from the rules context (severity=1)
  • Forbid the synchronization with a warning message computed from the rules context (severity=2).

By default, if the predefined part number of logical connector is different from the part number of corresponding physical connector, the physical instance is replaced with instance of reference whose part number matches with the predefined part number of logical.

The table below provides you with information related to the definition of the Opening ID.

PLM Opening ID: L2P_ValidatePartNumberSynchronization
Customization intent: Validation
Execution context:Client

Input Objects

Input objects must be of the following types:

  • ThisObject: The logical element to be synchronized
  • Parameters corresponds to the context object. Message attribute will be displayed in the synchronization report.
  • Validation: Variable to set to know if the validation succeeded or failed.

If the output Boolean of business rule is TRUE, the physical component instance name will be synchronized with logical component instance name.

Severity messages:

  • Severity= 0 the treatment is to be continued (no message).
  • Severity= 1 the treatment is to be continued and only a warning raised.
  • Severity= 2 the treatment is supposed to be undone.

Note that this notion is not mandatory but it is used by the electrical command.

Context Object Parameters

Parameter NameTypeRead/WriteComments
L2PPhysicalElementPLM Entity ReadThe physical element.

Sample

The following sample illustrates the business rule syntax.

let PhysVPMInst(VPMInstance)
let PInstanceName (String)
let LInstanceName (String)


set PhysVPMInst = Parameters.GetAttributeObject("L2PPhysicalElement")
set PInstanceName = PhysVPMInst.Name
set LInstanceName = ThisObject.Name

if (PInstanceName <> LInstanceName)
{
Validation = FALSE
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", "Logical and Physical Instance names are different : No Part number Synchronization  ")
}
else
{
Validation = TRUE
Parameters.SetAttributeInteger("Severity", 1)
Parameters.SetAttributeString("Message", "Logical and Physical Instance names are similar : Synchronization Allowed")
}