Skip to content

Adjust settings for valid times

For each column that is treated as valid time you:

  1. Go to the logical validation model diagram
  2. Double Click on the relevant entity
  3. Go to the tab Columns
  4. Right click with the mouse on the valid time attribute:
  5. Select i-refactory > Staging > Make valid start column for all valid start columns
  6. Select i-refactory > Staging > Make valid end column for all valid end columns
  7. Select i-refactory > Staging > Make Normal Column to turn a valid time column into a normal column
  8. Menu make valid time column

The Domain HSTGIN Closed Open Valid Start/End is assigned to the affected columns. Closed Open means that the record is valid from (vanaf in Dutch) the supplied valid start date until - but not including - (tot in Dutch) the supplied valid end date. In practice, this means that the start date of a valid time record is equal to the end date of the previous valid time record.

Example

Consider the following timeline for the retail prices of a given part.
- Part number 1 has two retail prices in the database: 450.50 and 901.00
- The retail price of 450.50 is valid from 1 January 2010 to 1 January 2019.
- On 1 January 2019 the Retail price of Part nbr 1 is 901.00.
Example closed open

Warning

i-refactory will check if acm_valid_end_dt is greater than acm_valid_start_dt in the database. It will also check if the valid time of the delivered records doesn't overlap with the existing records in the central facts layer.

It is a good practice to add a set constraint to check for overlapping valid times in the current delivery. You might also want to add a check on gaps between the valid times.