Add a For-Each Action to Iterate Over Individual Files

The for-each action enables you to loop over individual files within the zip file and stage each file in Oracle Integration for transformation.

  1. On the canvas, click ActionsIntegration actions icon and drag and drop the For Each action (present under Collection) after the Download_Zip action.

    The Create Action dialog is displayed.

  2. Enter a name for the action, Iterate_Files_In_Zip.
  3. Provide an optional description.
  4. In the Repeating Element field, specify the element over which to iterate.

    For this example, the element over which to loop is ICSFile, which represents the individual files within the zip file downloaded in the previous action. Expand the Source tree to select this element. It is present under $Download_Zip > DownloadFileToICSResponse > DownloadResponse > ICSFiles > Load more. After you've selected the element, drag to the Repeating Element field to populate the field with this element.


    Description of oic3_iterate_files.png follows
    Description of the illustration oic3_iterate_files.png

  5. In the Current Element Name field, enter an alias for the current file of the iteration; for example, OneTextFile. You'll use this alias for processing individual files downstream.
  6. Click Create.