Running the PrintAndMailJob sample workflow
You can review the sample workflow and run a sample job to understand how the feature works.
The sample files provided for use with this workflow are summarized in the table below.
Filename | File Location | Specified in property | Used by Step | Description |
---|---|---|---|---|
PostalPDFReplaceAddr.ctl |
C:\aiw\aiw1\control_files\postal |
Build PDF control file 1 |
BuildPDFFromDocuments |
Builds a PDF file with the PostNet barcode replaced by a Datamatrix barcode that identifies the job number and document number. Updates addresses as indicated by the postal software. |
PostalPDF.ctl |
C:\aiw\aiw1\control_files\postal |
Identify PDF control file |
IdentifyPDFDocuments |
Identifies the page groups in the sample PDF print file and defines the data to be extracted in document properties. |
postal_doc_print_only.csv |
C:\aiw\aiw1\control_files\postal |
Property conditions file |
SetDocPropsFromConditions |
Sets the Postal code property based on the Address processing return code from the postal software so that documents that have replacement addresses available can be identified when the print file is generated. |
Postal.pdf |
C:\aiw\aiw1\testfiles |
Job name |
The sample PDF print file. |
|
Postal.afp |
C:\aiw\aiw1\testfiles |
Job name |
The sample AFP print file. |
|
jobid.print_and_mail.csv |
C:\aiw\aiw1\testfiles |
Retrieval pattern |
RunHotFolderAppplication |
A sample external results file from MailPreparer based on processing of the sample print file. Can be used to move the sample job through the RunHotFolderApplication step to simulate the response from postal software. |
PostalAFPReplaceAddr.cfg |
C:\aiw\aiw1\control_files\postal |
Enhance AFP control file |
BuildAFPFromDocuments |
Builds an AFP file with the PostNet barcode replaced by a Datamatrix barcode that identifies the job number and document number. Updates addresses as indicated by the postal software. |
PostalAFP.ctl |
C:\aiw\aiw1\control_files\postal |
Visual Workbench control file |
IdentifyDocuments |
Identifies the page groups in the sample AFP print file and links the index tags in the AFP file with the corresponding document properties. |
To run the sample workflow:
- Log in to RICOH ProcessDirector.
- Copy the PostalFolder input
device to create a new hot folder input device.
- Click the Administrator tab.
- In the left pane, click Devices → Input Devices.
- Select the PostalFolder input device and click Actions → Copy.
- In the Input device name property, type a name for the hot folder.
- In the Child workflow property, select PrintAndMailJob.
- In the Folder Location property, update the folder location to a unique filepath.
- In the Staging Location property, update the staging location to a unique filepath.
- Click OK.
- In the Printers portlet, select the Sample printer and click .
- In the Input Devices portlet on the Main page, select the newly created hot folder and click Actions → Enable and Connect.
- Copy the sample file into the hot folder you created in Step . Navigate to
C:\aiw\aiw1\testfiles
, and copyPostal.pdf
into the directory that you specified in the Folder location property of the input device.The system starts processing the job through the PrintAndMailJob workflow. When the job reaches the RunHotFolderApplication step, it waits for results to come from the postal software. The job state changes to Waiting.
- Navigate to
C:\aiw\aiw1\testfiles
. - Copy
jobid.print_and_mail.csv
intoC:\aiw\aiw1\postal\receive
. - Navigate to
C:\aiw\aiw1\postal\receive
and rename jobid.print_and_mail.csv, replacingjobid
with the value of the Job Number property for the sample job. For example, if the Job number for the sample job is 10000067, rename the file to10000067.print_and_mail.csv
.The RunHotFolderApplication step picks up the file and the job continues to process through the remaining steps in the workflow. - When the job finishes processing, the State column of the Jobs table changes to Complete.
- The job is retained for three days and is deleted.Note: The sample workflow uses a sample printer that does not print any data. However, the job file can be viewed as it moves through the workflow, so the barcode updates can be observed. For example, you can view the job while it is waiting in the RunHotFolderApplication step to see the PostNet barcode, then view it in the RetainCompletedJob step to see the Datamatrix barcode.