ccrz.ccApi.registerLogic

Registers a new logic service class in the B2B Commerce for Visualforce API, such as for add-on packages or custom APIs that reference existing B2B Commerce logic services. This method is rarely used in B2B Commerce solutions.

Compatibility

This reference applies to:

Release Managed Package Version API Version
B2B Commerce for Visualforce Winter ’21 4.13 12
B2B Commerce for Visualforce Spring ’20 4.12 11
B2B Commerce for Visualforce Summer ’19 4.11 10
B2B Commerce for Visualforce Spring ’19 4.10 9
B2B Commerce for Visualforce Summer ’18 4.9 8

Signature

global static Map<String, Object> registerLogic(Map<String, Object>)

Inputs (Required)

Map<String, Object>, where each key is the key that the B2B Commerce for Visualforce API references for managing the logic service. The value for each key is the namespaced default class of the logic service.

For example, to register myLogicService and anotherLogicService, set up your input map with the following keys:

ccrz.ccApi.registerLogic(new Map<String,Object>{
    'myLogicService' => 'namespace.myLogicService'
    'anotherLogicService' => 'namespace.anotherLogicService'
});
  • The combination of the key name and default class name can't exceed 40 characters.
  • Don't use S or L as the first character of the key name. Those characters are reserved for internal use.

Tip

Outputs

Map<String, Object> that includes all registered data service and logic service providers.