cancel
Showing results for 
Search instead for 
Did you mean: 

Hooks for initialization and update process with Hybris 6.5.0

Former Member
0 Kudos

Hi,

I use a Java class with annotations @SystemSetup in order to initialize or update essential and project data:

 @SystemSetup(extension = "myextension")
 public class CustomDataSetup extends AbstractSystemSetup {

     @SystemSetup(type = Type.ESSENTIAL, process = Process.ALL)
     public void createEssentialData(final SystemSetupContext context) {
         // Do something...
     }

     @SystemSetup(type = Type.PROJECT, process = Process.ALL)
     public void createProjectData(final SystemSetupContext context) {
         // Do something...
     }
 }

Essential and project data methods are executed when executing the command line:

 ant intialize

But for the update process only the essential data method is executed with the command line:

 ant updatesystem

On the help website Hooks for Initialization and Update Process in the paragraph "Annotation Attributes" it is written that if process = ALL then "Code is executed twice, during the initialization and during the update process. " but it's not the case. Is it a known bug or may be I did something wrong?

Thanks for help.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, Thanks for the response. I will try the update system with a configuration file and see if that solves my problem. Best regards.

Former Member
0 Kudos

Hello,

Updating hybris with ant updatesystem does not trigger the creation of the project data. I would try providing the right configuration file (see Updating SAP Hybris Commerce from Command Line Procedure: https://help.hybris.com/6.5.0/hcd/08c89599782a4d589a2d5651899d02f1.html , step 2 and 3) .

Best Regards,