Interface ConditionRecordHelper
- All Superinterfaces:
Help
public interface ConditionRecordHelper
extends Help
-
Method Summary
Modifier and TypeMethodDescriptionCRAction
<ConditionRecordHelper> Deprecated.This method is deprecated and will be removed in a future patch release.addOrUpdate
(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:
-
addConditionRecordAction
Deprecated.This method is deprecated and will be removed in a future patch release. It will be removed without replacement, because there will be no further need.Adds CR action to the list of actions that should be executed.
Snippet:
conditionRecordHelper.addOrUpdate([ key1: "a value 1", 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", ]) conditionRecordHelper.addConditionRecordAction().setCalculate(true)
- Returns:
- CR action object with further configuration options.
-