Workflows that start from a COBOL copybook

To execute your rules in a COBOL application on z/OS®, you can generate your XOM from a COBOL copybook.

Deprecated feature:

Deprecation icon The COBOL code generation feature is deprecated in V8.5. This feature will be removed in a future release of the product. Use the COBOL Generation Project Migration wizard to migrate your Rules for COBOL project to a zRule Execution Server for z/OS compatible rule project. See Deprecated features for migration details.

When you generate a XOM from a COBOL copybook, the XOM you generate comprises a Java™ XOM project. This Java XOM project provides the required Java structures for the Java objects to COBOL data conversion at run time.

You do not use the COBOL XOM for COBOL code generation, but when you create the BOM from the COBOL XOM, it generates the custom properties that are required to generate the code.

The following table shows the differences between the steps you perform in Rule Designer, depending on whether you want to execute your rules in a server environment (Rule Execution Server on WebSphere® Application Server or zRule Execution Server for z/OS) or in Enterprise COBOL.

Environment BOM methods and mapping Orchestrate® Author/Review Deploy and integrate

Rule Execution Server on WebSphere Application Server

zRule Execution Server for z/OS

Implement:

  • XOM methods

  • BOM to XOM mapping

You use ruleflows to organize your rules into the sequence in which they must execute by using rule tasks to group the rules.

You can create and maintain rule artifacts in Rule Designer or Decision Center.

When you create your rule project, or if a rule project is modified, you can review it by exploring and analyzing its contents. See Reviewing a rule project.

  • For Rule Execution Server on WebSphere Application Server, you deploy the RuleApps and, optionally, the Java XOM. You can call the rules from a Java EE client or a test scenario in Decision Center.

  • For zRule Execution Server for z/OS, you deploy the RuleApps and the COBOL XOM to z/OS. You call the rules from a COBOL application (batch or CICS®).

Enterprise COBOL

Custom properties for COBOL code generation are automatically added to the BOM.

Implement:

  • BOM methods in COBOL

  • BOM to XOM mapping

You can use most of the ruleflow features available in Rule Designer.

For information about limitations, see Ruleflows and COBOL code generation

.

You can create and maintain rule artifacts in Rule Designer or Decision Center.

A few authoring features are not available. See Rule authoring for COBOL compatibility.

You can optimize decision table execution using the ‘Exit on first match’ feature. See Improving the performance of the COBOL program decision table.

You can review your rules (optional). See Reviewing a rule project.

  1. Generate a COBOL program by using Rule Designer, Decision Center, or an Ant task. See Generating COBOL code for rule execution.

  2. Integrate the generated program with the main COBOL calling program (batch, CICS, or IMS™). See Configuring a COBOL rule subprogram into a COBOL application.

    For CICS, you must also set the CICS code generation configuration options. See Configuring code generation for a CICS program.

The following task flow illustrates the main high-level tasks that you perform, from rule project design to rule execution on z/OS. In this scenario, your starting point is a COBOL copybook. You want to generate a COBOL program and integrate it into a COBOL calling program.

Note:

Some tasks are subject to certain constraints or COBOL-specific requirements. For information about such requirements, see COBOL considerations for rule application development.