Interface ClaimContext
-
public interface ClaimContext
ClaimContext is used for configuration of Channel Manager. Instance can be obtained via callapi.getClaimContext()
Example:
def productId = api.getClaimContext().getRow().get("MATERIAL")
- See Also:
PublicGroovyAPI.getClaimContext()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAttributeName(String columnName)
Get name of the attribute based on Claim Type configuration to which the column gets persistedString
getLineItemTypedId()
Get line item typed id in Allocation Formula onlyMap<String,Object>
getRow()
Get parsed row from excel claim input.void
setDebugRow(Map<String,Object> debugRow)
Set row for formula testdrivevoid
setNewClaimData(Map<String,Object> headerValues, Collection<String> columnNames, List<Map<String,Object>> data)
Set data from which a claim can be created
-
-
-
Method Detail
-
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' valuescolumnNames
- Names of columns (keys from a sample row)data
- Table (list of maps), where each map is a columnName -> value
-
-