Creating a workflow to store AFP jobs and documents in a repository
To store jobs and documents in a repository, you must create a workflow that includes
a step based on the StoreInRepository step template. You can also add StoreInRepository steps to your existing workflows. If you want the repository to hold documents and
document data, make sure to add the necessary document processing steps if they are
not already present.
- Click the Workflow tab.
- Right-click the RepositorySample workflow and select Copy.The RepositorySample workflow processes PDF jobs. To change the workflow to process AFP jobs, you must replace some of the steps in the workflow.
- Name the copy of the workflow, fill in or edit other values that you need, and click Continue.
- Right-click the If PDF connector and select Properties. Change the value of the Rule name property to If AFP. Change the value of the rule condition Value property to AFP. Click OK.
- Add a step based on the UseInlineFormDefinition step template at the start of the If AFP conditional processing branch, before the CountPages step.
- Replace the CountPages step in the Prepare phase with a step based on the EnableRepositioning step template.
- Replace the IdentifyPDFDocuments step with a step based on the IdentifyDocuments step template.
- Right-click the IdentifyDocuments step. Select Properties, and then click AFP. For the Visual Workbench control file property, type the path and file name of the control file that you created with Document Property Designer. Click OK.
- If your AFP print file is not already indexed, add a step based on the IndexAFP step template before the IdentifyDocuments step.This step shares the control file you specified for the IdentifyDocuments step. You do not need to specify the control file here.
- Replace the BuildPDFFromDocuments step with a step based on the BuildAFPFromDocuments step template.
- Right-click the BuildAFPFromDocuments step. Select Properties, and then click AFP. For the Enhance AFP control file property, type the path and file name of the control file that contains your document enhancements. Click OK.
- Replace the CountPages step in the Print phase with a step based on the EnableRepositioning step template.
- Optional: Right-click the RetainCompletedJobs step. Select Properties, and then click Job Defaults - General. Update the value of the Retention period property. Click OK.
- Right-click the StoreInRepository step, select Properties, and then click Repository:
- For the Repository property, select the repository that you want to store job and document data in.
- From the Available job properties to store list, select the job properties that you want to use to search for jobs and documents in the repository.
- From the Available document properties to store list, select the document properties that you want to use to search for documents in the repository.
- If you want to preserve the values of job properties for use when the job or its
documents are resubmitted to a workflow:
- Use a text editor to create an override properties file.
- Place the database name of each job property on a separate line.
- To add a comment, place it on a separate line that starts with a pound sign (#).
This example shows a file with three job properties (Customer name, Media required, and Duplex) and a comment:
Job.CustomerNameJob.MediaRequired# This is a comment.Job.Duplex
- Name the file, save it, and move it to a directory on the RICOH ProcessDirector primary computer. For example:
/aiw/aiw1/control_files/job_properties.txt
(Linux)C:\aiw\aiw1\control_files\job_properties.txt
(Windows)
- On the StoreInRepository step, enter the path and name of the file in the Path to override properties file property.
- If you are using an associated properties file, enter the path and name of the file in the Associated properties file property.
- If you want to store document data that is contained in a file but is not defined as a document property to RICOH ProcessDirector, enter the full path and name or the symbolic name of the file in the Document properties file property and make sure to select ALL in the Document properties to store list.
- Click OK.
- Note:
- Make sure that the StoreInRepository step is in the correct place in the workflow. Storing a file after steps that change the order of pages, such as ReverseOutputOrder, affects your ability to search using document properties in the viewer.
- Optional: If you want to store job files in the repository more than once, include additional StoreInRepository steps in the workflow.
- Save the workflow.
- To test the workflow:
- Create one or more input devices to point to the workflow.
- Enable the input devices.
- Submit your AFP print job to the input device.
- When the job finishes, look in the Archive to make sure that the right information was stored.
- Note:
- If a job is processed again and runs the StoreInRepository step more than once, two copies of the document or job are stored in the repository.