cancel
Showing results for 
Search instead for 
Did you mean: 

HMC Change log lifespan.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Answers (1)

Answers (1)

0 Kudos

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