After Time Analysis Instantiation (DELPLMRelationAfterEstablishment)

An opening ID is an entry point used to customize business logic. This opening ID is run after the instantiation of a time analysis to automatically set the name of the time analysis according to the operation name.

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

The table below provides information related to the definition of the opening ID.

PLM Opening ID: DELPLMRelationAfterEstablishment
Customization intent: Execution
Execution context:Client

Input Objects

Input objects must be of the following types:

  • Parameters corresponding to the context object.

Context Object Parameters

Parameter NameTypeRead/WriteComments
SourceList ReadList of size 1 including a DELLmiOperationPPRReferencence
TargetList Read List of size 1 including a DELTimeAnalysisRepReference
RelationTypeStringReadIts value is TimeAnalysisRepresentationInstance
RelationObjectObjectTypeRead Set with a DELTimeAnalysisRepInstance

Sample

The following sample shows how to use the opening ID to set the name of the time analysis according to the operation name. In this example, the time analysis will be renamed as Rep Of <name of operation>.

let PointingObj(List)
let PointedObj(List)
let NbPointingObj(Integer)
let NbPointedObj(Integer)
let RelationName(String)
let OperationName(String)
let OperationReference(DELLmiOperationPPRReference)
let TARepReference(DELTimeAnalysisRepReference)
let TARepInstance(DELTimeAnalysisRepInstance)
Let Prefix(String)

Prefix = "Rep of "

set PointingObj = Parameters->GetAttributeObject("Source")
set PointedObj = Parameters->GetAttributeObject("Target")
set RelationName = Parameters->GetAttributeString("RelationType")
set TARepInstance = Parameters->GetAttributeObject("RelationObject")
Validation = false
NbPointedObj = PointedObj.Size()
NbPointingObj = PointingObj.Size()
If (NbPointedObj == 1 && NbPointingObj == 1){
if (RelationName == " TimeAnalysisRepresentationInstance"){
Set OperationReference=PointingObj.GetItem(1)
Set TARepReference=PointedObj.GetItem(1)
If (OperationReference <> NULL && TARepReference <> NULL && TARepInstance <> NULL){
OperationName =OperationReference.Name
TARepReference.Name= Prefix + OperationName
Validation = true
			}
	}
}