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.
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 Summary
Modifier and TypeMethodDescriptionvoidaddLifecycleState(Integer state, String stateName) Add the Lifecycle state mapper configuration.getLifecycleState(String stateName) Get the state associated with the name.getLifecycleStateName(Integer state) Get the state name associated with the state ID.
-
Method Details
-
addLifecycleState
Add the Lifecycle state mapper configuration.- Parameters:
state- lifecycle state IDstateName- lifecycle state name
-
getLifecycleState
Get the state associated with the name.- Parameters:
stateName- Name of lifecycle state- Returns:
- state ID
-
getLifecycleStateName
Get the state name associated with the state ID.- Parameters:
state- lifecycle state id- Returns:
- state Name of lifecycle state
-