Use the RunThread command to access the value of a specified process while your main script is running. With this command, you can run a subscript concurrently with the main script. Running the subscript concurrently with the main script will not affect the processing of the main script or other subscripts created by this command. (Note that the subscript does not have a name.)
An example of using the RunThread command is in the pfsAsync host mode. When multiple files are downloaded, currently only one file at one time is processed by wsproces. With RunThread, you can process more than one file at a time.
You have the option to decide which process values need to pass into the subscript. For Parameter, Message, Filename, or Resource, you can select to pass all, none, or some of the values. For example, a menu with three choices (All, None, Selection) is provided for the Parameter variable. If you select All (represented by 1), this means that all 20 parameters will pass into the subscript. If you select None (represented by 0), this means none of values need to pass into the subscript. If you select Selection, a small window will pop up for you to select Parameter-1 to Parameter-20 and a string of 20 “1”s or “0”s will represent the selection.
The following parameters can be defined from this window.
Field |
Description |
---|---|
Label |
Specifies the unique label of this process command. This label allows other commands to branch to this command. The label that you type here appears in the Label column on the EC Gateway Process Window. |
Disable command |
Disabling the command will allow temporary modification of the process statements. This allows for testing of the statements for error-free robustness. The command that has been disabled will not show in the script file (.pfs file). |
Process |
Displays the Select a Process window where you can select the process that has the value you want to retrieve. |
Parameter Variable |
Select one, all or none of the Parameters for the specified process to pass to the subscript. (Also see the second paragraph on the previous page.) |
Message Variable |
Select one, all or none of the Messages for the specified process to pass to the subscript. (Also see the second paragraph on the previous page.) |
FileName Variable |
Select one, all, or none of the FileNames for the specified process to pass to the subscript. (Also see the second paragraph on the previous page.) |
Resource Variable |
Select one, all, or none of the Resources for the specified process to pass to the subscript. (Also see the second paragraph on the previous page.) |