Previous Topic: Specify System Paths in CA Process Automation ExpressionsNext Topic: Comments in CA Process Automation Calculations


Include Common Resources in CA Process Automation Scripts

You can include previously defined scripts in a CA Process Automation script. This allows a script to read in and access saved functions at runtime. Use the include statement on any line of a script dialog to add a previously saved script to the file. The include statement uses the following syntax:

include(expression)

The expression argument can be any path that references an appropriate resource. Recognized paths include:

Lines in an included script are added to a script as if they were typed in place of the include statement. Note that it is a best practice to include only necessary functions or other code instead of lengthy function libraries in an included script. Included scripts are compiled at runtime, so many unused lines of code unnecessarily increases the time required to run a script.