
The Invoke Java operator leverages the functionality that is contained in external JAR files (or .class files) in CA Process Automation. You identify the JAR files or .class files by specifying their location in the operator input parameters.
Once the JAR file is located, you can write Java code that references classes in the JAR file. You can pass variables to this code by using the input parameters of the Invoke Java operator. The code that you write goes in the main method of the operator.
You can specify to save a Java object in the operator dataset after execution of the code by the operator. The Java object is saved in CA Process Automation under data type: JavaObject. You can make this JavaObject data type available to subsequent Invoke Java operators.
For example, say that you want to use the Invoke Java operator in a process. You include it in a process in the process editor and name it Java Operator 1. Once the operator runs, the Java object is saved to the operator dataset and displays as a JavaObject data type. Now you have another Invoke Java operator later in your process. You can use that same JavaObject from Java Operator 1 in your new Java Operator 2. You pass the saved object from Java Operator 1 to Java Operator 2 as a JavaObject data type.
The Invoke Java operator cannot be executed on an Orchestrator. This operator only runs on an agent.
|
Copyright © 2014 CA.
All rights reserved.
|
|