Package org.imixs.archive.importer
Class DocumentImportScheduler
- java.lang.Object
-
- org.imixs.archive.importer.DocumentImportScheduler
-
- All Implemented Interfaces:
org.imixs.workflow.engine.scheduler.Scheduler
public class DocumentImportScheduler extends Object implements org.imixs.workflow.engine.scheduler.Scheduler
The DocumentImportScheduler iterates over all source definition and sends a DocumentImportEvent to process the source by an external service implementation.- Author:
- rsoika
- See Also:
SchedulerService
-
-
Field Summary
Fields Modifier and Type Field Description static StringDOCUMENT_IMPORTER_NAMEprotected javax.enterprise.event.Event<DocumentImportEvent>importEvents
-
Constructor Summary
Constructors Constructor Description DocumentImportScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.imixs.workflow.ItemCollectionrun(org.imixs.workflow.ItemCollection configuration)This method iterates over all source definitions defined by the scheduler configuration.
-
-
-
Field Detail
-
DOCUMENT_IMPORTER_NAME
public static final String DOCUMENT_IMPORTER_NAME
- See Also:
- Constant Field Values
-
importEvents
@Inject protected javax.enterprise.event.Event<DocumentImportEvent> importEvents
-
-
Method Detail
-
run
public org.imixs.workflow.ItemCollection run(org.imixs.workflow.ItemCollection configuration) throws org.imixs.workflow.engine.scheduler.SchedulerExceptionThis method iterates over all source definitions defined by the scheduler configuration. For each source a DocumentImportEvent is send. An observer can process the source. If a event returns PROCESSING_RESULT_COMPLETED = 1 than no more events will be fired for this source.- Specified by:
runin interfaceorg.imixs.workflow.engine.scheduler.Scheduler- Parameters:
timer-- Throws:
org.imixs.workflow.engine.scheduler.SchedulerExceptionorg.imixs.workflow.exceptions.QueryException
-
-