Problem With PreActive LifeCycleState Reading In ECE PreRating Extension

(Doc ID 2417235.1)

Last updated on JULY 06, 2018

Applies to:

Oracle Communications BRM - Elastic Charging Engine - Version 11.3.0.3.0 and later
Information in this document applies to any platform.

Symptoms


Customer expected to catch PreActive state for first Initial request for account in PreActive state,but when Customer call this method the state has been already changed to Active.

The issue can be reproduced at will with the following steps:

1.Customer have an account in ECE configured in PreActive state,
2.then I start traffic and this account change to Active (This is our main functionality and works fine).
 

In ECE PreRating extension we read LifeCycleState value for initial request using a method: 

  ExtensionProduct extensionProduct = extensionContext.getProduct();
  if (extensionProduct != null) {
  if(extensionProduct.getLifeCycleStateName() != null) {
  extensionContext.getLogger().debug("PRODUCT_LIFECYCLE_STATE_BEFORE = " + String.valueOf(extensionProduct.getLifeCycleState()));
  ExtensionCache.setStatusBeforeEvent(extensionContext, extensionProduct.getLifeCycleState());
  }
  }

Below are Customer use-case

Their client requires receiving in CCA Error-Message = 10,
If the account was in the PreActive state on start the Gy request (check value as fast ass possible in Extension) and the state has been changed
during handling this request into Active by ECE,so in PostCharging they can one more time check state and then it should has "Active" value,
So in one transaction (one CCR with one CCA) they have to catch in Extensions
PreActive value on start and Active value after charge.
------------------



Cause

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