The beta table shows a very early version, where the references are still to Constraint and not to Policy. The updated assets for TMF620 v5, including reference to Policy, are currently in internal review, and I hope that they'll be ready for publication soon (but I cannot commit to a date).
Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
Original Message:
Sent: Jun 25, 2023 06:01
From: Anton Tsapko
Subject: Using POLICY in ProductOfferingPrice in TMF620 Product Catalog Management API possible?
@Matthieu Hattab,
I am also looking forward for the introduction of policy entry connected to PO, PS and POP in TMF620 V5. Though, I have checked out the pre-prod version (TMF620-Product_Catalog_Management-v5.0.0.oas.yaml) and could not find it there yet.
------------------------------
Anton Tsapko
conology
Original Message:
Sent: Jun 23, 2023 06:16
From: Matthieu Hattab
Subject: Using POLICY in ProductOfferingPrice in TMF620 Product Catalog Management API possible?
Hi Anton,
I did not understand why you would not use a policy component? (Quote: "The way we do rating and billing, we wouldn't use a policy component."
We currently have a variety of applications, including both custom-built and commercially available ones, some of which are rigid monolithic systems. This leads to a fragmented environment where "pricing rules" lack the structure found in the TM Forum policy entity.
Nevertheless, we are considering the implementation of a policy component (based on TM Forum or an alternative) to support digital sales. In this regard, I am thrilled to learn that TMF620 V5 will introduce a policy entity connected to Product Offering (PO), Product Specification (PS), and Product Offering Price (POP)!
------------------------------
Kind regards,
Matthieu Hattab
Lyse Platform
Original Message:
Sent: Jun 23, 2023 04:41
From: Anton Tsapko
Subject: Using POLICY in ProductOfferingPrice in TMF620 Product Catalog Management API possible?
@Matthieu Hattab,
your post made my day.
In fact, I came up with the same flow as you suggested. The only question for me is on how to properly structure the policy ressources which will then go as input to the Product Rating component. I have a gut feeling that it can get quite complicated.
The two examples I presented above are just the tip of the ice-berg of how price models can be interwined. In my case ProductOffer is in fact a bundle of bundles. Not only do I have quite diverse pricing models on level 2 (flat rate model without counting units, counting units used, counting units used and considering their lenght, etc) but also, as an example: some total rate of bundle on level 1 can change the rate of another level1 bundle. It can also change a total rate on level 2 and the other way around. (see pic). This complexity also leads to the fact that the Product Rating component will have to take the order into account in which it calculates the rates of level1 bundles.
I did not understand why you would not use a policy component? (Quote: "The way we do rating and billing, we wouldn't use a policy component."
What would be a way to go without policies taking the fact into acount that the system should adhere to TMF-Standards?
Best Regards
Anton
--

------------------------------
Anton Tsapko
conology
Original Message:
Sent: Jun 22, 2023 10:10
From: Matthieu Hattab
Subject: Using POLICY in ProductOfferingPrice in TMF620 Product Catalog Management API possible?
I hope the relevant experts can provide their insights, but I believe the process would likely unfold as follows:
At design time, use API TMF723 to create the policy. This step is a one-time setup.
At runtime (end of the billing period), the Product Rating ODA component (which currently lacks a TMF specification) is responsible for calculating the charges associated with the product.
A potential approach could be as follows:
- Product Rating requests API TMF620 (GET) to retrieve the price(s) of the product offering associated with the customer, which includes the policy ID. In this context, TMF620 serves no other purpose.
- Product Rating queries API TMF677 to determine the product usage (referred to as "items" in your diagram)
- Product Rating can now calculate the charge. But wait! Since a policy ID exists for that product offering, Product Rating must also engage API TMFxxx (policy execution API) to calculate the charge for this billing cycle. The required inputs are the total usage for the period and the policy ID to be applied.
Once the price is obtained, the Bill Calculation ODA component (which is also unspecified) can be utilized to generate the bill for each product.
The way we do rating and billing, we wouldn't use a policy component.
We have a multiple rating engines for various products (electricity, mobile data movie rental etc), so the Policy Id could represent a policy in different "policy" component. And we would not call them policy, but rating engine.
Please bear in mind that the above steps are based on speculation and assumptions, given the absence of specific TMF specifications and APIs for certain components mentioned.
Best regards,
------------------------------
Kind regards,
Matthieu Hattab
Lyse Platform
Original Message:
Sent: Jun 22, 2023 07:30
From: Anton Tsapko
Subject: Using POLICY in ProductOfferingPrice in TMF620 Product Catalog Management API possible?
@Matthieu Hattab , thanks for the elaborate answer.
Indeed I would like to build a price polices autoring logic that complies to TMF-Standard. To formulate it more easily, I need to get ProducOffers and its rather complex price models into a system. Those will be used for rating and billing.
I studied GB922_Common and GB922_Product extensively. And I could (probably) model the policies as described in GB922_Product on the SID level but I do not see a way how to map those models to TMF620 API or to any other API.
The only mention of policy in TMF620 API is in constraint in ProductOfferingPrice. So I suppose that would be the place to put all policy models into.

From Jonathans post I now understand that there will be an TMF723 API in future which will provde a possiblity to work with policies in API but it is not released yet.
Best Regards
Anton
------------------------------
Anton Tsapko
conology
Original Message:
Sent: Jun 22, 2023 06:59
From: Matthieu Hattab
Subject: Using POLICY in ProductOfferingPrice in TMF620 Product Catalog Management API possible?
As Jonathan pointed out, TMF620 only provide a reference to a policy, so it's really not much.
At design time (policy authoring)
If you're keen on devising your pricing rules in a TMF compliant manner, I recommend reading the following TMF Assets:
- GB922_Common: This resource has a comprehensive understanding of the information model for policy.
- GB922_Product: This resource will guide you on how to construct complex pricing rules by utilising the Policy information model. It includes a variety of examples, some of which bear a close resemblance to your diagram.
At run time (policy execution)
You could consider implementing the open-source Drools policy engine, it also provides APIs for runtime execution.
to close the loop, if you price policy is used for commerce processes (pre-sales, selling...) the product offering price, (calculated by the policy engine), would be exposed by TMF 679.
Hope this helps.
------------------------------
Kind regards,
Matthieu Hattab
Lyse Platform
Original Message:
Sent: Jun 21, 2023 13:43
From: Anton Tsapko
Subject: Using POLICY in ProductOfferingPrice in TMF620 Product Catalog Management API possible?
Hello everyone,
the document IG1261_Product_Catalog_Commercial_Modeling_Patterns_v1.0.0.pdf describes the posibility to build price models using price POLICY, following an example from page 22.

Questions:
- Where in TMF620 Product Catalog API would that policy object go to when I have more sophisticated pricing models like following two examples?
- Is TMF620 Product Catalog API intended to be used for complex price models? (I could not find any examples in TMF620_Product_Catalog_Management_API_User_Guide_v4.1.0.pdf)
- Could anyone post an example on how policy is used in TMF620 API in ProductOfferingPrice for a price model?
More complex Pricing model Examples:

Best Regards
Anton
------------------------------
Anton Tsapko
conology
------------------------------