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: Do-While Loop

Example: Do-While Loop

In the example below, the Do While Loop contains a task that gets a file count on an FTP server. It will continue looping until the file count is equal to 4.
  1. Create the Do-While Loop:
    1. From within the Project Designer page, expand the Loops folder in the Component Library, and then drag the Do-While task to the Project Outline.
    2. Specify the Condition value for the While Loop.
  2. Create the FTP process to retrieve the file count:
    1. From within the Project Designer page, expand the FTP folder in the Component Library, and then drag the FTP task to the Project Outline.
    2. On the FTP Task page, specify the FTP Server.
  3. Create the File List variable:
    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. In the Create File List page, type in the name of the variable to store the file count.
  4. Add a File Set to specify the folder (on the FTP server), in which to check for the files:
    1. Click the
      Add
      button in the sub-menu and select the Add a File Set menu item.
    2. On the FTP File Set page, specify the Base Directory where the files are located.
  5. Create a Delay Task to wait before rechecking the availability of the files:
    1. From within the Project Designer page, expand the Loops folder in the Component Library, and then drag the Delay task to the Project Outline.
    2. On the
      Basic
      tab, set the duration and the time units.
    3. Click the Control tab to set the condition so the Delay Task only executes if needed. In this example, the Delay Task will only execute if there are not 4 files in the specified location. If the condition is met, then the Loop will continue with the remaining Tasks.
  6. Create one or more tasks (after the Delay task) to process the files when the count is satisfied. For instance, you could add a task to get the files from the FTP server and other tasks to import or translate those files.
  7. Click Save.

0 COMMENTS

We’d like to hear from you!