Scripting in StreamServe > Function files > When to use function files

When to use function files
Reusing scripts
You should use function files when you need to reuse scripts. If you do so, you will have one source for the script, and you do not have to create or edit the same script several times. For example, if you have two Processes, and need to add the same Before Process script to both Processes, you can create a script function that includes the script. Then, at Before Process for both Processes, you call the script function instead of entering the same script twice.
Gathering related scripts
You can also use function files to gather related scripts in the same text file.
OpenText StreamServe 5.6 Updated: 2013-03-01