Interface IRebateRecordGroupManager


public interface IRebateRecordGroupManager
IRebateRecordGroupManager is the interface that allows you to manipulate a RebateRecordGroup (RRG type code) in a calculation logic.

The Rebate Record Group is available via the rebateRecordGroup binding variable (see the set() example below). The list of Rebate Records from the currently calculated group can be retrieved using the groupRebateRecords binding variable.

Both bindings exist when Pricefx calculates a Rebate Record Group with a logic of the nature rebateRecordGroup. Select this logic in the rebateRecordGroupFormulaName field of the Rebate Condition Type. To read the fields of the group, use api.currentItem(). That map is a copy, so changes to it do not change the group. Use set(Map) instead.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    set(Map<String,?> attributeValues)
    Allows you to set the value of attribute 1..100, or attributeExtension fields for the current RebateRecordGroup object.
  • Method Details

    • set

      void set(Map<String,?> attributeValues)
      Allows you to set the value of attribute 1..100, or attributeExtension fields for the current RebateRecordGroup object.

      Note: This set() method only works within the standard execution. Do not use the method within the Input Generation Execution (Syntax Check mode) as it has no effect and throws no exception error.

      A field name that does not exist on the group is skipped without an error.

      Example:

      
       rebateRecordGroup.set(
               [
                       "attributeExtension___fieldName": "value",
                       "attribute2"                    : 0.3,
               ]
       )
       
      Parameters:
      attributeValues - A map of field names and values you want to set for the current RebateRecordGroup object.
      Since:
      12.0 - Clover Club
      See Also: