Architecture Number Post Process (PLMSetArchitectureNumberPostProcess)

An opening ID is an entry point used to customize business logic. Architecture Number Post Process enables to remove custom information from the physical objects which were added when assigning the architecture number to these physical objects. It also provides a list of objects on which the architecture number has been removed.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked when using the Set Architecture Number command.

Definition Description
PLM Opening ID PLMSetArchitectureNumberPostProcess
Customization intent Computation
Execution context Client

Input Objects

Input objects must be of the following types:

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

Context Object Parameters

Parameter Name Type Read or Write Comments
FactType Any EKL type — Type of ThisObject in the business rule body.
ListOfObjectsOnWhichANIsAdded List Read List containing the objects on which an architecture number has been set.
ListOfObjectsFromWhichANIsRemoved List Read List containing the objects with an unset architecture number.
CounterObjectsFromWhichANHasBeenMovedToItsParent Read Count of objects from the start of both lists from which the architecture number has been moved to its parent shell.

Sample

Let ListAN(list)
Let RefList_SetAN(list)
Let RefList_UnsetAN(list)
Let Count_ANMovedToShell(integer)
Let index(integer)
Let nbInstList(integer)
Let currObj(PLMEntity)
Let currAN(string)
Let newName(string)

/*Get the ListOfReferences_UnetAN from Parameters */
if( Parameters-> HasAttribute("Count_MovedANToShell") == true )
{
	Set Count_ANMovedToShell = Parameters-> GetAttributeInteger("Count_MovedANToShell")
	Trace(2,"count ANMovedToShell="+Count_ANMovedToShell)
}

index=1
/*Get the ListOfReferences_SetAN from Parameters */
if( Parameters-> HasAttribute("ListOfReferences_SetAN") == true )
{
	Set RefList_SetAN = Parameters-> GetAttributeObject("ListOfReferences_SetAN")
}
nbInstList=RefList_SetAN.Size()
Trace(2,"size=",nbInstList)
for index while index <= Count_ANMovedToShell
{
	set currObj=RefList_SetAN.GetItem(index)
	if (currObj <> NULL)
	{
		Trace(2,"Set Object="+currObj->GetAttributeString("V_Name"))
		set newName="ShellObjWithAN"+index
		//currObj->AddExtension("RSCCustoExtRefProdSpec1")
		//currObj->SetAttributeString("RSCRefProdCustoAttr1",currAN)
		//currObj->SetAttributeString("V_Name",newName)
	}
}
for index while index <= nbInstList
{
	set currObj=RefList_SetAN.GetItem(index)
	if (currObj <> NULL)
	{
		Trace(2,"Set Object="+currObj->GetAttributeString("V_Name"))
		set newName="ObjWithAN"+index
		//currObj->AddExtension("RSCCustoExtRefProdSpec1")
		//currObj->SetAttributeString("RSCRefProdCustoAttr1",currAN)
		//currObj->SetAttributeString("V_Name",newName)
	}
}

index=1
/*Get the ListOfReferences_UnetAN from Parameters */
if( Parameters-> HasAttribute("ListOfReferences_UnsetAN") == true )
{
	Set RefList_UnsetAN = Parameters-> GetAttributeObject("ListOfReferences_UnsetAN")
}
nbInstList=RefList_UnsetAN.Size()
Trace(2,"size=",nbInstList)
for index while index <= Count_ANMovedToShell
{
	set currObj=RefList_UnsetAN.GetItem(index)
	if (currObj <> NULL)
	{
		Trace(2,"Unset Object="+currObj->GetAttributeString("V_Name"))
		set newName="ObjWithANMovedToShell"+index
		//currObj->AddExtension("RSCCustoExtRefProdSpec1")
		//currObj->SetAttributeString("RSCRefProdCustoAttr1",currAN)
		//currObj->SetAttributeString("V_Name",newName)
	}
}
for index while index <= nbInstList
{
	set currObj=RefList_UnsetAN.GetItem(index)
	if (currObj <> NULL)
	{
		Trace(2,"Unset Object="+currObj->GetAttributeString("V_Name"))
		set newName="ObjWithoutAN"+index
		//currObj->AddExtension("RSCCustoExtRefProdSpec1")
		//currObj->SetAttributeString("RSCRefProdCustoAttr1",currAN)
		//currObj->SetAttributeString("V_Name",newName)
	}
}