You are here

Business Components

ADF Tutorial Chapter 2: Basics of ADF Business Components

In Chapter 1 I have explained what we will build and how the data model looks like. Now it's time to do something with that data model and make it work for us!

Business Components allow us to easily map the database object and extend on it with business logic, validation and so on.

The idea behind Business Components it to abstract the data layer from the view layer. This is a key concept in the MVC pattern. Business Components will expose the interface to the view layer by using an Application Module which contains View Object. Those view objects will contain a specific usage of the data layer.

If this explanation sounded a little abstract, no worries. I will explain this later on with some examples and everything will become clear.

If you didn't start with chapter 1, please have a look at it because you need to the data model to be able to follow this tutorial.

In this chapter you will find answers to following questions:

  • What are entity objects
  • What are view objects
  • What is an application module
  • How do we create business components from tables
  • How to use the application module to test and populate the data model.

Best practices for using ADF Business Components in WebCenter

ADF Fusion web Applications and WebCenter Portal applications are two different types of applications. Although WebCenter Portal is based upon ADF it works a little different than a regular fusion web application.

For instance it is a good practice to separate the development of your portal and your taskflows. The reason for this is that you can reuse the taskflows in other portals or you can easily plug them into WebCenter Spaces.

When you are building a portal, you probably have to write some transactional taskflows that will connect to a custom database. A portal is not just about collaborative services or integrating external applications. Most of the time you have to build some functionality and include it into the portal.

Because WebCenter is using ADF, it is a wise decision to build those functionalities with ADF Business Components as your data layer.

When building Business Components for a portal there are a few best practices that I would like to recommend. They help to minimize the integration effort and maximize the reusability of your components which is one of the key features of a proper designed portal.

Oracle Fusion Middleware Partner Community Forum Malaga Summary

The OFM Partner forum in Malaga has just finished and it left some very good memories! This forum was even better than the one in Utrecht last year. A lot of the credits go to Juergen Kress and Hans Blaas who organized this event. They really did a very good job!

The venue of this event was in the NH Hotel at Malaga. A nice hotel with lots of room for all the people. My wife and I checked in on Monday and visited the city together with my colleagues from InfoMENTUM. Malaga is really a nice city with vibrant colours and people.

On Tuesday the event started at noon with registration and a lunch. This was the first opportunity to network and network is what I did. It's nice to see familiar faces from previous events. Some of them I met at the partner forum in Utrecht last year so it was a nice opportunity to catch up on the past year.

Reusing taskflows from an ADF application into WebCenter Spaces

When you are building a portal with WebCenter Spaces, you often want to extend WebCenter Spaces with your own functionality. This can be done by deploying portlets or by adding taskflows to WebCenter Spaces. There are distinct differences on when to go for portlets and when to go for taskflows. In short, when scalability is important you should go for portlets. When personalization is very important you also should go for portlets. If design is very important or integration with the security context then taskflows should be used. For more information on the differences I can point you to another blog post that discusses this topic in more dept.

This post will focus on how to add your own custom taskflows to WebCenter Spaces. Oracle has provided some documentation that explains how to do this. When I was following this documentation I faced some issues that weren't addressed so I will try to explain them here.

Using the username in a JSR 286 portlet with ADF business components in WebCenter

In my previous post i have explained how we can get the current username in JSR 286 portlet. In this post we will take it to the next level and use the username to power a view criteria in our model project.

So this post is more an example portlet that shows you how to use business components, taskflows and the username in a JSR 286 portlet.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer