Interface ClaimContext


public interface ClaimContext
ClaimContext is used for configuration of Configure Channel Management. Instance can be obtained via call api.getClaimContext()

Example:


         def productId = api.getClaimContext().getRow().get("MATERIAL")
     
See Also:
  • Method Details

    • getRow

      Map<String,Object> getRow()
      Get parsed row from excel claim input.
      Returns:
      Map of header name –> cell value
    • getLineItemTypedId

      String getLineItemTypedId()
      Get line item typed id in Allocation Formula only
      Returns:
      typedId of the selected item
    • setDebugRow

      void setDebugRow(Map<String,Object> debugRow)
      Set row for formula testdrive
      Parameters:
      debugRow - for debugging
    • getAttributeName

      String getAttributeName(String columnName)
      Get name of the attribute based on Claim Type configuration to which the column gets persisted
      Returns:
      "attributeX"
    • setNewClaimData

      void setNewClaimData(Map<String,Object> headerValues, Collection<String> columnNames, List<Map<String,Object>> data)
      Set data from which a claim can be created
      Parameters:
      headerValues - Claim header fields' values
      columnNames - Names of columns (keys from a sample row)
      data - Table (list of maps), where each map is a columnName -> value