Within a Pricefx source directory (package), logics reside in the CalculationLogic and WorkflowFormula directories. Each logic consists of a few script files and metadata.
Figure 1. The file structure for a logic.
Logic Properties
Metadata for logics are defined by the logic.json file. There are three mandatory properties: uniqueName, validAfter, and status.
uniqueName
Used to reference logics
validAfter
Used to schedule releases
status
Used to activate and deactivate logics
These three properties make up a composite primary key.
Logic Element Properties
The logic.json file also contains a property elements. This property is an array of objects, where each object references one script inside the elements/ directory. These scripts — together with the associated metadata — make up an element.