Class FileEventActivitySource

All Implemented Interfaces:
ActivityEventSource<FileEvent>, EventSource<FileEvent>, PollingFileSource, PollingSource<FileEvent>, Runnable

public class FileEventActivitySource extends FileEventSource implements ActivityEventSource<FileEvent>
A file event source that takes its configuration from an activity configuration provided from a process step. This allows to have activities that wait for an event to occur.
  • Constructor Details

  • Method Details

    • setConfiguration

      public void setConfiguration(Configuration conf, boolean completed) throws ConfigurationException
      Sets the internal fields according to the values of the designated configuration. Note that this method is called from the constructor and therefore this object may not be fully initialised! Sets the configuration by retrieving the session context from it and setting the fields according to the session context. This incorporates overwriting the existing configuration with the values from the activity configuration.
      Afterwards parameter references in the attribute values will be replaced with the data context.
      Overrides:
      setConfiguration in class FileEventSource
      Parameters:
      conf - The configuration from which to get the configuration values.
      completed - Whether the configuration is complete after this setting and therefore the values should be verified.
      Throws:
      ConfigurationException - If there are problems with the configuration, for instance the configuration does not provide required values, a ConfigurationException may be thrown.