Custom types for PL/I

You can add your own custom types and map PL/I data items to them.

Rule Designer provides an API that you can use to add your own type converters so that you can map PL/I data items to your own Java™ types.

For example, you might have the following include file entry:

declare 01 Loan,
           05 Approved pic '99';

When you import the include file to generate the XOM, the default Java type for the PL/I item Approved is Short. You might want to convert this type to a Java boolean type, but with behavior that is different from the predefined boolean type converter. In this case, you can create your own type converter.

You define custom types in a Java project and then reference this project from your rule project. You then use the type converter to replace the default Java type with the custom type. You use the type converter when you create the XOM from a PL/I include file.