PeopleSoft Adapter 6.0 | webMethods PeopleSoft Adapter Documentation | webMethods PeopleSoft Adapter Installation and User’s Documentation | About the PeopleSoft Adapter | Adapter Services | Update Services | Effective Date Processing
 
Effective Date Processing
The Update services can access and update effective-dated child-level records according to the date of the record.
A record is defined as effective-dated if the EFFDT property exists in the record. The EFFDT property must be a key. A record does not have to have the EFFSEQ property for the operation to access an effective-dated record. If the EFFSEQ property does not exist, then the operation uses 0 as the sequence number.
The PeopleSoft Adapter takes {EFFDT, Sequence Number} input values and passes them into PeopleSoft API getEffectiveItem(String date, long seqNum) to access a record.
The sequence number is equal to the EFFSEQ value or to 0. If a record with the specified EFFDT and sequence number already exists in the database, then the record will be updated. If a record with specified EFFDT and sequence number does not exist in the database, then a new record will be inserted into the database.
For example, if there are three records in the database containing the following dates:
Row #
EFFDT
Sequence Number (EFFSEQ)
COMPRATE
0
06/28/2005
0
15
1
06/17/2005
1
22
2
06/17/2005
0
25
The input parameters are {6/25/2005, 0}. The copy of row 1 will be created and the properties will be updated based on input values. The result of Update operation will be:
Row #
EFFDT
Sequence Number (EFFSEQ)
COMPRATE
0
06/28/2005
0
15
1
06/25/2005
0
22
2
06/17/2005
1
22
3
06/17/2005
0
25
Note:
If a child collection's key set consists of EFFDT along with other properties, only the EFFDT value will be used as a key to access the record for updates.