ccrz.ccLogicCartSetActive.process

Overrides the base ccrz.ccLogic.process method, sets up an intermediate working map, and invokes the other methods for this class.

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 virtual Map<String, Object> process(Map<String, Object>)

Inputs (Required)

This method accepts a Map<String, Object>, which was the input data for the ccrz.ccApiCart.setActive method.

Logic Performed

This method first checks the value of ccrz.cc_CallContext.isGuest. When the value is false, this method invokes other methods of the ccrz.ccLogicCartSetActive class in the following order:

  1. processInput
  2. updateActive
  3. refetch
  4. prepReturn

When ccrz.cc_CallContext.isGuest is true, this method exits and returns ccrz.ccApi.SUCCESS with a value of a false.

Outputs

This method creates a Map<String, Object> that contains a copy of the original input data. The method adds the following intermediate key to this map:

ccrz.ccApiCart.RESPONSE
Map<String, Object> that describes the status of the logic chain for this method, such as the current value of the ccrz.ccApi.SUCCESS return key.

This method passes this working map through the inner methods, and returns the final map after all inner methods have completed.

This method doesn't catch any exceptions that occur as the method executes.

Note