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
Fields Modifier and Type Field Description static intEVENT_FAILEDstatic intEVENT_STARTstatic intEVENT_SUCCESSstatic StringINVOICE_UPDATEstatic StringITEM_INITIAL_TASKstatic StringITEM_MODEL_VERSIONstatic StringLINK_PROPERTYstatic intMAX_COUNT
-
Constructor Summary
Constructors Constructor Description DatevImportScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
MAX_COUNT
public static final int MAX_COUNT
- See Also:
- Constant Field Values
-
EVENT_START
public static final int EVENT_START
- See Also:
- Constant Field Values
-
EVENT_SUCCESS
public static final int EVENT_SUCCESS
- See Also:
- Constant Field Values
-
EVENT_FAILED
public static final int EVENT_FAILED
- See Also:
- Constant Field Values
-
INVOICE_UPDATE
public static final String INVOICE_UPDATE
- See Also:
- Constant Field Values
-
ITEM_MODEL_VERSION
public static final String ITEM_MODEL_VERSION
- See Also:
- Constant Field Values
-
ITEM_INITIAL_TASK
public static final String ITEM_INITIAL_TASK
- See Also:
- Constant Field Values
-
LINK_PROPERTY
public static final String LINK_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
run
public org.imixs.workflow.ItemCollection run(org.imixs.workflow.ItemCollection configuration) throws org.imixs.workflow.engine.scheduler.SchedulerExceptionThis 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.ModelExceptionThis 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
-
-