Sample: XML binding

This sample shows how to write BAL rules to process XML data.

Time required

5 minutes

Prerequisites

You must have Rule Designer installed to import and run this sample.

Description

The sample application reads a batch XML file of financial events, executes a set of rules on those events, then outputs a modified event batch to an XML file.

The key features of this sample include:

  • Creating and using a Dynamic execution object model (XOM) from an XML Schema
  • Using XML Schema Definitions (XSDs)
  • Writing rules against XML objects
  • Default Verbalization of a Dynamic XOM
  • BAL expressiveness (definitions, concatenation of strings and numbers, iteration on collections, if-then-else...)
  • Use of BOM virtual methods and BOM to XOM mapping to extend the language expressiveness, specifically to support more IRL actions and keywords
  • Use of ruleset variables to manipulate local variables in rule actions
  • Engine RetePlus mode