General Information
This opening ID is invoked during the Harness/Content Links command.
The table below provides you with information related to the definition of the Opening ID.
PLM Opening ID: | ELE_ModifyAllocationHarness |
Customization intent: | Execution |
Execution context: | Client |
Sample
The following sample illustrates how to modify the properties of entities after creating or deleting harness links.
/* Rule : ELE_ModifyAllocationHarness */
/*
ThisObject : #In RFLVPMLogicalInstance
Parameters : #In RuleContext
*/
let sMode (String) /* "Add" or "Remove" modes */
let ActionList (List) /* Ends to validate action on */
let ExistingList (List) /* Existing ends */
let nbActionEnds (Integer)
let nbExistingEnds (Integer)
let ActionEnd (RFLVPMLogicalInstance)
let ExistingEnd (RFLVPMLogicalInstance)
let i (Integer)
let ObjID=""
let description=""
set sMode = Parameters->GetAttributeString("Mode")
set ActionList = Parameters->GetAttributeObject("ActionList")
set ExistingList = Parameters->GetAttributeObject("ExistingList")
nbActionEnds = ActionList->Size()
nbExistingEnds = ExistingList->Size()
set i = 1
if (sMode == "Add")
{
description = description + "Add: "
for i while i <= nbActionEnds
{
ActionEnd = ActionList.GetItem (i)
if ActionEnd <> NULL
{
ObjID = ActionEnd->GetAttributeString("PLM_ExternalID")
description = description + " -" + ObjID
}
}
ThisObject->SetAttributeString("V_description", description)
}
if (sMode == "Remove")
{
description = description + "Remove: "
for i while i <= nbActionEnds
{
ActionEnd = ActionList.GetItem (i)
if ActionEnd <> NULL
{
ObjID = ActionEnd->GetAttributeString("PLM_ExternalID")
description = description + " -" + ObjID
}
}
ThisObject->SetAttributeString("V_description", description)
}