-
The user clicks on Add Item to add new agreement condition to the Rebate Agreement.
-
To provide the user only relevant Condition Types, the system executes the New Item Filter Logic.
-
The logic builds the Filter for Condition Types. The logic is executed in normal mode.
-
-
The system uses the Filter to show the user only the relevant Condition Types.
-
-
The user selects the desired Condition Type from the list.
-
To find out the inputs for the new Rebate Line Item, the system executes the Rebate Logic in "agreement" context.
-
The Rebate Logic’s "agreement" elements are executed in Input Generation Execution, to prepare the input fields definitions for the new item.
-
-
The system creates new line item based on the selected Condition Type.
-
The system stores the input definitions to the new item.
-
To calculate the new item, the system executes the Rebate Logic in "agreement" context
-
The Rebate Logic’s "agreement" elements are executed in normal mode, to calculate the results for the item and to create Rebate Records needed for this item.
-
-
The system stores the result to the item object.
-
To create input fields definitions for the new Rebate Records, the system executes the Rebate Logic in "rebateRecord" context
-
The Rebate Logic’s "rebateRecord" elements are executed in Input Generation Execution to prepare the input fields definitions for the Rebate Record.
-
-
To create input fields definitions for the new Rebate Record Groups, the system executes the Rebate Record Group Logic in Input Generation Execution.
-
-
The user can review the newly added item in the user interface.