Generating a .NET DLL using the Ruleset Archive Assembly Packager

To generate a .NET DLL, you pass the B2X file to the Ruleset Archive Assembly Packager command-line tool.

About this task

The Ruleset Archive Assembly Packager is a command-line tool that accepts a B2X file as input. You use it to package a ruleset for .NET. Using the .NET Rule Engine Assembly, the tool outputs a deployable .NET DLL.

Procedure

To generate a .NET DLL using the Packager tool:

  1. Open a Command Prompt window.
  2. Start the Packager tool by typing: <InstallDir>/dotnet/dotnetengine/bin/DotNetEngineAssemblyGenerator.bat, where <InstallDir> is the directory where you installed the product.

    The full command syntax is: DotNetAssemblyGenerator.bat <file.jar> <file.b2x> <My.Namespace> <AClassName> <AnAssemblyName> <path> <file.dll> 

    Use the parameter descriptions to construct your commands:

    • <file.jar>: ruleset JAR produced in the previous step

    • <file.b2x>: hand-written mapping between a BOM class and the actual .NET XOM class

    • <My.Namespace>: namespace of generated rule engine

    • <AClassName>: class name of generated rule engine

    • <AnAssemblyName>: assembly name of generated rule engine DLL

    • <path>: folder to save the generated rule engine DLL

    • <file.dll>: .NET XOM

    Note:

    If no BOM to XOM mapping is necessary, omit the file.b2x parameter.

Results

After you have generated a .NET DLL, you load the .NET DLL onto .NET to instantiate the engine definition, feed the working memory with objects, and execute.

Next Next: Executing a ruleset DLL in .NET.

On successful completion, the message Dll successfully generated is displayed.