How to add an XPath rule when using the Attribute Based Decomposition feature.

How to add an XPath rule when using the Attribute Based Decomposition feature.

book

Article ID: KB0094031

calendar_today

Updated On:

Products Versions
TIBCO Fulfillment Order Management -
Not Applicable -

Description

Description:

The Attribute Based Decomposition functionality allows performing decomposition according to an XPath rule defined in the product. The rule can be used either to check the existence of a particular product in the order or to evaluate the content of an UDF.

Resolution

To use this feature, a characteristic called “DECOMPOSITION” should be created and used by the products against which the rule is applied. The XPath logic must contain the “exists()” expression. 

Example:

Suppose product "ABC" has a PCO relationship with "Product_A" (autoprovision=true). We would like "Product_A" to be included in the plan only if the order line containing product "ABC" contains a UDF called "MyProd" and its value is "2".

Under the Fulfillment Catalog: 

1). Edit the product "Product_A"( see attached ScreenS1.png).

2). Go to the "Relationships" tab (see attached ScreenS1.png).

3). Click on "characteristic" (see attached ScreenS1.png).

4). Click on "Add Relationship" (see attached ScreenS1.png)

5). Add the "DECOMPOSITION" characteristic.

6). In the field "Relationship Value", put the Xpath expression "exists($var//Product[udf[name='MyProd' and value='2']])" (see ScreenS2.png).

7). Click on "Save and Process".

If a request with only one order line containing "ABC" product is submitted, then "Product_A" will be included in the plan only if this OL contains ""MyProd" UDF with value="2".

Issue/Introduction

How to add an XPath rule when using the Attribute Based Decomposition feature.

Additional Information

TIBCO Fulfillment Order Management User's guide

Attachments

How to add an XPath rule when using the Attribute Based Decomposition feature. get_app
How to add an XPath rule when using the Attribute Based Decomposition feature. get_app