You are here:
EligibilityContextInterface
Returns an optimized Map<String, Object>, which will help the context framework to generate a key.
Loosely typed
Invoked by Digital Commerce (Cacheable) APIs
Access | Signature |
|---|---|
public |
|
DefaultEligibilityContextImplementation
None
-
methodName: get
-
Map<String, Object>: The context eligibility string to be optimized to generate a context key
-
Example:
{"accountSla":"gold","accountStatus":"silver"}
Map<String, Object> ContextValue: The optimized representation of context string input for generating a cache eligibility key
Map<String, Object> input = new Map<String, Object> {
'contextRawObject' => '{"accountSla":"gold","accountStatus":"silver"}'
};
vlocity_cmt.VOIInvoker.invokeMethod('EligibilityContext', 'parserContextInput', input, output, options);
Map <String, Object> eligibilityKeyGenObject = (Map<String, Object>) output.get('ContextValue');Map<String, Object> input = new Map<String, Object>{'contextRawObject' => '{"accountSla":"gold","accountStatus":"silver"}'};vlocity_cmt.VOIInvoker.invokeMethod('EligibilityContext','parserContextInput', input, output, options);Map<String, Object> eligibilityKeyGenObject = (Map<String, Object>)output.get('ContextValue');