This is a duplicate post, please follow on the other thread: https://engage.tmforum.org/discussion/tmf-637-productattributevaluechangeevent-and-productstatechangeevent-payload-1
------------------------------
Jonathan Goldberg
Amdocs Management Limited
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: Aug 07, 2024 22:36
From: Shangfeng Liu
Subject: TMF 637 ProductAttributeValueChangeEvent and ProductStateChangeEvent Payload
Hey team,
Per TMF637-ProductInventory (v5.0.0), The product inventory (PI) should publish these events when patch requests against Product Entity completed.
Our question are about the what the event payload and which event(s) will be published. To be detailed,
- Per patch request with `status` field ONLY, will the ProductStateChangeEvent be published ONLY?
- From the meaning of the event, if the `status` doesn't change between request and db, the event shouldn't be published, right?
- What's the event payload? Per the swagger definition, the `Product` entity should be the payload, but what specific fields should be published? Will `status` be the ONLY field to be published?
- Per patch request with any other fields besides `status` field, will the ProductAttributeValueChangeEvent be published?
- From the meaning of the event, if the fields doesn't change between request and db, the event shouldn't be published, right?
- What's the event payload? Per the swagger definition, the `Product` entity should be the payload, but what specific fields should be published? All changed fields should be published?
- Per patch request with any other fields along with `status` field, which event(s) will be published?
- For example, if the `status` fields changed, the StateChangeEvent should be published as item 1st above, but for other fields will be sent through AttributeChangeEvent as item 2nd above.
Hope it is clear to you, and we are looking forward to your suggestion! Thanks
Duplicate with the following one, will mark as deprecated.
------------------------------
Shangfeng Liu
LotusFlare
------------------------------