Progress
AppBuilder
Developer’s Guide
Creating a Document-routing Package
If your customer’s business practices allow, you can create a system that processes incoming documents in batch mode, without human intervention.
To do this, you would create separate containers to perform the document routing and the document handling. At run time, you start the routing package in batch mode and allow it to call the document-handling packages as documents arrive for processing. For information about creating document-handling packages, see the "Creating a Document-handling Package" section.
This example assumes that you will use the invisible Simple SmartContainer as the organizer. If you require a user interface, use the SmartWindow instead.
To create a document-routing package, follow these steps:
- Choose File
New and select the Simple SmartContainer. A workspace of that type appears:
![]()
- Place a SmartConsumer object and configure it to monitor the appropriate inbound Queue or Topic. See the "Creating and Placing a SmartConsumer Instance" and "Configuring a SmartConsumer Instance" sections for details.
- Click the SmartRouter tool icon:
![]()
- Place the instance in the workspace. An Advisor will appear and offer to create a SmartLink of type ROUTER from the SmartConsumer. Accept the offer.
- Click the menu button and choose Instance Properties. The dialog box opens:
![]()
- Click the Add button. This makes the External Reference field editable. Enter the URL of the schema file for some document type this Router must recognize. Note that the filename of the schema must be the same locally as it appears in the URL, though the paths to them will probably be very different.
- Click the corresponding Internal Reference field to activate it. Enter the PROPATH-relative path to the corresponding map file. Thus, if the full path is
d:\abc\def\mapfile.xmc
and PROPATH containsd:\abc
, you should enterdef\mapfile.xmc
here.- If you are satisfied with this entry, click the Save button to write the entry out to disk. Otherwise, click Reset to clear the fields, or Cancel to clear the fields and leave edit mode.
- Repeat Step 6 through Step 8 until you have created entries for each document type this Router instance must recognize. Click OK to close this dialog box. Now, when run, this Router will be able to recognize and appropriately distribute those document types.
- Save the package using a distinctive filename. Note that filenames for Simple SmartContainers conventionally begin with
c
.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |