Hi
I was looking for some guidance on how to implement product Order hierarchy/layering (Parent Order composed of several child orders) as part of TMF 622
Scenario
In a B2B scenario it is possible for a single customer to place multiple orders for multiple site/locations. If each site order is modelled as a Product Order, I still need a construct to model a Customer Order that is composed of several site orders
We have implemented both Customer Order and Site Orders as instances of Type Product Order with Foreign Key relationship with Customer and Site Order
How would this manifest in the 622 Product Order API as the customer order is composed of Site Orders and does not have Product Order Items
We are considering the following possible options
Use 622 to create the customer Order sending references to the site level order as Product Order Item (This would need extending 622 to state that a Product Order Item can reference Product Orders)
Extend 622 to create an additional entity OrderRelationship (similar to orderItemRelationship) that maintains the relationship between customer and site orders. Problem with this approach is that the Customer Order will not have any Product Order Items which has a 1..* relationship to Product Order
Create a separate resource model to represent the Customer Order construct (not 622). Essentially saying that a customer order is not a instance of the product order
Appreciate any guidance if the problem has been solved before and any known pros and cons of the approaches
------------------------------
Lancy Mendonca
------------------------------