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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    protected 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.imixs.workflow.ItemCollection
    run(org.imixs.workflow.ItemCollection configuration)
    This method iterates over all source definitions defined by the scheduler configuration.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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:
      run in interface org.imixs.workflow.engine.scheduler.Scheduler
      Parameters:
      timer -
      Throws:
      org.imixs.workflow.engine.scheduler.SchedulerException
      org.imixs.workflow.exceptions.QueryException