public interface ITransactionProcessor
Java interface describes the Transaction Integration Framework (TIF).
You can customize your own transaction processor by implementing this interface
and developing the clear(..) method.
The following methods are automatically called by the SAP CC system when transactions are delivered.
At startup, the SAP CC system will instantiate a true TransactionProcessor
which implements this Java interface.
Implement the handling of the possible exceptions detailled in TransactionProcessorFailureException.
If you develop a transaction processor (which implements
this interface), you must set up the SAP CC system by specifying the name of the transaction processor in the TRANSAC_PROC_CLASS system parameter.
Consult the SAP CC System Parameter Reference
and the SAP CC Implementation and Integration Guide for more information.
TransactionProcessorFailureException| Modifier and Type | Method and Description |
|---|---|
void |
clear(ChargedTransactionSet ts)
Invoked for each (transient)
set of charged transactions generated by the SAP CC system during the charging process;
The method is responsible for clearing/managing this charged transaction set. |
java.util.List<java.lang.String> |
getAllProcessorsIDs()
Returns the IDs of all the possible underlying processors including
this, as returned by the getProcessorID() method;
Your implementation development must ensure that this method is recursively called
to return the identifiers of all possibly underlying processors
used when using this processor. |
java.lang.String |
getProcessorID()
Returns the ID of the processor.
|
void |
initialize(com.highdeal.parameter.IParameterValueProvider parametersManager)
Invoked at startup of the SAP CC system to initialize the transaction processor.
|
void |
reClear(ChargedTransactionSet cts)
Invoked for each (transient)
set of charged transactions generated by the SAP CC system;
The method is responsible for reclearing/managing this charged transaction set. |
void |
shutdown()
Invoked when a rater instance of the SAP CC system shuts down; It is the opportunity
for your customized transaction processor to perform some cleaning before the SAP CC system
shuts down.
|
void initialize(com.highdeal.parameter.IParameterValueProvider parametersManager)
throws TransactionProcessorFailureException
parametersManager - The list of parameters used for initializing the customized transaction processorTransactionProcessorFailureExceptionjava.lang.String getProcessorID()
throws TransactionProcessorFailureException
TransactionProcessorFailureExceptionjava.util.List<java.lang.String> getAllProcessorsIDs()
throws TransactionProcessorFailureException
this, as returned by the getProcessorID() method;
Your implementation development must ensure that this method is recursively called
to return the identifiers of all possibly underlying processors
used when using this processor.TransactionProcessorFailureExceptionvoid clear(ChargedTransactionSet ts) throws TransactionProcessorFailureException
set of charged transactions generated by the SAP CC system during the charging process;
The method is responsible for clearing/managing this charged transaction set.ts - The set of charged transactions to be cleared in an external billing and invoicing systemTransactionProcessorFailureExceptionvoid reClear(ChargedTransactionSet cts) throws TransactionProcessorFailureException
set of charged transactions generated by the SAP CC system;
The method is responsible for reclearing/managing this charged transaction set.cts - The set of charged transactions to be cleared againTransactionProcessorFailureExceptionvoid shutdown()
throws TransactionProcessorFailureException