Table of Contents

Search

  1. Preface
  2. Introduction
  3. IDD Concepts
  4. Implementation Process
  5. IDD Configuration Manager
  6. Manual IDD Configuration
  7. IDD Global Properties
  8. Sizing and Platform Requirements
  9. Application Components
  10. IDD Security Configuration
  11. Data Security
  12. Example Role-Based Security Configuration
  13. Data Masking
  14. Siperian BPM Workflow Engine
  15. Locale Codes
  16. Troubleshooting
  17. Glossary

Data Director Implementation Guide

Data Director Implementation Guide

Configuring a User Exit to Set Start Date and End Date for a Period

Configuring a User Exit to Set Start Date and End Date for a Period

To set the start date and end of a period in Informatica Data Director, you can use the
IEffectivePeriodSetters
interface in the beforeEverything user exit.
The
IEffectivePeriodSetters
interface only works for Save handler. It does not work for HM relationship Save handler.
The following code snippet is an example of how to set the effective start and end date:
// get existing start end date from effective period IEffectivePeriodSetters epd = ((IEffectivePeriodSetters) getOperationContext().getValue(OperationContext.EFFECTIVE_PERIOD)); Date stDate = epd.getStartDate(); Date eDate = epd.getEndDate(); // set new effective start and end date epd.setPeriod(DateUtils.addDays(stDate, 1), DateUtils.addDays(eDate, -1));

0 COMMENTS

We’d like to hear from you!