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 Summary
Modifier and TypeMethodDescriptiongetAttributeName
(String columnName) Get name of the attribute based on Claim Type configuration to which the column gets persistedGet line item typed id in Allocation Formula onlygetRow()
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 Details
-
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
Set row for formula testdrive- Parameters:
debugRow
- for debugging
-
getAttributeName
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
-