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).invalidate
(Map<String, Object> values) Allows you to deleteConditionRecordItem
identified by CRS id, key and validity period values.shortenValidTo
(Map<String, Object> values) Allows you to shortenvalidTo
ofConditionRecordItem
identified by CRS id, key and validFrom values.Add options for splicing process.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 splicing process.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:
-
invalidate
Allows you to deleteConditionRecordItem
identified by CRS id, key and validity period values. 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 splicing process.Example:
Note:conditionRecordHelper.delete([ key1: "a value 1", validFrom: "2021-11-03", validTo: "2022-11-03", conditionRecordSetId: 1 ])
conditionRecordSetId
can be replaced byconditionRecordSetName
.
IfconditionRecordSetId
is specified, it takes priority andconditionRecordSetName
is ignored.- Parameters:
values
- A map of values to be used to identify CRCIX in the database.- Returns:
- Object(s) to be deleted.
- Since:
- 16.0 - Black Cat
- See Also:
-
shortenValidTo
Allows you to shortenvalidTo
ofConditionRecordItem
identified by CRS id, key and validFrom values. It can be identified by validFrom only because there should not be any other item with the same value in validFrom. Otherwise, the data are corrupted.validTo
is considered as new validTo value. This value should not be in the future according to current validTo value. 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 splicing process.Example:
Note:conditionRecordHelper.shortenValidTo([ key1: "a value 1", validFrom: "2021-11-03", validTo: "2022-11-03", conditionRecordSetId: 1 ])
conditionRecordSetId
can be replaced byconditionRecordSetName
.
IfconditionRecordSetId
is specified, it takes priority andconditionRecordSetName
is ignored.- Parameters:
values
- A map of values to be used to identify CRCIX in the database.- Returns:
- Object(s) to be deleted.
- Since:
- 16.0 - Black Cat
- 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.
-
withSplicingOption
SplicingOptions withSplicingOption()Add options for splicing process. For examples refer to return class.- Returns:
SplicingOptions
.
-