Requirement Usages (DELPPRRequirementUsages_ID)

An opening ID is an entry point used to customize business logic. This opening ID is run to return the list of usages allowed for the assignment of Requirements.

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 you with information related to the definition of the opening ID.

PLM Opening IDDELPPRRequirementUsages_ID
Customization intent Execution
Execution contextClient

Input Objects

Input objects must be of the following types:

  • ThisObject: The requirement to assign.
  • Parameters: Corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead/WriteComments
OutputListOfUsages ListWriteList of usages allowed for the assignment of the requirement.
OutputListOfCombinedUsagesListWriteList of combined usages. A combined usage is a set of several usages (defined in the OutputListOfUsages) to enable the user to assign several usages in one step.
OutputListOfUsageQuantityListWriteLists the quantity of usages to assign to several object references.

Sample

The following sample shows how to use the opening ID.

/* ---- input ---- */
Let ListOfUsages(List)
Let ListOfCombinedUsages(List)

/* -------------------------------------------------------------------------*/
/* Code - Content of both lists is defined hereafter                        */
/* -------------------------------------------------------------------------*/
ListOfUsages.Append("Control")
ListOfUsages.Append("Realize")

ListOfCombinedUsages.Append("Control_Realize")

/* -------------------------------------------------------------------------*/
/* Fill output parameters                                                    */
/* -------------------------------------------------------------------------*/
if ( true == Parameters.HasAttribute("OutputListOfUsages") ) 
{
  Parameters.SetAttributeObject("OutputListOfUsages", ListOfUsages)
}
if ( true == Parameters.HasAttribute("OutputListOfCombinedUsages") ) 
{
  Parameters.SetAttributeObject("OutputListOfCombinedUsages", ListOfCombinedUsages)


/* -------------------------------------------------------------------------*/
/* ---- Specifying a quantity (2) for Control usage -- */
/* -------------------------------------------------------------------------*/
Let ListOfUsageQty(List)
ListOfUsages.Append("Control")
ListOfUsageQty.Append(2)

if (true == Parameters.HasAttribute("OutputListOfUsageQuantity"))
{
Parameters.SetAttributeObject("OutputListOfUsageQuantity", ListOfUsageQty)
}