The InvoiceManager class executes pipelines whenever an invoice is created, loaded, updated, or removed. Each pipeline chain receives an object of type InvoicePipelineArgs as a parameter. InvoicePipelineArgs provides getInvoice() and getInvoiceManager() methods. You can also subclass InvoicePipelineArgs and alter the pipeline’s expected type if you need additional methods.

The chains are defined in the PipelineManager at /atg/commerce/invoice/pipeline/InvoicePipelineManager. Out of the box, the only thing they do is send the messages described in the next section, but you can add links if you want to associate other actions with invoice creation and modification.

Pipeline Chain

Description

addInvoice

Sends a JMS message indicating that the invoice has been added to the repository.

updateInvoice

Sends a JMS message indicating that the invoice has been updated.

removeInvoice

Sends a JMS message indicating that the invoice has been removed from the repository.

 
loading table of contents...