Monday, February 9, 2015

Order Item Association

Order Item Association

Association can be Achieved in 3 way

1. Fulfilment pattern :- In this case you have to put name of fulfillment pattern which you want to include in order component  after decomposition.

2. Matching Order component ID

3:- Property Correlation :-

x Query / Enrich the order item after decomposition .
when order is moving from one function(fromOrderComponent) to other function(toOrderComponent) .

Order Item Association XQuery assigns order items to order components that are not assigned by their product specification.

These order item associations are typically required when external systems need a specific context for an order item and includes the following characteristics:

let $fromItem := osm:fromOrderComponent/osm:orderItem[osm:name/text()="Speed By Demand [Add]"]
let $toItem := osm:toOrderComponent/osm:orderItem[osm:name/text()="Broadband Bundle [Add]" and osm:properties/im:SiteID/text() = $fromItem/osm:properties/im:SiteID/text()]
return
<osm:dependency fromOrderItemId='{$fromItem/@id}' toOrderItemID='{$toItem/@id}'/>
where

osm:fromOrderComponent: Returns the set of order items included in the order component after the decomposition phase.

osm:toOrderComponent: Returns the entire set of order items included in the order.

osm:orderItem: These are the order items in the fromOrderComponent or toOrderComponent categories.

osm:dependency fromOrderItemId='{$fromItem/@id}: The output of the XQuery specifying the source order item ID for the association.

toItem='{$childOrderItem/@id}'/>: The output of the XQuery specifying the target order item ID for the association.

No comments:

Post a Comment