In FOM 4.x and OM 5.x, there is a feature LinkParentID/LinkedParentID that is used to link parent and children products (see https://docs.tibco.com/pub/om-lr/5.0.0/doc/html/GUID-C3AE313B-65B2-4170-B2AD-1EDA2E50E810.html and the KB article "000020551": Use of LinkParentID/LinkedParentID UDFs for more information).
Issue/Introduction
This article explains how to link parent/child products in OPE 5.x
Environment
ALL
Resolution
In OPE 5.x, LinkParentID/LinkedParentID UDFs are not taked into account. Instead, we have LINKDEFINITIONS, see example attached to this article.
LINKDEFINITIONS works by:
1) adding a property in the PCO relationship characteristic of the parent model. <ns0:value> <ns0:type>LINKDEFINITIONS</ns0:type> <ns0:discreteValue>name,address</ns0:discreteValue> <ns0:mandatoryValue/> </ns0:value> (In the example above name and address UDFs will be used in order to link child(ren) to parent products in the request).
2) In the offer request for example, add UDF name and address for each orderline and provide different values: Product in order: BundleMax (with relationship BundleMax PCO TI_ADSL) -> orderLine 1: <ord:udf> <ord:name>name</ord:name> <ord:value>name</ord:value> </ord:udf> <ord:udf> <ord:name>address</ord:name> <ord:value>address</ord:value> </ord:udf>
3) Finally, as a result, in the response we will have: - TI_ADSL_TFOM-5009 with following UDF and therefore linked to orderLine 1:
<ns6:udf> <ns6:name>name</ns6:name> <ns6:value>name</ns6:value> </ns6:udf> <ns6:udf> <ns6:name>address</ns6:name> <ns6:value>address</ns6:value> </ns6:udf> as well as:
TI_ADSL_TFOM-5009 with following UDF and therefore linked to OrderLine 11: <ns6:udf> <ns6:name>name</ns6:name> <ns6:value>name1</ns6:value> </ns6:udf> <ns6:udf> <ns6:name>address</ns6:name> <ns6:value>address1</ns6:value> </ns6:udf> (see attached for full xml files)
Attachments
How to link parent/child products in OPE 5
get_app