Implementing Pre- or Post-Processing of Scheduled Imports and Exports
Overview
Scheduled Imports provides the option to pre-process files before the files
are actually imported and Scheduled Exports provides the option to
post-process files after they have been exported. In both cases, the
actual processing is handled by a Java class that is an extension of the
BaseCustomProcessFile
class found in the
Services.jar
file (or in an application-specific JAR
file).
When a processing block is being configured within a Scheduled Import or
Scheduled Export, details on the function and configurable parameters for
the processing block are shown. The blocks are organized under Exports
(com.enterworks.services.exports.<class>
)
or Imports
(com.enterworks.services.imports.<class>
)
based on how they are predominately used, but some modules can be used for
either pre-processing or post-processing.
For a list of predefiend pre-processing and post-processing blocks, see Predefiend Pre-processing and Post-processing Blocks.
For instructions on creating a custom pre-processing or post-processing block, see Custom Pre-processing and Post-processing Blocks.
Configure a Scheduled Job to Use a Pre or Post-Processing Block
To configure a Scheduled Import or Export to use a pre/post-processing block:
- Open the Scheduled Import or Scheduled Export repository.
- Open the record for the Import or Export.
- Open the Import Details or Export Details tab, and open the Import Preprocess Options or Export PostProcess Options sub-tab.
- Set Preprocess File or Postprocess File to Yes.
- Enter the full class path for the processing block class and click the calculate button on the Pre-process Class or Post-process Class field.
- The define arguments window will open showing a description for what the block does along with what arguments can be set and the current values.
- The argument values can be changed and saved by clicking Update Attributes.