The Java with code generation implementation for an action processor creates a Java processor that composes messages to be sent to a device, evaluates the response for errors, extracts output information from the response, and populates the information into output parameters.
In the Java processor with code generation, the central class is the Processor, which is editable by the developer. The Processor is generated only once and includes sample code based on the associated parameters at creation time. You should delay the creation of the processor until the action processor is associated with an atomic action that has fully defined parameters. If parameters are not yet defined or the action processor is not yet associated with the atomic action, then the generated sample code will be incomplete and, because it is generated only once, would require additional coding.
Note:
Synchronized classes or interfaces are rebuilt every time you save changes of atomic action parameters (for example, classes and interfaces are synchronized with the model and reflect the model). Therefore, you should never make code changes to any synchronized class or interface. Oracle Communications Design Studio overwrites these changes when you run the next build (with changes in the model). Developers should write code only for the processor class.There are 2 methods in the Processor:
execute
init
The main method is execute
. When called, it is provided with the following:
A number of classes to perform operations.
An input class that contains all input parameters.
An output class to populate the output parameters.
Access to a logger.
An implementation of the exit type to match responses against user-defined exit types and to set the exit type for the processor.
Access to the Connection Handler to send requests and get responses from a connected device.
About Processor Classes and Interfaces