< Previous | Next >

Before you start

This topic explains the tasks, objectives, and prerequisites of this tutorial.

You use scenario files to store scenarios and expected results for tests and simulations. This tutorial introduces you to the configuration of the business object model (BOM) to enable the generation of an Excel scenario file template.

To generate a template for an Excel scenario file to test your rules in Rule Designer or Decision Center, you must first configure the BOM of the rule project:

  • The Borrower class in the BOM has several constructors. You must select the constructor to use for creating test data.
  • The arguments of the constructor have generic names. You must rename them to obtain meaningful column headings in the Scenarios sheet of the Excel scenario file.
  • To handle a collection of messages, you must define a new column in the Expected Results sheet. You must create a virtual attribute in the BOM.
  • You add an attribute with an interface type. You must create a constructor for the interface to define the implementation class.
  • You edit one of the arguments of the constructor so that it contains domain values.

Learning objectives

You learn how to validate a rule project to enable the generation of an Excel scenario file template. The tutorial shows the relationship between the Business Object Model (BOM) and the Excel scenario file template, and how to configure the BOM so that you can generate Excel scenario file templates with the correct columns.

You learn the following tasks:

  • Select the constructor that defines the required column headings in the Excel scenario file.
  • Give a meaningful name to the required column headings.
  • Create a virtual attribute on the BOM to test one element of a collection, and add a new test in the Expected Results sheet.
  • Add a new attribute to use as an input parameter in the Scenarios sheet, and choose the implementation class for the interface that types the attribute.
  • Add a domain in the BOM, and see how it is used and maintained in the Excel scenario file.

Time required

This tutorial takes about 40 minutes to complete.

Directory structure

All the files for this tutorial are contained in the following directory: <InstallDir>/studio/tutorials/dvsconfigureexcelfile.

The tutorial directory has the following structure:

  • answer: Answer directory for the tutorial, which contains an executable example.
  • start: Start directory for the tutorial, which contains a rule project with a BOM to customize.

What you need to know

This tutorial assumes that you are familiar with business rule programming principles, Java™ code, and the Eclipse environment.

< Previous | Next >