Offline Calculation

The offline calculation calculates whether a rescan is required or not. The offline calculation is only performed if the Fraud Detection Service is not reachable. The calculation of the rescan and the corresponding details are based on the parameters which are set in the file services.properties:
RescanServiceOfflineCalculationConfig.probability=0.05
 RescanServiceOfflineCalculationConfig.rescanType=partialRescan
RescanServiceOfflineCalculationConfig.itemsPercentage=0.5
RescanServiceOfflineCalculationConfig.itemsMin=1
RescanServiceOfflineCalculationConfig.itemsMax=5

The following table contains the description of the parameters:

Parameter Description
RescanServiceOfflineCalculationConfig.probability Defines the probability of a rescan. The values from 0.0 (never rescan) to 1.0 (always rescan) are valid.
RescanServiceOfflineCalculationConfig.rescanType Defines the rescan type. Possible values are:
  • fullRescan → Leads to a full rescan
  • partialRescan → Leads to a partial rescan
RescanServiceOfflineCalculationConfig.itemsPercentage The percentage defines how many items (in %) should be rescanned. The values from > 0.0 (at least one item) to 1.0 (all line items) are valid.
RescanServiceOfflineCalculationConfig.itemsMin Defines the minimum number of items to be rescanned. The value must not be null | 0.
RescanServiceOfflineCalculationConfig.itemsMax Defines the maximum number of items to be rescanned.