Changes

Activity:OpenExternal (Activity)

159 bytes added, 15:11, 25 November 2014
{{Attention|This activity does not automatically save changes. If you want to persist the newly created instance, you need i.e. a subsequent [[Activity SaveObject|SaveObject activity]]!}}
==Example: open an Excel document==
Show the Excel file ''E:\Results.xlsx'':
|}
==Example: open image file with explicit application==
Show the graphics image file ''E:\Graph.jpg'' with a certain image viewer application that allows to pass the additional command line argument "/clipcopy" which copies the loaded picture to the clipboard. Therefore, the needed arguments are simply separated by space characters, consisting of the image file path and the additional argument.
|}
==Example: open image file with default application==
Alternatively to the previous example, showing the image ''E:\Graph.jpg'' with it's system default application can simply be done by specifying it's document path as the file name.
{| class="wikitable" | width = "50%"
|}
==Example: execute a batch file with command line arguments==
Another use case could be executing batch files. We have a batch file ''E:\ProcessData.bat'' that processes the data of the text file ''MyData.csv'' in the working directory "E:\". If there is a problem we want to specify a timeout of 30 seconds for this processing step to avoid blocking the workflow for a long time.
1,606
edits