Project Structure
All Pricefx’s deployment tools assume a special project structure that is unique to Pricefx. The source directory is referred to as a Pricefx package. It is both the source directory and the output directory and is what gets deployed to Pricefx. There are no build steps involved. The package directory gets uploaded directly to the Pricefx backend application, where the scripts get compiled.
During development, the Pricefx Studio plugin for IntelliJ will help you maintain a valid project structure. Without Pricefx Studio, it is very difficult to know how the project and its various JSON files should be structured, as there are no JSON schemas defined.
For a simple example, see the pricefx-starter repository. The source files are located inside the pricefxSrc
directory.
The name of the directory specifies the type of data that it contains. For example, the CalculationLogic
and WorkflowFormula
directories contain the logic objects. Inside these directories are subdirectories that correspond to individual logics. Each logic has a logic.json
file and a set of groovy scripts. The scripts reside in the elements/
directory.
For an example of a simple pricing logic, see https://github.com/pricefx/pricefx-starter/tree/main/pricefxSrc/CalculationLogic/RegionalPricingPricelist
Found an issue in documentation? Write to us.
Â