Interface ConditionRecordHelper

All Superinterfaces:
Help

public interface ConditionRecordHelper extends Help
  • Method Summary

    Modifier and Type
    Method
    Description
    Allows you to add or update data into the ConditionRecordItem (CRCI) table (CRCI1..CRCI12).

    Methods inherited from interface Help

    getObjectName
  • Method Details

    • addOrUpdate

      Object addOrUpdate(Map<String,Object> values)
      Allows you to add or update data into the ConditionRecordItem (CRCI) table (CRCI1..CRCI12). This is done using the JST job and processing done over data in the ConditionRecordProcessing (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:

      
       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",
       ])
       
      Note: conditionRecordSetId can be replaced by conditionRecordSetName. If conditionRecordSetId is specified, it takes priority and conditionRecordSetName 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: