handleChange DTO Incorrectly Contains The New DTO For Entity Servicepointmeterhistory in CCB v2.1.0

(Doc ID 560827.1)

Last updated on OCTOBER 18, 2016

Applies to:

Oracle Utilities Customer Care and Billing - Version: 2.1.0 to 2.3.0 - Release: 2.1 to 2.3
Oracle Utilities Framework - Version: 2.1.0 and later    [Release: 2.1 and later]
Information in this document applies to any platform.


On ServicePointMeterHistory Change Handler:

The handleChange's 2nd parameter - DataTransferObject contains the new DTO which is wrong. It
should contain the old DTO object to be able to compare it with the new entity which is from the
1st parameter.

I tried displaying the 2 parameter entities and they both have the same value.

The issue can be reproduced at will with the following steps:
1. Using the sample code below, display the entity of the parameters on the ServicePointMeterHistory Change Handler to see if the BusinessEntity contains the changedEntity and the DataTransferObject contains the old DTO.

Sample of Code:
public void handleChange(BusinessEntity changedBusinessEntity, DataTransferObject oldDTO) {
logger.info("enter handleChange");

spMeterHist = (ServicePointMeterHistory) changedBusinessEntity;
logger.info("new mtr"+spMeterHist.getMeterConfiguration());

ServicePointMeterHistory spMeterHistOld = (ServicePointMeterHistory) oldDTO.getEntity();
logger.info("old mtr"+spMeterHistOld.getMeterConfiguration());



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms