Package org.imixs.workflow.datev.export
Class DatevRefAdapter
java.lang.Object
org.imixs.workflow.datev.export.DatevRefAdapter
- All Implemented Interfaces:
org.imixs.workflow.Adapter,org.imixs.workflow.SignalAdapter
Der DATEVRefAdapter verknüpft eine Rechnung mit einem DATEV Export zum
aktuellen Kreiditor und der Buchungsperiode. Existiert aktuell kein offener
DATEV Export für diesen Kreditor/Buchungsperiode, erzeugt der Adapter
automatisch eine neue Prozessinstanz.
Wurde die Rechnugn bereits einem DATEV Export zugeordnet passiert nichts.
Existieren innerhalb der Rechnung noch keien Detailbuchugnssätze (ChildItems) dann erzeugt der Adaper einen Default Buchungssatz .
- Version:
- 1.0
- Author:
- rsoika
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.imixs.workflow.ItemCollectionexecute(org.imixs.workflow.ItemCollection document, org.imixs.workflow.ItemCollection event) This method finds or create the Datev Export and adds a reference ($workitemref) to the current invoice.protected List<org.imixs.workflow.ItemCollection>explodeChildList(org.imixs.workflow.ItemCollection workitem) converts the Map List of a workitem into a List of ItemCollectonsprotected voidimplodeChildList(org.imixs.workflow.ItemCollection workitem, List<org.imixs.workflow.ItemCollection> childItems) Convert the List of ItemCollections back into a List of Map elements
-
Field Details
-
ERROR_MISSING_DATA
- See Also:
-
ERROR_CONFIG
- See Also:
-
-
Constructor Details
-
DatevRefAdapter
public DatevRefAdapter()
-
-
Method Details
-
execute
public org.imixs.workflow.ItemCollection execute(org.imixs.workflow.ItemCollection document, org.imixs.workflow.ItemCollection event) throws org.imixs.workflow.exceptions.AdapterException, org.imixs.workflow.exceptions.PluginException This method finds or create the Datev Export and adds a reference ($workitemref) to the current invoice.- Specified by:
executein interfaceorg.imixs.workflow.Adapter- Throws:
org.imixs.workflow.exceptions.PluginExceptionorg.imixs.workflow.exceptions.AdapterException
-
implodeChildList
protected void implodeChildList(org.imixs.workflow.ItemCollection workitem, List<org.imixs.workflow.ItemCollection> childItems) Convert the List of ItemCollections back into a List of Map elements- Parameters:
workitem-
-
explodeChildList
protected List<org.imixs.workflow.ItemCollection> explodeChildList(org.imixs.workflow.ItemCollection workitem) converts the Map List of a workitem into a List of ItemCollectons
-