Creating the Customer business object
Follow these steps to create the Customer business object which has these attributes:
customerNumber (string)
dateProfileCreated (string)
SIN (string)
FName (string)
LName (string)
contactInfo
accounts
From the menu, select
File > New > Other
. The
New
window opens.
In the navigation tree, click
Business Integration > Business Object
.
Click
Next
.
From the
Module
list, click
BankModule
. The
Inherit from
field is set to
<none>
.
In the
Folder
field, type
com.emerged.bank
.
In the
Name
field, type
CustomerBO
.
The
Namespace
field is set to
http://BankModule/com/emerged/bank
.
Click
Finish
. The editor opens for
CustomerBO
.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
customerNumber
.
In the
Type
list, type
string
.
From the list, click
string
.
Switch to the CustomerBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
dateProfileCreated
.
In the
Type
list, type
string
.
From the list, click
string
.
Switch to the CustomerBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
SIN
.
In the
Type
list, type
string
.
From the list, click
string
.
Switch to the CustomerBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
FName
.
In the
Type
list, type
string
.
From the list, click
string
.
Switch to the CustomerBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
LName
.
In the
Type
list, type
string
.
From the list, click
string
.
Switch to the CustomerBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
contactInfo
.
From the
Type
list, click
ContactInfoBO { http://BankModule/com/emerged/bank }
.
From the list, click
ContactInfoBO { http://BankModule/com/emerged/bank }
.
Switch to the CustomerBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
accounts
.
From the
Type
list, click
AccountBO { http://BankModule/com/emerged/bank }
.
From the list, click
AccountBO { http://BankModule/com/emerged/bank }
.
Select the
Array
check box.
From the menu, select
File > Save
(or press
Ctrl+S
).
From the menu, select
File > Close
(or press
Ctrl+F4
). The editor closes for
CustomerBO
.
Parent topic:
Creating interfaces and business objects
Previous topic:
Creating the ContactInfo business object
Next topic:
Creating the Bank interface