Defining a BPM Object Group

In a BPM object, you implement arrays or collections of attributes by using groups. A group can contain one or more attributes.

The ExpenseReport object requires only one group, so you can have a list of items. Each item has four attributes, listed in the following table:
Name Type Special Properties
description String Storage Constraints = Not Null
Maximum Length = 80
date Time Time Precision = Date Only
amount Decimal Decimal Digits = 2
receiptChecked Bool Default Value = False

To define the group:

  1. In the Project Navigator, right-click on the ExpenseReport BPM Object (BPM Object icon 
				), and click New > Group (Group icon 
				). The Group dialog box appears.
  2. Enter items in the Name field, and click OK. The items group is created. It contains an object called Items, which in turn contains a method by the same name.
  3. To create an attribute, right-click on the Items object (BPM Object icon 
				), and click New > Attribute. The Attribute dialog box appears.
  4. Enter description in the Name field, and set the Type drop-down list to String. The attribute editor for the description attribute opens.
  5. Set the Maximum Length to 80 and under Storage Constraints check Not Null.
  6. Save and close the editor.
  7. Following the above steps, define the remaining three attributes setting their properties as indicated by the table above.

You have now defined the items group. In the Project Navigator, you should be able to see the following:

Figure 1. ExpenseReport BPM Object Items Group

In the next task, you will add a virtual attribute, for the total value of the expense report.