Table of Contents

Search

  1. Preface
  2. Informatica Managed File Transfer Welcome Overview
  3. Dashboard
  4. Resources
  5. Workflows
  6. Task Reference
  7. Services Overview
  8. Users
  9. Logs and Reports
  10. Encryption
  11. System
  12. Appendix
  13. Glossary Terms

Example: Exit Loop

Example: Exit Loop

The Payroll department sends biweekly statements to their insurance and employee investment trading partners. The department prefers to send statements in batches of at least 10 files. If less than 10 files are found in the File Set, the loop is exited and no file processing occurs.
  1. Create a File List:
    1. From within the Project Designer page, expand the File System folder in the Component Library, and then drag the Create File List task to the Project Outline.
    2. On the Create File List page, specify the File List Variable.
    3. Specify a Variable for the Number of Files Found.
      Specify the File Set that contains the files to process.
    4. Click the
      Add
      button in the page toolbar and select the File Set menu item.
    5. In the File Set page, type the complete directory path to the Base Directory that contains the files or click the icon to browse for the directory.
  2. Create the For-Each Loop:
    1. From within the Project Designer page, expand the Loops folder in the Component Library, and then drag the For-Each task to the Project Outline.
    2. Specify the Items Variable and the Current Item Variable for the For Each Loop.
  3. Create the Exit Loop:
    1. On the For-Each Loop page, click the
      Add
      button in the sub-menu and select the Add Exit Loop menu item.
    2. On the Exit Loop page, specify a Condition. If the Condition is met, the loop is exited and no other tasks within the loop are performed.
  4. Add additional Tasks (after the Exit Loop ) to continue to process the files if the Exit Loop Condition is not met. For instance, if there are less than 10 files in the File Set.
  5. Click Save.

0 COMMENTS

We’d like to hear from you!