Package org.imixs.archive.documents
Class EInvoiceAutoAdapter
java.lang.Object
org.imixs.archive.documents.EInvoiceAdapter
org.imixs.archive.documents.EInvoiceAutoAdapter
- All Implemented Interfaces:
org.imixs.workflow.Adapter,org.imixs.workflow.SignalAdapter
The EInvoiceAutoAdapter can detect and extract content from e-invoice
documents
in different formats. This Adapter class extends the
EInvoiceAdapter
and resolves pre defined Items according to the Factur-X/ZUGFeRD 2.0
standard.- Version:
- 2.0
- Author:
- rsoika
-
Field Summary
Fields inherited from class org.imixs.archive.documents.EInvoiceAdapter
CONFIG_ERROR, E_INVOICE_ENTITY, FILE_ATTRIBUTE_EINVOICE_TYPE, FILE_ATTRIBUTE_XML, NAMESPACES, PARSING_EXCEPTION, PLUGIN_ERROR, PROCESSING_ERROR, REPORT_ERROR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.imixs.workflow.ItemCollectionexecute(org.imixs.workflow.ItemCollection workitem, org.imixs.workflow.ItemCollection event) Executes the e-invoice detection process on the given workitem.Methods inherited from class org.imixs.archive.documents.EInvoiceAdapter
createXMLDoc, detectEInvoice, detectEInvoiceType, readItem, readXMLContent
-
Constructor Details
-
EInvoiceAutoAdapter
public EInvoiceAutoAdapter()
-
-
Method Details
-
execute
public org.imixs.workflow.ItemCollection execute(org.imixs.workflow.ItemCollection workitem, org.imixs.workflow.ItemCollection event) throws org.imixs.workflow.exceptions.AdapterException, org.imixs.workflow.exceptions.PluginException Executes the e-invoice detection process on the given workitem. It attempts to detect the e-invoice format from attached files and updates the workitem with the result.- Specified by:
executein interfaceorg.imixs.workflow.Adapter- Overrides:
executein classEInvoiceAdapter- Parameters:
workitem- The workitem to processevent- The event triggering this execution- Returns:
- The updated workitem
- Throws:
org.imixs.workflow.exceptions.AdapterException- If there's an error in the adapter executionorg.imixs.workflow.exceptions.PluginException- If there's an error in plugin processing
-