Pages

Thursday, April 10, 2014

Business Logic Groups in oracle ADF BC

Business logic groups allow you to encapsulate a set of related control hints, default values, and validation logic. A business logic group is maintained separate from the base entity in its own file.

Business logic units are more useful when you are doing a enterprise based applications.

Each business logic group contains a set of business logic units. Each unit identifies the set of business logic that is loaded for the entity, based on the value of the attribute associated with the business logic group.

To create a business logic unit: Open the entity object -> General Tab -> Expand the Business logic Groups.

Click on the Add button and provide the relevant group name and select the attribute. You will only view the attributes which are allowed to create a business group.

Once the Group is created then you can create business logic unit.

Right click on entity object -> Select the new business logic unit - > Provide the Unit Name and Package. Jdev will automatically append the Entity object name and Group name.




Open the created business logic unit and select the attribute and click the "Override" button or right top.
And create you validations (Same as your entity business rules).





 And you can change all the UI Hints like label, Tool Tip and all.








Sample Code.

0 comments:

Post a Comment