ILOG JRules User Guide > Deploying Rules > Tasks > Deploying Rules to .NET > Generating a .NET DLL Using the B2X Mapping Tool

You use the BOM to XOM (B2X) Mapping tool to define the mapping between the JRules Business Object Model (BOM) and the .NET XOM classes. The BOM is taken from the ruleset archive created in Rule Studio. This process generates a .NET ruleset archive (a DLL) that you can then load and deploy on .NET using the B2X and/or Packager tools

Note
To be able to use the B2X Mapping and the Packager tools, you must have installed the library vjslib 2.0. You can download vjslib from: http://msdn2.microsoft.com/en-us/vjsharp/bb188598.aspx..

To generate a .NET DLL using the B2X Mapping tool:

  1. Start up the B2X tool: run B2XGUI.exe in: <InstallDir>/jrules2dotnet/bin/.
  2. Load the Java archive (JAR) file containing the BOM to be mapped, using the menu option Load jar.
  3. The B2X tool displays the BOM element tree.
  4. Load the DLL containing the modified .NET XOM, using the menu option Load Xom.
  5. Click the Default Mapping menu item.
  6. The B2X tool performs all possible automatic mappings from the JRules BOM to the .NET XOM. The mapping will be set if:
    1. Fully qualified names are identical. A fully qualified name includes the element name and the package name. Fully qualified names are case-sensitive. Class or method names are considered identical even if the case of the first letter differs.
    2. Namespace names are identical.
  7. In the pop-up box, type an extension suffix (case is irrelevant), typically ext, for your .NET extensions, and click OK.
  8. Check each class for correct remapping. If you find a class for which Default Mapping was not able to remap an element, adjust it manually.
  9. Generate the ruleset archive, using the menu option Generate dll.
    1. In the Output field, type the (usually new) DLL name.
    2. Optionally, click to select the Use AssemblyInfo, then click Save.

The following image shows an example of mapping using the B2X Mapping tool:

images/B2XGUI_2.png

Related Concepts

Deployment to .NET

Related Tasks

Deploying Rules to .NET

Related Reference

JRules to .NET Tools