Workflows that start from a Java XOM

If your rule project already contains a BOM generated from a Java™ XOM, you can adapt the BOM so that you can execute your rules in COBOL applications, as well as in Java.

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.

To make this possible, you carry out the following tasks:

  1. Enable the BOM for COBOL data structures.

  2. Generate a COBOL copybook from the BOM. The BOM structures and data types translate into corresponding COBOL structures and types in the copybook.

The following table shows the steps that 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 on z/OS 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 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 use all the ruleflow features available in Rule Designer.

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

When you have created your rule project, or if a rule project has been modified, you can review it by exploring and analyzing its contents.

  • 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

Copybook generation adds custom properties to the BOM to enable Java to COBOL mapping.

Implement:

  • BOM methods in COBOL

  • BOM to XOM mapping

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

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 by using the ‘Exit on first match’ feature. See Improving COBOL program decision table performance.

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 workflow shows the high-level tasks that you perform, from rule project design to rule execution on z/OS. In this scenario, your starting point is a Java BOM. You want to deploy your rules to zRule Execution Server for z/OS, and call them from a COBOL application.

Note:

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