Assigning domain types in a COBOL copybook import wizard

You assign domain types in the COBOL copybook import wizard.

About this task

When you generate a COBOL XOM for your rule project, the Configure COBOL XOM Mapping page of the Create COBOL Execution Object Model wizard displays a list of default mappings between the COBOL types in the COBOL copybook, and Java™ types. You can change the default type to a domain by using the type converter.

Procedure

To assign domain types:

  1. On the Configure COBOL XOM Mapping page of the Create COBOL Execution Object Model wizard, right-click the item you want to convert to a domain type, and then select Add Converter.
  2. On the Configure Converter Settings page, select Set Domain Support and then complete the following fields:
    Field Data entry
    From Shows the original Java type for the COBOL data item.
    Domain Class Choose the domain type you want to use.
    Domain Class Info Select Constructor or Factory Method, depending on how you defined the domain in the Java project.
    GetValue Method Choose the method to be used to provide the domain value.
  3. Click OK.

    On the Configure COBOL XOM Mapping page, the Converter applied column displays Yes, indicating that the default mapping has been changed.

  4. Click Finish, and then click OK to generate the XOM.