Service Development Help : Building Java Services : Java Service Editor : Source Tab : Protected Sections of a Java Service
Protected Sections of a Java Service
The Java service editor shades the protected sections of the Java service. By default, it uses gray for the shading; you can update your preferences to select a different color. For more information, see Java/C Service Editors Preferences. The sections of the Java service that the Java service editor protects are:
*Java package definition, which is the required code that defines the Java package for the Java service.
*Class definition, which is the required code that defines the final class for the Java service.
*Primary method definition, which is the required code that defines the static and final method for the Java service. It defines a single input parameter, an IData object.
The IData object is the universal container that services use to receive input from and deliver output to other programs. It contains an ordered collection of key/value pairs on which a service operates. An IData object can contain any number of key/values pairs.
You define the data to pass into the service via the IData object by defining input parameters on the Input/Output tab of the editor. You add code to the primary method that modifies the key/value pairs in the IData object. The IData object then becomes the output of the service. The service returns the output parameters you define on the Input/Output tab.
Note:  
You can set the Java service editor preferences so that Designer uses Values in and return out for the input/output rather than an IData object. For more information, see Java/C Service Editors Preferences.
*Final brace “}”. The Java service editor does not allow you to add code after the final brace “}”.
Java Service Editor
Source Tab
Editable Sections of a Java Service
Copyright © 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback