on 04-22-2015 7:37 PM
Location in hmc: Catalog->Products->Changes. 'Changes' section lists all the changes that have been made on a product. This includes Date, time, user responsible for changes. Ok, so my question is two fold: 1) What is the max number of entries under the Changes section? 2) What is the lifespan of the entries under Changes section?
So - basically the boundary conditions.
Thanks Sid
Hi Siddharth!
1) OOTB, the configured number of stored modified value is 20. (Check advanced.properties
under platform/resources/advanced.properties
.)
In your local.properties
file, you may modify this number to whatever you require by simply adding the same property:
hmc.storing.modifiedvalues.size=20
2) There is no lifespan for the items in this entry section - at least in terms of the date the modification was implemented.
If you plan to reduce the number of saved values and your item has more than the number of modified values you specify before you you make this change, unless you clean up these saved values, the older entries won't be deleted. Using Cleanup Strategy
Best regards,
Niko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niko, Thanks !
I have couple of follow up questions. 1) Is there a link to documentation for above information? 2) If I change a product attribute through a cronjob using ModelService API (modelService.save()) - it does not show up in HMC change history or product cockpit change history. What would be a good way to capture this Change?
Thanks Sid
Hi Sid!
1) The link I posted at the end: Cleanup Strategy should be the link you want. 2) Well, I don't really know exactly what your requirement is but maybe you can try and use an interceptor. You may use a Prepare or a Validate Interceptor, which are called before a model is saved to the database: https://wiki.hybris.com/display/release5/Interceptors
Best regards, Niko
Hi Siddharth
Refer to the wiki https://wiki.hybris.com/display/release5/SavedValues+-+Keeping+Track+of+Attribute+Value+Modification to help you with your needs
Regards Rudolf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.