Scenario 3 - Creating a Configuration of the File System Adapter in Sterling B2B Integrator
Before you can use the File System Adapter in a business process, create a configuration of the adapter in Sterling B2B Integrator. Use the following procedure to configure a File System Adapter:
Procedure
- Log in to Sterling B2B Integrator and navigate to Deployment > Services > Configuration.
- On the Services Configuration page, click Go! in the Create New Service pane.
- In the Service Type box, type File
System Adapter and click Next.
Field Value to Enter Description Name Type a unique name for the File System Adapter service configuration. Required. Description Type a meaningful description for the File System Adapter service configuration. Required. Collection folder Specify the collection folder you created above. The name of the folder or subfolder on the same computer where Application is installed and where it collects (or picks up) files as part of a business process. If the path of the folder is not included as part of the name, the folder is assumed to be in the Application working directory. Filename filter Specify the filter to match the file you created in the collection folder above. Collect only files that match a specified filter within the collection folder. Optional. Examples include:
- *.txt (collects only .txt files)
- *.dat (collects only .dat files)
- EDI.* (collects only files named EDI with any file extension)
- EDI.txt (collects only files named EDI with a file extension of
.txt)Note: If there are multiple files in the collection folder and you leave this field blank, one of the following occurs:
- If the adapter is configured to start a business process, it processes all files in the collection folder.
- If the adapter is within a business process, it collects only the first file in the folder.
Collect files from subfolders within and including the collection folder? Select No for this scenario so that the File System Adapter does not collect files from subfolders of the collection folder. Whether to scan for files in subfolders of the collection folder. Required. Valid values:
Yes—Collects files in the specified folder and all subfolders.
No—Collects files in the specified folder only.
User absolute file path name for the document name? Select No for this scenario so that the document name does not include the path name. Whether to keep the absolute path name of the files collected when assigning the document name. Required. Valid values:
Yes—The absolute file path name is kept with the document in the business process. Choose this value if your business process requires the path information to precede the file name.
No—Only the file name is kept with the document in the business process.
Start a business process once files are collected? Select No for this scenario. Since you use the File System Adapter within a business process, there is no need to start another business process.
Whether to start a business process using the File System adapter after files are collected. Required. Valid values:
Yes—Starts the business process specified from the business process drop-down list.
No—No business process will be started.
Extraction folder Select No for this scenario. The File System Adapter collects a file, but does not write (extract) a file in this scenario.
The name of the folder or subfolder on the same computer where Application is installed and where it installs (or writes) data from the primary document as part of a business process. If you do not include the file path for the folder as part of the name, the folder is assumed to be in the Application working directory. Required. - Click Finish to save the configuration.