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 ein workitem mit einem DATEV Export. Existiert aktuell kein offener DATEV Export für die Buchungsperiode, erzeugt der Adapter automatisch eine neue Prozessinstanz.

Wurde der Beleg bereits einem DATEV Export zugeordnet passiert nichts.

Existieren innerhalb der Rechnung noch keien Detailbuchugnssätze (ChildItems) dann erzeugt der Adapter einen Default Buchungssatz .

Version:
1.0
Author:
rsoika
  • 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 workitem.
    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
  • 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 workitem.
      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