Welcome Guest! Log in
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…


When connecting to an FTP server, it can be useful to execute distinct branches of a process, depending on how many files were fetched.

This can be done very simply, using an Execution Condition after the Get FTP action:

 

 598 getftp result

 

Explanation:

  • Once the FtpGet Action is executed, its variable "FILE_NB" contains the number of files retrieved.
  • The links to the next actions have an Execution Condition, based on this variable: ${FtpGet/FILE_NB}$
  • Make sure that your Execution Condition refers to the appropriate variable path, matching your FtpGet action's name, for example ${MyFtpAction/FILE_NB}$

Articles

Suggest a new Article!