Deletion: Pre Check Delete (PLMPreCheckDelete)

An opening ID is an entry point used to customize business logic. Pre Check Delete describes conditions to be satisfied before operating the delete of a component, to prevent the operation. When the check fails, a message can be provided to the end user, explaining the reason why.

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

This page discusses:

Environment: On premises only

General Information

This opening ID is invoked before deleting a component.

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

Opening ID: PLMPreCheckDelete
Customization intent: Validation
Execution context:Server

Input Objects

The opening ID can be invoked for all Object types. It means that your implementation can safely use the attributes of the default PLM Component. Input objects must be of the following types:

  • ThisObject
  • Parameters corresponds to the context object.
  • Validation

Context Object Parameters

Parameter NameTypeRead/WriteComments
PolicyStringReadPolicy name.

Sample

The following sample shows you how to check that the object has no children.

/*The following rule is an example of what can be done*/

/* ----------------- */
/*      Declare      */
/* ----------------- */
Let ListInstance (List)
Let ListInstanceSize (Integer)

/* ----------------------------------------------------------------------------- */
/*    By default, we validate the operation  */
/* ----------------------------------------------------------------------------- */
Validation = true

/* ----------------------------------------------------------------------------- */
/*    If the object has at least one child, the clone is not allowed  */
/* ----------------------------------------------------------------------------- */
ListInstance = ThisObject.Children
ListInstanceSize = ListInstance.Size()
if (ListInstanceSize > 0)
         Validation = false