Process of Adding New Item to Rebate Agreement

rebate add new item.drawio
  1. The user clicks on Add Item to add new agreement condition to the Rebate Agreement.

    1. To provide the user only relevant Condition Types, the system executes the New Item Filter Logic.

      1. The logic builds the Filter for Condition Types. The logic is executed in normal mode.

    2. The system uses the Filter to show the user only the relevant Condition Types.

  2. The user selects the desired Condition Type from the list.

    1. To find out the inputs for the new Rebate Line Item, the system executes the Rebate Logic in "agreement" context.

      1. The Rebate Logic’s "agreement" elements are executed in Input Generation Execution, to prepare the input fields definitions for the new item.

    2. The system creates new line item based on the selected Condition Type.

    3. The system stores the input definitions to the new item.

    4. To calculate the new item, the system executes the Rebate Logic in "agreement" context

      1. 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.

    5. The system stores the result to the item object.

    6. To create input fields definitions for the new Rebate Records, the system executes the Rebate Logic in "rebateRecord" context

      1. The Rebate Logic’s "rebateRecord" elements are executed in Input Generation Execution to prepare the input fields definitions for the Rebate Record.

    7. To create input fields definitions for the new Rebate Record Groups, the system executes the Rebate Record Group Logic in Input Generation Execution.

  3. The user can review the newly added item in the user interface.

Found an issue in documentation? Write to us.