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
  1. From the menu, select File > New > Other. The New window opens.
  2. In the navigation tree, click Business Integration > Business Object.
  3. Click Next.
  4. From the Module list, click BankModule. The Inherit from field is set to <none>.
  5. In the Folder field, type com.emerged.bank.
  6. In the Name field, type CustomerBO.
    Picture of the New Business Object window
    The Namespace field is set to http://BankModule/com/emerged/bank.
  7. Click Finish. The editor opens for CustomerBO.
  8. Click the Add an attribute to a business object. button Add an attribute to a business object..
  9. Switch to the Properties view.
  10. In the Name field, type customerNumber.
  11. In the Type list, type string.
  12. From the list, click string.
  13. Switch to the CustomerBO editor.
  14. Click the Add an attribute to a business object. button Add an attribute to a business object..
  15. Switch to the Properties view.
  16. In the Name field, type dateProfileCreated.
  17. In the Type list, type string.
  18. From the list, click string.
  19. Switch to the CustomerBO editor.
  20. Click the Add an attribute to a business object. button Add an attribute to a business object..
  21. Switch to the Properties view.
  22. In the Name field, type SIN.
  23. In the Type list, type string.
  24. From the list, click string.
  25. Switch to the CustomerBO editor.
  26. Click the Add an attribute to a business object. button Add an attribute to a business object..
  27. Switch to the Properties view.
  28. In the Name field, type FName.
  29. In the Type list, type string.
  30. From the list, click string.
  31. Switch to the CustomerBO editor.
  32. Click the Add an attribute to a business object. button Add an attribute to a business object..
  33. Switch to the Properties view.
  34. In the Name field, type LName.
  35. In the Type list, type string.
  36. From the list, click string.
  37. Switch to the CustomerBO editor.
  38. Click the Add an attribute to a business object. button Add an attribute to a business object..
  39. Switch to the Properties view.
  40. In the Name field, type contactInfo.
  41. From the Type list, click ContactInfoBO { http://BankModule/com/emerged/bank }.
  42. From the list, click ContactInfoBO { http://BankModule/com/emerged/bank }.
  43. Switch to the CustomerBO editor.
  44. Click the Add an attribute to a business object. button Add an attribute to a business object..
  45. Switch to the Properties view.
  46. In the Name field, type accounts.
  47. From the Type list, click AccountBO { http://BankModule/com/emerged/bank }.
  48. From the list, click AccountBO { http://BankModule/com/emerged/bank }.
  49. Select the Array check box.
  50. From the menu, select File > Save (or press Ctrl+S).
    CustomerBO
  51. From the menu, select File > Close (or press Ctrl+F4). The editor closes for CustomerBO.

Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.