Interface ConditionRecordHelper
- All Superinterfaces:
Help
public interface ConditionRecordHelper
extends Help
-
Method Summary
Modifier and TypeMethodDescriptionaddOrUpdate
(Map<String, Object> values) Allows you to add or update data into theConditionRecordItem
(CRCI) table (CRCI1..CRCI12).Methods inherited from interface Help
getObjectName
-
Method Details
-
addOrUpdate
Allows you to add or update data into theConditionRecordItem
(CRCI) table (CRCI1..CRCI12). This is done using the JST job and processing done over data in theConditionRecordProcessing
(CRCP) table, where data are inserted by this method. Therefore, the data cannot be read from the CRCI table within a single logic.This method is a wrapper for
addOrUpdate(String, Map)
. It adds data necessary for Condition Record processing.Example:
Note:conditionRecordHelper.addOrUpdate([ key1: "a value 1", validFrom: "2021-11-03", validTo: "2022-11-03", conditionRecordSetId: 1, conditionValue: 1, unitOfMeasure: "tons", currency: "USD", integrationStatus: 3, attribute1: "attr1 VAL", attribute2: "attr2 VAL11", attribute3: "attr3 VAL222", attribute4: "attr4 VAL3333", ])
conditionRecordSetId
can be replaced byconditionRecordSetName
. IfconditionRecordSetId
is specified, it takes priority andconditionRecordSetName
is ignored.- Parameters:
values
- A map of values to be inserted or updated in the database.- Returns:
- Inserted object(s).
- Since:
- 13.0 - Rampur
- See Also:
-