Posts

Showing posts from July, 2018

How to create a Cronjob using Groovy script in SAP Hybris

You can skip scenario and root cause section below, if you only interested in the groovy script cronjob steps Scenario When we create the ProductReference inside the Product(for stage catalog) using Impex/API. The owning product is not getting sync when we do a catalog sync. Root Cause As per wiki Modification time issues: Keep in mind that changing a part-of item does not mark its owning item modified automatically. To allow synchronization to schedule the owning item correctly you have to mark it modified manually, preferably inside the part-of item's business code. So here, we can write After Save Event or groovy script to update its owning item(Product) modification time. Now let's see, how can we handle this using groovy script in SAP Hybris. Solution To configure the groovy script as a cronjob, you have to create an instance of Script - the item type where the script content is going to store. ScriptingJob - a new ServicelayerJob item, which contains additionally the scriptUR…

How to Install temporary Hybris license?

LICENSE VERIFICATION HAS FAILED!?
Your demo/develop license has expired, it is valid only for 30 days.?
How to install temp SAP Hybris license?

When you download & Install SAP Hybris Commerce suite, By default it ships with the 30 days demo license. Yes, there is an option to extend the license to 90days by installing the temporary license. But you have to re-initialize your system once it expires. So better you get the developer license to continue your work without re-initialize. To install a temporary license 1) Add the systemID in your local.properties license.sap.sapsystem=DEV 2) Go to Platform directory and run the ./license.sh with temp parameter like below. Choose the right command based on your DB. Run license.bat instead of ./license.sh if you are using windows based system. OOTB HSQL DB ./license.sh -temp CPS_SQL MySQL DB ./license.sh -temp CPS_MYS Oracle DB