

Operators and Icons › Operators › Java and External JARs
Java and External JARs
The Java module allows you to specify Java code to run inside a BeanShell Interpreter in the CA Process Automation JVM. BeanShell is an embedded dynamic Java source interpreter, scripting language, and flexible environment. Using the CA Process Automation Java module and operators, you can:
- Import and reference JAR files at the module or operator level.
- Configure global settings for all Run Java Code operators or specific settings for a particular operator. You can specify paths to the external JAR files that operators can use. You can also set the default log setting in the module. For each operator, you can specify the code that you want to run, the input parameters, and the output variable names. Log settings you specify for a single Run Java Code operator override the module-level log settings.
- Write Java code that references classes in these JARs. CA Process Automation automatically creates new Java Object data types when you run a Java program. Because new Java objects are invoked inside the Run Java Code operator, you do not need to use any create or destroy object methods. After execution of the operator, CA Process Automation automatically collects any garbage resources, classes, and objects in memory.
- Run the Java code using the Run Java Code operator. You can invoke classes in an external Java Archive (JAR) file from a Run Java Code operator. Use this operator to leverage the functionality that your existing Java code provides.
- Save Java objects to the operator dataset to make them available to subsequent Run Java Code operators. You have the option of saving an entire Java object in the operator dataset before the end of execution of the operator. You can then leverage the Java object saved in the operator dataset in subsequent operators by passing it to them.
Copyright © 2014 CA.
All rights reserved.
 
|
|