How to trigger a pattern multiple times based on a "delimited text" input

dreinhardt
Kilo Patron

Hello ITOM experts,

 

we've successfully build a pattern and with a single input the pattern works quit well.

In a real world scenario we've the following situation where we would like to use our pattern and call them multiple times based on the input.

 

The input is a Windows environmental variable with an unknown amount of file paths.

$PATH = c:\path1\folder3;c:\path3\folder;d:\folder4

 

I'm looking for some guidance/advice to achieve the following as part of the CI discovery process

  • Read $PATH variable and the amount of delimited path values
  • Execute our pattern n-times with value from $PATH[n]
$PATH = c:\path1\folder3;c:\path3\folder;d:\folder4
-> 3 file paths delimited by ";" --> 3 iterations

Call 1: Pattern with input "c:\path1\folder3"
Call 2: Pattern with input "c:\path3\folder"
Call 3: Pattern with input "d:\folder4"

 

Thanks and Best, Dennis

 

Should my response prove helpful, please consider marking it as the Accepted Solution/Helpful to assist closing this thread.
0 REPLIES 0