Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
KBL_custo (output) | String |
Write | String containing the XML code specifying the attributes to be set or reset within the KBL structure of the segment. |
KBL_user_custo (output) | String | Write | String containing the XML code specifying the customer attributes to be added in the KBL structure of the segment. |
Sample
The following sample gives an example of the business rule syntax to valuate and customize KBL attributes for a conductor and a support.
let sKBLcusto(String)
let sKBLuser(String)
let Support_reference(Support)
let Connector_reference(SingleInsertConnector)
set Support_reference=ThisObject
set Connector_reference=ThisObject
/* init custo string with empty XML content */
sKBLuser="</>"
sKBLcusto="</>"
if ( Support_reference <> NULL )
{
sKBLuser="<UserCusto1>FIXING_param1</UserCusto1>"
sKBLuser=sKBLuser+ "<UserCusto2>FIXING_param2</UserCusto2>"
sKBLcusto="<Company_name>FixingProvider</Company_name>"
}
else if ( Connector_reference <> NULL )
{
sKBLuser="<UserCusto1>HOUSING_param1</UserCusto1>"
sKBLuser=sKBLuser+ "<UserCusto2>HOUSING_param2</UserCusto2>"
sKBLcusto="<Company_name>ConnectorProvider </Company_name>"
}
Parameters.SetAttributeString("KBL_custo",sKBLcusto)
Parameters.SetAttributeString("KBL_user_custo",sKBLuser)