View source | View content page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Show collection (0 pages)
Collections help

Search

Projects:Funds Transfer Hook

This project adds a new hook at the end of the Funds Transfer process

Implementation example

In this example we log information about all transactions created by the Funds Transfer process.

import java.util.List;
 
import org.apache.log4j.Logger;
import org.openbravo.advpaymentmngt.FundsTransferPostProcessHook;
import org.openbravo.model.financialmgmt.payment.FIN_FinaccTransaction;
 
public class FundsTransferExampleHook implements FundsTransferPostProcessHook {
  static Logger log4j = Logger.getLogger(FundsTransferExampleHook.class);
 
  @Override
  public void exec(List<FIN_FinaccTransaction> transactions) {
    // log all transactions
    for (FIN_FinaccTransaction trans : transactions) {
      log4j.info("Transaction created by Funds Transfer: " + trans.getIdentifier());
    }
  }
}

Retrieved from "http://wiki.openbravo.com/wiki/Projects:Funds_Transfer_Hook"

This page has been accessed 241 times. This page was last modified on 17 November 2016, at 13:29. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.