Class DatevRefAdapter

java.lang.Object
org.imixs.workflow.datev.export.DatevRefAdapter
All Implemented Interfaces:
org.imixs.workflow.Adapter, org.imixs.workflow.SignalAdapter

public class DatevRefAdapter extends Object implements 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
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.imixs.workflow.ItemCollection
    execute(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 ItemCollectons
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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:
      execute in interface org.imixs.workflow.Adapter
      Throws:
      org.imixs.workflow.exceptions.PluginException
      org.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