Package org.imixs.workflow.datev.imports
Class DatevImportScheduler
java.lang.Object
org.imixs.workflow.datev.imports.DatevImportScheduler
- All Implemented Interfaces:
org.imixs.workflow.engine.scheduler.Scheduler
public class DatevImportScheduler
extends Object
implements org.imixs.workflow.engine.scheduler.Scheduler
The DatevImportScheduler implementation imports workflow data (e.g. invoices)
from a DATEV csv file.
The class implements the interface _org.imixs.workflow.engine.scheduler.Scheduler_ and can be used in combination with the Imxis-Workflow Scheduler Service.
- Author:
- rsoika
- See Also:
-
SchedulerService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intFields inherited from interface org.imixs.workflow.engine.scheduler.Scheduler
ITEM_ERRORMESSAGE, ITEM_LOGMESSAGE, ITEM_SCHEDULER_CLASS, ITEM_SCHEDULER_DEFINITION, ITEM_SCHEDULER_ENABLED, ITEM_SCHEDULER_NAME, ITEM_SCHEDULER_STATUS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocessInvoices(org.imixs.workflow.ItemCollection datevExport, List<org.imixs.workflow.ItemCollection> invoices, org.imixs.workflow.ItemCollection event, org.imixs.workflow.ItemCollection configuration) This method expects a list of Subprocess definitions.org.imixs.workflow.ItemCollectionrun(org.imixs.workflow.ItemCollection configuration) This is the method which processes the timeout event depending on the running timer settings.
-
Field Details
-
MAX_COUNT
public static final int MAX_COUNT- See Also:
-
EVENT_START
public static final int EVENT_START- See Also:
-
EVENT_SUCCESS
public static final int EVENT_SUCCESS- See Also:
-
EVENT_FAILED
public static final int EVENT_FAILED- See Also:
-
INVOICE_UPDATE
- See Also:
-
ITEM_MODEL_VERSION
- See Also:
-
ITEM_INITIAL_TASK
- See Also:
-
LINK_PROPERTY
- See Also:
-
-
Constructor Details
-
DatevImportScheduler
public DatevImportScheduler()
-
-
Method Details
-
run
public org.imixs.workflow.ItemCollection run(org.imixs.workflow.ItemCollection configuration) throws org.imixs.workflow.engine.scheduler.SchedulerException This is the method which processes the timeout event depending on the running timer settings.- Specified by:
runin interfaceorg.imixs.workflow.engine.scheduler.Scheduler- Parameters:
timer-- Throws:
org.imixs.workflow.exceptions.QueryExceptionorg.imixs.workflow.engine.scheduler.SchedulerException
-
processInvoices
protected void processInvoices(org.imixs.workflow.ItemCollection datevExport, List<org.imixs.workflow.ItemCollection> invoices, org.imixs.workflow.ItemCollection event, org.imixs.workflow.ItemCollection configuration) throws org.imixs.workflow.exceptions.AccessDeniedException, org.imixs.workflow.exceptions.ProcessingErrorException, org.imixs.workflow.exceptions.PluginException, org.imixs.workflow.exceptions.ModelException This method expects a list of Subprocess definitions. The method updates and processes each existing invoice.The definition is expected in the following format (were regular expressions are allowed)
<item name="invoice_update"> <modelversion>1.0.0</modelversion> <task>100</task> <event>20</event> </item>- Parameters:
datevExport- - datev export workiteminvoices- - list of invoicesevent- - current datev export event containing the invoice_update definition.- Throws:
org.imixs.workflow.exceptions.AccessDeniedExceptionorg.imixs.workflow.exceptions.ProcessingErrorExceptionorg.imixs.workflow.exceptions.PluginExceptionorg.imixs.workflow.exceptions.ModelException- See Also:
-
org.imixs.workflow.engine.plugins.SplitAndJoinPlugin.java
-