Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
OutputListOfUsages | List | Write | List of usages allowed for the assignment of the requirement. |
OutputListOfCombinedUsages | List | Write | List 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. |
OutputListOfUsageQuantity | List | Write | Lists 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)
}