I want to invoke repricing from my global component,how should i do it.whatever way i found , it required some or other parameters which are not available globally.
In my requirement i need to remove some items from order using global components like Droplets,Processors etc.
I have extended CommerceItemManager's removeItemFromOrder method to suit my needs , the issue is that after remove item from order , i need to invoke repricing (which is automatically invoked when we use form handlers, but here this is not the case ).
i was thinking of calling :
getPurchaseProcessHelper().runProcessRepriceOrder(pPricingOperation, pOrder, pPricingModels, pLocale, pProfile, pExtraParameters, pErrorHandler)
how should i get pPricingModels, pLocale, pProfile, pExtraParameters, pErrorHandler params in my global components.
Note - I dont want to use RepriceOrderDroplet, i want to do it programatically.