Compute Values of Standard Attributes (L2P_ComputeStandardAttributeValues)

An opening ID is an entry point used to customize business logic. The Compute Values of Standard Attributes opening ID is available in the Logical to Physical Assistant Resources resource set.

This page discusses:

General Information

This opening ID is invoked to get the value of standard attributes for a list of items. This business rule may be triggered multiple times to compute the standard attribute values for a list of items. This will be triggered for all items created during analysis and for selected items to update in panel after an action.

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

Input Objects

Input objects must be of the following types:

  • ThisObject: None
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
ListInputObjects List Read List of Items for which standard attributes are to be computed
ListStandardAttributeNames List Write

List of list containing standard attribute names for which value is computed.

The output will be ignored if the size of output list does not match with input list.

ListStandardAttributeValues List Write

List of list containing standard attribute values.

The output will be ignored if the size of output list does not match with input list.

For each item, size of list of attribute values should match with size of attribute names in ListStandardAttributeNames.

Sample

let iList(List)
let AttrList(List)
let listAttrValue(List)
let oAttrValue(List)
let oAttrName(List)
let item (L2PItem)
let index(Integer)
let lsize(Integer)
let innerindex(Integer)

let sAttributeName(String)
let sAttributeValue(String)
let sMessage (STRING)

set iList = Parameters.GetAttributeObject("ListInputObjects")

index = 1
innerindex=1
set lsize = iList.Size()
for index while index <= lsize
{
	listAttrValue.RemoveAll()
	AttrList.RemoveAll()
	set sAttributeName = "ExpectedSegregation"
	set sAttributeValue = "Test Segregation"
	listAttrValue.Append(sAttributeValue)
	AttrList.Append(sAttributeName)
	
	set sAttributeName = "ExpectedExternalDiameter"
	set sAttributeValue = "10"
	listAttrValue.Append(sAttributeValue)
	AttrList.Append(sAttributeName)

	oAttrValue.Append(listAttrValue)
	oAttrName.Append(AttrList)
}
Parameters.SetAttributeObject("ListStandardAttributeNames", oAttrName )
Parameters.SetAttributeObject("ListStandardAttributeValues", oAttrValue )