Interface LifecycleStateMapperMBean

All Known Implementing Classes:
LifecycleStateMapper

public interface LifecycleStateMapperMBean
This MBean will hold the configuration mapping for the lifecycle state ID to lifecycle state name of the product.
A state needs to be configured in the app configuration so that it can be used by Lifecycle management during the request processing.
A state can be used to make decision on allowing/rejecting a call or transitioning to a new state based on different usage request parameters.
Out of box configured state mapping are as below.
  • state 101 to stateName PREACTIVE
  • state 102 to stateName ACTIVE
  • state 103 to stateName RECHARGE_ONLY
  • state 104 to stateName CREDIT_EXPIRED
  • state 105 to stateName DORMANT
  • state 106 to stateName FRAUD_INVESTIGATED
  • state 107 to stateName SUSPENDED
  • state 108 to stateName CLOSED
  • state 10100 to stateName ACTIVE
  • state 10102 to stateName SUSPENDED
  • state 10103 to stateName CLOSED
  • Method Details

    • addLifecycleState

      void addLifecycleState(Integer state, String stateName)
      Add the Lifecycle state mapper configuration.
      Parameters:
      state - lifecycle state ID
      stateName - lifecycle state name
    • getLifecycleState

      Integer getLifecycleState(String stateName)
      Get the state associated with the name.
      Parameters:
      stateName - Name of lifecycle state
      Returns:
      state ID
    • getLifecycleStateName

      String getLifecycleStateName(Integer state)
      Get the state name associated with the state ID.
      Parameters:
      state - lifecycle state id
      Returns:
      state Name of lifecycle state