Loading
Get Started with Communications, Media, and Energy & Utilities (CME)...
EligibilityContextInterface

EligibilityContextInterface

Returns an optimized Map<String, Object>, which will help the context framework to generate a key.

Type

Loosely typed

Triggered When

Invoked by Digital Commerce (Cacheable) APIs

Signature

Access

Signature

public

VOIInvoker.invokeMethod('EligibilityContext', methodName, input, output, options);

Default Implementation

DefaultEligibilityContextImplementation

Other Implementations

None

Input

  • methodName: get

  • Map<String, Object>: The context eligibility string to be optimized to generate a context key

  • Example: {"accountSla":"gold","accountStatus":"silver"}

Output

Map<String, Object> ContextValue: The optimized representation of context string input for generating a cache eligibility key

Sample

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');
 
Loading
Salesforce Help | Article