Interface IContractBatchRatingGroupAssignmentPolicy
Java interface describes the Contract Batch Rating Group Assignment Policy Framework.
Implementation in Your Client Application
Customizing
You can customize your own batch rating group assignment policy by implementing this interface in a Java class plugged to the SAP CC system.
You design and implement the getBatchRatingGroupAssignment(..) method.
This method is
automatically called by the SAP CC system during the creation of provider contracts in master data (see charging contract)
during the provisioning operations via the Web Services technical interface.
System Configuration
When you develop a Java class implementing this Java interface,
you must configure the SAP CC system by specifying the name of your own Java class in the
BATCH_RATING_GROUP_ASSIGNMENT_POLICY_CLASS system parameter.
You must deploy your customized Java class in the production system landscape. It must be in the classpath of the SAP CC system.
Note
Consult the SAP CC System Parameter Reference for more information about the BATCH_RATING_GROUP_ASSIGNMENT_POLICY_CLASS system parameter.-
Method Summary
Modifier and TypeMethodDescriptiongetBatchRatingGroupAssignment(ChargingContractRevisionModel chargingContract, IBatchRatingGroupsAccessor batchRatingGroupsAccessor) Invoked to retrieve thebatch rating group identifierof a newcontract.
-
Method Details
-
getBatchRatingGroupAssignment
BatchRatingGroupIdentifier getBatchRatingGroupAssignment(ChargingContractRevisionModel chargingContract, IBatchRatingGroupsAccessor batchRatingGroupsAccessor) throws BatchRatingGroupIdentifierException Invoked to retrieve thebatch rating group identifierof a newcontract.- Parameters:
chargingContract- Thecharging contractto createbatchRatingGroupsAccessor- Thebatch rating groups accessorused to get information about the batch rating groups- Returns:
- The
batch rating group identifierof the contract to create. Cannot returnnull, otherwise if there is nobatch rating group identifierfor the new contract returned a BatchRatingGroupException exception is returned. - Throws:
BatchRatingGroupIdentifierException- if an error occurs during the assignment of abatch rating group identifierfor the specifiedcharging contract
-