Installing Upgrading Designing Configuring Deploying Monitoring Administering Troubleshooting Reference JBI Components
Close Print View
Designing: Defining Environmental Constants
 

Classic Java CAPS

Developing Java CAPS Projects

Using SOAP Message Handlers

Creating a Runtime Environment

Designing Business Processes in the Sun Business Process Manager

Working with TCP/IP HL7 Collaborations

Developing Sun Master Indexes (Repository)

Developing Sun Master Patient Indexes

Developing OTDs for Application Adapters

Developing OTDs for Communication Adapters

Developing OTDs for Database Adapters

Developing OTDs for Web Server Adapters

Designing with Application Adapters

Designing with Communication Adapters

Designing with Web Server Adapters

SWIFT Integration Projects

Java EE Based Components

Designing with Sun JCA Adapters

About the TCP/IP JCA Adapter

Defining Constants and Variables

Defining Project Variables

Defining Project Constants

Defining Environmental Constants

Using Database Operations

Developing Sun Master Indexes

Using the JMS JCA Wizard

Using the JAXB Wizard and Code-Seeder Pallete

Defining Environmental Constants

Figure 7 Constant or Variable Icon
Image of a Constant or Variable Icon

Environmental constants are name-value pairs that are visible across the Environment. Using a constant allows you to define the value once, and then refer to it from the various Project configurations, rather than having to redefine the value everywhere it is needed. Selecting the New > Constant option from the Environment context menu, which displays the Create Environmental Constant dialog box shown in the following figure.

Figure 8 Create Environmental Constant Dialog
Image of the Create Environmental Constant dialog box, described in content

Project Constant Options

Property
Option
Description/Usage
Name
Your name for the Environmental constant.
Category
You may assign a category name, if desired.
Description
Your description for the constant.
Is a Constant
Automatically selected, not modifiable.
Value Type
String
Allows the string value to be displayed explicitly.
Password
Encrypts the value, displaying asterisks (*) in the field.
Value
The value for the constant.

Note - When you create an Environmental constant, you assign a permanent value to it which cannot be overridden.

Constants are automatically added to a Constants object group within the Environment, as shown in the following figure. All constants defined for the specific Environment are listed in the Constants section of the panel, along with their various properties. Additional Environmental Constants can be defined using the lower part of the panel.

Figure 9 Environmental Constants Object Group
Screen capture showing the Variables and Constants Object Group user interface.

Environmental Constants Object Group Icons

Icon
Name
Function
Image of Add Constant or Variable Icon.
Add a New Constant
Adds a new constant to the list.
Image of Delete Constant or Variable Icon.
Delete a Highlighted Constant
Deletes the selected constant from the list.

Note - Refer to the Java CAPS 6 Release Notes regarding this feature.