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:
Note: For more information on adding or managing resources in the CA Process Automation Repository see “Manage Common Resources” in the Administration Guide.
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.
|
Copyright © 2014 CA.
All rights reserved.
|
|