Code
You can choose to display the full Java class or display only the invoke()
method body of the class. Choose the appropriate option at the top of the Code tab for the code you want to display.
The code tab has the following fields/buttons.
Field/Button |
Description |
Java Code |
The source code of the Java class. Specify the code you want to execute in the automatically generated When the Java code is run by the engine, the automatically generated get/set methods are called, then the |
Compile Button |
Compiles the current source code. When the code in the activity needs compilation (for example, the input or output parameters change or the code changes), a yellow warning icon appears on this button. The code either compile successfully or the View Errors, dialog appears to display any errors in the code. After compilation, the source and compiled java code are placed into the |
View Errors Button |
Displays the errors encountered when the code was compiled. |
Edit Class Button |
Displays the source code in the editor specified with the TIBCO Designer preferences. If no editor is specified, a simple popup editing window is used. Use Edit>Preferences>Other to specify the Java editor you want to use to edit source code. Note: On MS Windows platforms, a temporary file is created to hold the Java code when you edit your code with this button. This file is located in either
C:\temp or C:\tmp or your working directory. If your working directory contains a space (for example C:\Documents and Settings\ ...), there may be problems opening the temporary file. Make certain either the C:\temp or C:\tmp directory exists to avoid this issue. |