/**
import [Link]
import [Link]
import [Link]
import [Link]
import [Link]._UserAction
import [Link];
global [Link] sql
global [Link].Log4JImpl logger
*/
when
userBean : UserBean( )
resultBean : ResultBean( )
then
/**
####################################
Name: Complex Hierarchy
Configuration Type: Advanced
Rule: COMPLEX_HIERARCHY
Value: Hierarchy
Separator Char: Semi-Colon (;)
####################################
World
- United Kingdom
- - Belfast
- - - 1 Main Street
- - London
- - - 2 High Street
- - - 3 Oxford Street
- - - 4 Piccadilly
- France
- - Paris
- - - 5 Rue de Provence
####################################
*/
/* Country>City>Office */
String country = [Link]();
String city = [Link]();
String office = [Link]();
if (country != null && city != null && office != null) {
[Link]("World;" + country + ";" + city + ";" + office);
} else {
[Link]("World");
}