Coexistence Delete Business Logic (PLMCoexDelete)

This article describes how to define and integrate the customer Business Logic for driving the object deletion based on the Enterprise Knowledge scripting technology.

This page discusses:

Business Logic Intent

This Business Logic Opening allows you to decide whether not to delete objects. The DELETE algorithm is launched at the end of the transfer (to delete destination objects if they have been deleted in the source).

PLM Opening Definition

This section describes the objects defining the PLM opening: its global information, its input object type, and its context object parameters.

General Information

PLM Opening ID PLMCoexDelete
Customization IntentValidation
Execution ContentClient

Input Objects

The Business Logic can be invoked for the PLM instances.

Context Object Parameters

The result of the business logic should be:

  • TRUE if the object must be deleted
  • FALSE if the object must NOT be deleted.

Implementation Sample

The following script samples illustrate how to drive object deletion. To complete this particular Business Logic implementation you must associate a script (for example "MyCoexDeleteScript") with the <OpeningID, Type> pair in a CATRuleExit file:

<Scripts>
  <Script OpeningID="PLMCoexDelete" Type="VPMInstance" ScriptName="TETestBLCoexDelete">
  </Script>
</Scripts>

You must then create a CATRule file (for example MyCoexCheckModeScript.CATRule) to define your Business Logic:

Let AggregatingReference (BusinessType)
Let AggregatedReference (BusinessType)

set AggregatingReference = Parameters->GetAttributeObject("AggregatingReference")
set AggregatedReference = Parameters->GetAttributeObject("AggregatedReference")

Validation = false

if(ThisObject.IsSupporting("VPMInstance") == true)
{
	if (AggregatingReference.IsSupporting("VPMReference") == true)
	{
		if (ThisObject.V_description == "TO DELETE")
Validation  = true
	}
}

Important: With this particular Business Logic, objects are deleted when the value of V_Description is TO DELETE.