Configure Sendback¶
This use case describes how to configure distribution via the Sendback channel. PLOSSYS Distribution Engine returns the distributed files directly to the client that started the job. It does not store them on the file system or send them by e-mail. Use this channel if an external system starts jobs via DPF REST Service and processes the results itself.
Prerequisites¶
- PLOSSYS Distribution Engine 2.2.0 or later.
- An external system starts the jobs via DPF REST Service.
Activate the Sendback Channel¶
To activate the Sendback channel, set the parameters as follows:
-
Set
DIST_CONFIGtoSENDBACK.PLOSSYS Distribution Engine then reads the
sendback.inifile. This file setsDistChannel_nas follows:DistChannel_1 = dpf4distribute.DistributeSendbackCaution - do not set
DistChannel_nin the jobSelect the channel only via
DIST_CONFIG. Never passDistChannel_nas a job parameter. -
Set
DIST_TYPEon the documents to return, refer to Configure Document Processing. ForZIPorMERGE, the Sendback channel returns the created file instead of the source documents. -
Optionally set
DIST_FILENAMEto name the returned file. WithoutDIST_FILENAME, PLOSSYS Distribution Engine uses the file name of the retrieved file.Caution - no directory path via DPF REST Service
DPF REST Service returns only the file name part of
DIST_FILENAME. It drops a directory path, for examplesubdir/insubdir/invoice.pdf. The file extension comes from the distributed file, not fromDIST_FILENAME.
Validate¶
-
Start a test job with
DIST_CONFIGset toSENDBACKand at least one file withDIST_TYPEset toNATIVEorPDF. -
Check that the client receives all files with
DIST_TYPENATIVEorPDF. Each file has the file name fromDIST_FILENAME, or the file name of the retrieved file ifDIST_FILENAMEis not set. -
In DPF Tracker, check the job log of the
sendbackworking unit. It contains one lineFile to transferfor each file.
Background Information¶
File Selection¶
The Sendback channel returns each file of the job that matches all of the following conditions:
IS_DIST_FILEis set toYin its RLI line. PLOSSYS Distribution Engine sets it during Preprocess based onDIST_TYPE.- The file has not been selected yet. If several RLI lines refer to the same file, the channel returns it once.
If no RLI line matches, the channel ends without error. The job does not wait for the client.
Timeout¶
The job waits until the client has fetched the files. If the client does not fetch them, PLOSSYS Distribution Engine cancels the job after 4 hours at the earliest.