RuleDataSets

This component runs the Rule Data Sets (RDS) function and allows you to set up and maintain values for the key data items defined in the SunSystems Rule Data Set Keys (RDK) function or via payloads that use the RuleDataSetKeys component.

Note: 
  • This Help contains hyperlinks that are enabled when the Help is accessed within the application. However, if you have accessed this Help via the SunSystems Web portal, hyperlinks are not enabled.
  • Use the BulkCreateOrAmend method when you need to set up and maintain large numbers of Rule Data Sets as this method is substantially faster than the CreateOrAmend method.

Methods

BulkCreateOrAmend
Driver Type: SASI
Use this method for the bulk loading of rule data sets, or the bulk amendment of rule data sets, or where performance is critical.
Note: Although the SASI method accepts dates and periods with slashes, the DJI method does not and expects dates in ddmmyyyy format and periods in pppyyyy format.
CreateOrAmend
Driver Type: SASI
Use this method to create or amend one or more rule data sets. A rule data set is created if it does not exist and amended if it does.
Delete
Driver Type: SASI
Use this method to obtain rule data set details or to extract rule data set data from SunSystems.
DeleteChildData
Driver Type: SASI
Use this method to delete child data (Rule Data Presets) but retain the parent record (Rule Data Set).
Query
Driver Type: Export
Use this method to obtain rule data set key details or to extract rule data set key data from SunSystems.

Mandatory fields

General
When creating or amending a rule data set, the following must be supplied:
  • Lookup Code - payload element <LookUpCode>
  • Value 1 - payload element <Value1>
  • Value 2 - payload element <Value2>
  • Value 3 - payload element <Value3>
When creating or amending rule data set presets, a value must be supplied for the: Preset Code - payload element <PresetCode>.
Deleting Child Data
When deleting child data, a non-blank value must be supplied for:
  • Lookup Code - payload element <LookUpCode>

    This value must not be blank.

  • Business Unit Code - payload element <BusinessUnitCode>
  • Business Unit Code To - payload element <BusinessUnitCodeTo>
  • Value 1 - payload element <Value1>

    This value cannot be blank.

  • Value 2 - payload element <Value2>
  • Value 3 - payload element <Value3>
  • Preset Number - payload element <RuleDataSetPresets.PresetNumber>.
Note: At runtime the component validates the payload contents to ensure that the values supplied are correct. Various combinations of values may require other elements in the payload to be specified before the payload can be processed successfully.

Rule Data Set Presets.