Generic application



Generic application is a processor that functions as a stand-in for a third-party hot-folder application.

The third-party application must be configured independently, and its input and output folders must refer to the backing folders of the corresponding flow elements preceding and following the generic application in the flow design.

Files are moved along the incoming and outgoing connections of a generic application under the control of the third-party application (not under the control of Switch). Still, designing the generic application flow element and its connections into the flow at the appropriate place has several key advantages:


Because the incoming connection is under the control of the 3rd party tool, the incoming folder, the connection and the generic application tool itself behave different than regular Switch flow elements:


Keywords

Keywords can be used with the search function above the Elements pane.

The keywords for the Generic application element are:


Properties

Property

Description

Name

The name of the flow element displayed in the canvas

Known application

Set to yes if you can browse to the third-party application's executable on the same computer system; this allows Switch to launch and monitor the application

Path

The absolute file path of the third-party application's executable

Launch application

If set to yes, Switch launches the third party application when it is needed and if it is not already running

Abort application

If set to yes, Switch aborts the third-party application if it exceeds the time limit specified by the user preference "Abort processes after" (see error-handling preferences)

Perform cleanup

If set to yes, Switch removes files left in the input folder left by the third-party application; it is strongly recommended to leave this option turned on unless you are sure that the third-party application removes its input files in all circumstances, including error conditions

When detecting output files (N)

Remove a file from the input folder after at least the specified number of output files have been detected for the file; a value of zero means this option is disabled; Switch uses the unique name prefix to match output files with input files, so if the third-party application's output files are not named similar to its input files, this option will not work

After (min)

Remove a file from the input folder if more than the specified time has passed; provide sufficient extra time for unforeseen circumstances; a value of zero means this option is disabled