Create and Set up New Price Calculation Strategy

Price Setting Accelerator was created with a “plug-in” architecture in mind. It means that you can safely add your own custom price strategy calculations and they will be treated the same way as existing out-of-the-box strategies. All the other features of Price Setting Accelerator will work the same way for them.

This article is a step-by-step guide for creating and configuring you own custom strategy.

Strategy Designer works on top of the mechanism that this article describes. Please check it out before proceeding, because it may solve your use case in a more user friendly way.

Prerequisites

This article assumes that:

  • Price Setting Accelerator is deployed to the partition and you have a working Live Price Grid configured with the PSP Pricing Logic where you can test your changes. Check Install Price Setting Accelerator for more info.

  • You are a Configuration Engineer or have sufficient knowledge of Groovy coding, Pricefx Studio and managing and linking libraries of code to undertake technical configuration.

Configuration Overview

Each strategy is configured at two places:

  • Strategy Implementation – Groovy code stored in a method in the Library type logic. This is the source of truth for both out-of-the-box and custom strategies. For details see Custom Engines.

  • Strategy Definition – Record in the Company Parameter StrategyDefinition which defines the engine name and a record in the PSP_EngineCalculationConfig CP which defines the path to the engine and the parameters to be provided when the Price Setting Accelerator calls the method. For details see StrategyDefinition CP.

The administrator can set up the Price Setting Accelerator to use the strategy for the price list calculations in the Company Parameter StrategySelection. For details see Select Pricing Strategies used for Calculation of Prices.

NewPriceStrategyCalculation.drawio.png

See Adjustment Engine for more info about the out-of-the-box Cost+ calculation engine parameters.

Steps to create a custom pricing strategy: