A Business Object in the AppBase system represents an application data entity. For example, the business objects needed for a Case Management system might include the following:
- Cases
- Clients
- Case Managers
- Documents
A typical AppBase application will contain many Business Objects. They are the configurable “building blocks” of an application.
NOTE: For naming issues please refer AppBase Black List of Names.
Attributes
An Attribute is a single field of data contained within a Business Object. Each Business Object can contain multiple attributes of various data types. You can add, edit, and delete attributes for each Business Object. These attributes define the characteristics of the Business Object. For example, a Client business object might contain attributes that describe a client such as client type, name, age, condition, date of birth, and more. These attributes comprise the metadata fields that are associated with a given Business Object.
Relationships
Business Object Relationships allow you to specify data relationships between various Business Objects. For example, you can relate that one Customer can have many Cases, and that each Case can have multiple documents. You need to specify which two business objects are involved and their carnality. There are 4 available:
Carnality | Example |
---|---|
One Source to Many Targets | One Customer can have Many Cases. |
Many Sources to One Target | Same as the above example. |
Many Sources to Many Targets | One Case can have Many Lawyers and One Lawyer can have Many Cases. Therefore you create a Many Cases to Many Lawyers relationship, and an intermediate table is created automatically to facilitate the relationship. |
Constraints
A constraint is another property of a business object. This allows you to add an additional rule that can be applied to a business object. For example, one of the properties of a Customer is a Social Security Number (SSN). When trying to add a new Customer it will not insert the record if one already exists with the same SSN. The following options are available:
Property | Description |
---|---|
Index | Indicate the the selected columns should be indexed by the database. You should only set this when you often do searches on the selected columns. |
Unique | A unique constraint prohibits multiple rows from having the same values in the combination of selected columns. Selecting this option automatically sets this column to be indexed by the database. |
Columns | Lets you choose the involved columns in this constraint. For example, you can select that FirstName + LastName should always be unique, therefore you can't add "John Smith" twice but you can add "John Smith" and "John Jones". You must select at least one column with which your constraint works. |
Events
Test
Permissions
Test
Creating a Business Object
- Open Applicaton Studio of your solution
- From the left menu, select Data Management -> Business Objects
- Click on New Business Object. The New Business Object page displays
Enter the bookmark properties as follows
Property | Description |
---|---|
Object Name | Enter a meaningful name. This name will display when creating rules that reference the business object |
Categories | Choose a category for your business object. Categories contain templates which will be discussed below |
Template | After choosing a category choose a template for you business object. Templates populate a business object with relevant Attributes. For example: |
Icon | The icon will be displayed everytime this business object will be represented throughout the system |
Description | Enter a meaningful description. The description should explain what business object represents ( i.e. client, patient, documents, etc) |
5. Click Save
Edit Business Object
- Open Application Studio of your solution
- From the left menu, select Date Management -> Business Objects
- Click the Edit button next to Business Object you want to modify
- Update the Modify Bookmark page.
- Click Save
Delete Business Object
- Open Application Studio of your solution
- From the left menu, select Data Management -> Business Object
- Click on the Delete button next to the Business Object you want to delete. Alternatively, you can select multiple Business Objects and select With Selected Do toolbar button and then Delete.