Defining ItemType Object
Let us start by defining the ItemType object. First we need to specify the name of the business object – we enter ItemType into the Name property of the object displayed in the list of properties on the right. Then we need to define the attributes of the object. We click on the
icon and specify the name of the attribute Name and select its type “Plain Text”. The new attribute appears in the list of attributes and its properties can be changed in the list of properties on the right. This attribute is mandatory and so we tick the “Required” checkbox. We can also provide some typical values for users to choose from, like “Book”, “CD”, “Video” etc. We can specify them as “choices”. So we click on the icon next to the “Choices” property and specify these values in the table. We must also tick “Other values allowed” checkbox to indicate that users may not only choose from the list of typical values but also type in the values of their own.
In a similar fashion we define other attributes of the ItemType object – MaxBorrowNumber, MaxLoanPeriod and MaxRenewals. The only difference with the Name attribute is that these attributes are of the Number type and do not have choices of typical values. Once we have finished adding the attributes we can click on the “Save” button in the Configuration Tool toolbar (or select File/Save from the menu) to indicate that the business object is ready (we will accept the default values for all other properties of the object). After you click on the “Save” button you will see the ItemType object in the Elements Tree.