In this article, I share a bunch of the scripts I use in my work. All these scripts are used as templates for something special. The first script is used to convert FlexibleSearch queries into raw SQL. The second script shows all hybris types that use the particular type. The third one will help you with executing DDL queries on the database server remotely (such as ALTER TABLE, for example). I also provide the script for printing the database table structure and the indexes defined for it. Read More »
Finding all external references to an object (EARLY BETA) The script I present today is designed for finding the references for any particular item in hybris. It can be useful if you want to figure out if the product or… Read More »
Today I present a groovy script for creating a Flexible Search query for any hybris type. You can use the generated query as a template for troubleshooting or data reconciliation. It automatically resolves the RelationType and ComposedType attributes to make the result set human readable. Read More »
In this article, I share my scripts for hybris logging subsystem (changing a log level for any class on the fly) and intercontext bean manipulation. For the second topic, I introduce the scripts for printing a list of all beans of the particular context (such as storefront), executing a method from the any bean, including RequestMapping-defined page controllers, and printing all URLs these controllers are associated with. These manipulations help with troubleshooting and early identifying of misconfiguration issues. Read More »
The Groovy console is a very handy tool to develop and run scripts inside hybris without touching the source code. It is a very powerful tool for debugging purposes, especially if you need to troubleshoot the remote system. In this article, I collected some of the scripts I use regularly in my work. Read More »