...
Table of Contents | ||||
---|---|---|---|---|
|
Calculation Logic Architecture
...
This flow shows how different logics are executed from the Quote perspective:
...
Prerequisites
Review execution flows diagrams of how and when the Quote logics are executed:
Add quote line item - https://pricefx.atlassian.net/wiki/spaces/KB/pages/3499328234/Creating+Quotes#Add-Line-Item
Recalculate the Quote - https://pricefx.atlassian.net/wiki/spaces/KB/pages/3499328234/Creating+Quotes#Recalculate-Line-Items
Syntax Check
This dry run is used to discover inputs in the line item. Most of other API calls are mocked. Be aware that the syntax check dry run is executed only once when a new line item is added.
...
Configurator Logic
The logic is executed after clicking the Open button of Configurator.
After clicking the Save button of a popup Configurator, a new configurator value is saved to the Quote object. (Quote object is what you get by calling
quoteProcessor.getQuoteView()
.) But you cannot work with the values until the quote is recalculated. Why? All the logic knows is the old quote object since all other calculation logics finished before the configurator logic was executed. You must click the Recalculate button or set automatic recalculation; to learn more see how to recalculate a quote automatically.
Template Logic
The logic is executed after clicking the download PDF button.
From the template logic the whole quote object is accessible through
api.getCurrentItem()
.
...