Package org.imixs.workflow.importer
Class DocumentImportScheduler
java.lang.Object
org.imixs.workflow.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
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected jakarta.enterprise.event.Event<DocumentImportEvent>Fields 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 TypeMethodDescriptionorg.imixs.workflow.ItemCollectionrun(org.imixs.workflow.ItemCollection configuration) This method iterates over all source definitions defined by the scheduler configuration.
-
Field Details
-
DOCUMENT_IMPORTER_NAME
- See Also:
-
importEvents
-
-
Constructor Details
-
DocumentImportScheduler
public DocumentImportScheduler()
-
-
Method Details
-
run
public org.imixs.workflow.ItemCollection run(org.imixs.workflow.ItemCollection configuration) throws org.imixs.workflow.engine.scheduler.SchedulerException This 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
-