transformations:iterateprogram
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
transformations:iterateprogram [2016/06/12 12:52] – created dmitry | transformations:iterateprogram [2021/06/21 02:01] – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Iterate external program | + | {{ transformations: |
+ | ====== | ||
+ | Category: Workflow / External\\ | ||
- | Run specified external application once for every line of table. | + | \\ |
+ | =====Description===== | ||
+ | This action runs the specified external application once for every line in the table. | ||
- | The transformation | + | The action |
- | **Use cases** | + | \\ |
- | * Run external applications (e.g. after a file is generated by EasyMorph) against a list of parameters generated in EasyMorph | + | =====Use cases===== |
- | * Execute Windows shell commands (copy, del, ren, etc.) for a list of files generated in EasyMorph (e.g. using [[transformations: | + | * Run external applications (e.g. after a file is generated by EasyMorph) against a list of parameters generated in EasyMorph. |
- | * Run another EasyMorph project in order generate different reports for each line of the table (e.g. one report per country) | + | * Execute Windows shell commands (copy, del, ren, etc.) for a list of files generated in EasyMorph (e.g. using [[transformations: |
+ | * Run another EasyMorph project in order to generate different reports for each line of the table (e.g. one report per country). | ||
+ | \\ | ||
+ | =====Action settings===== | ||
+ | ^ Setting | ||
+ | |Application< | ||
+ | |Working directory (optional)< | ||
+ | |Arguments|Enter the values, filenames, commands, etc. passed to the application as a calculated expression.| | ||
+ | |Halt if exit code is not 0|When this is checked, the workflow will stop and display an error if the program terminates with an error.| | ||
+ | < | ||
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | |||
+ | ====Parameter substitution==== | ||
+ | The action uses a calculated expression to create its command line. It is possible to insert [[: | ||
+ | |||
+ | “copy /Y “ & {SourceFolder} & [Filename] & “ “ & {DestinationFolder} & [Filename] | ||
+ | |||
+ | Note that // | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | **EXAMPLE: | ||
+ | |||
+ | **Action parameters** | ||
+ | > Application is left blank (command will run as a Windows shell command) | ||
+ | > Working directory is left blank (no folder assignment is necessary for this command) | ||
+ | > Calculated argument '' | ||
+ | > Halt if exit code is not 0 is checked (the workflow will stop with an error the " | ||
+ | |||
+ | {{ https:// | ||
+ | |||
+ | \\ | ||
+ | =====See also===== | ||
+ | |||
+ | * [[transformations: | ||
+ | * [[https:// | ||
- | **See also** | ||
- | [[http:// |
transformations/iterateprogram.txt · Last modified: 2021/07/19 02:00 by craigt