Enum type

The enum data type in Java™ is supported when Java types map to PL/I structures. You can specify that it maps to the PL/I char type or the ordinal type.

Suppose that your rule project has the following Java XOM that contains the enum type:
public enum Color{
RED, YELLOW, GREEN
}

public Painter{
private Color color;
private ......
}
The corresponding BOM has the following domain class:
domain {static RED, static YELLOW, static GREEN}

public static final readonly sample.tools.domain.Color RED;
public static final readonly sample.tools.domain.Color YELLOW;
public static final readonly sample.tools.domain.Color GREEN;
You can choose one of the following options when you map the enum data type:
Table 1. Mapped PL/I types
Mapped PL/I type Descriptions Examples

char(n)

The value of each PL/I element corresponds to the name of the enum element that is defined in the Java enum type.

The value n is automatically calculated. It corresponds to the maximum length of characters in the Java enum type.

DCL 1 PAINTER,
      5 color char(6); 

If the name of an enum element Color.RED is "RED", the corresponding value in PL/I is "RED".

ordinal

The named value of the PL/I ordinal type corresponds to the name of the enum element that is defined in the Java enum type.

define ordinal Color (RED,YELLOW,GREEN);
DCL 1 PAINTER,
      5 color type Color;