You are here:
PricingInitialization
The PricingInitialization implementation is a wrapper class that calls the default pricing implementation through the custom action in flows.
Interface
VlocityOpenInterface
Parameters
The PricingInitialization implementation does not require any input through the custom action in the flow. It operates against the line items list included in the flow map.
Sample Code
global with sharing class PricingInitialization implements VlocityOpenInterface {
global Boolean invokeMethod(String methodName, Map < String, Object > input, Map < String, Object > output, Map < String, Object > options) {
if (methodName.equals('executeCustomAction')) {
return executeCustomAction(input, output, options);
}
return true;
}
private Boolean executeCustomAction(Map < String, Object > inputMap, Map < String, Object > outputMap, Map < String, Object > optionsMap) {
Map < String, Object > flowMap = (Map < String, Object > ) inputMap.get('flowMap');
String nsp = ApplicationUtilities.getNamespacePrefix();
List < Sobject > itemList = (List < SObject > ) flowMap.get('itemList');
SObject parent = (SObject) flowMap.get('parent');
DefaultPricingImplementation defaultPricing = new DefaultPricingImplementation();
defaultPricing.priceLineItems(parent, itemList);
return true;
}
}Related Implementations
None


