Module Dependencies

Configuration

A module might require other modules so that it can work properly. The dependencies can be set during module development in the ModuleManager.MODULES_DEFINITION by the below configurations:

 

  • REQUIRED_MODULES – Defines a list of modules that this module requires to work properly.

  • REQUIRED_MODULES_NOT_INSTALLED_ERROR_CODE – If one of the required modules is not installed, an error will be thrown.

  • REQUIRED_MODULES_ABORTED_ERROR_CODE – If one of the required modules is aborted, an error will be thrown.

Out-of-the-box Module Dependencies

Module Name

Required Modules

Module Name

Required Modules

stock

transaction