The aliases of operations on Definitions whose return type is non-primitive are called definitions aliases.
Note
The eight primitive return types supported by the Java programming language are:
byte
short
int
long
float
double
boolean
char
Example
Address custAddress = null is a Definition Alias.
The Address object has operations like getCity(), getCountry().
Definition Aliases of custAddress are:
custAddress.getCity()
custAddress.getCountry()
You can create a definition alias in the Project Resources and at the ruleset level.
You should have added Java classes to the DC.
Locate the Project Resources node (Where is the Project Resources node?) and double-click the node.
In the Project Resources editor, choose the Definitions tab.
Locate the ruleset (Where is my ruleset?) and double-click the ruleset.
In the ruleset editor, choose the Definitions tab.
In the definition editor create a definition whose return type is non- primitive and save the changes.
In the Project Resources editor and the ruleset editor, choose the Aliases tab to view the Definition Aliases.
Example
Let us consider a Java type — StringBuffer [java.lang].
In the Project Resources editor, choose the Aliases tab.
In the Alias Name table , select the StringBuffer [java.util.StringBuffer] checkbox.
Save the changes.
In the Project Resources editor, choose the Common Definitions tab.
In the definition editor, in the Variable Definitions section, choose the Add icon and in the drop down that appears, choose StringBuffer[java.lang].
Choose StringBuffer1 and in the inline textbox enter messageBuffer and press Enter
Choose null and in the drop down menu that appears, expand the StringBuffer[java.lang] and choose new StringBuffer.
Save the changes.
In the Project Resources editor, choose the Aliases tab and you should see the messageBuffer node.
Expand the messageBuffer node to see all the all definition aliases.