Oracle WebCenter Portal (WCP) provides a list of activities that have recently occurred in a portal, called an activity stream, via a Representational State Transfer (REST) interface. This article summarizes accessing this activity stream from a mobile device, making use of the Oracle Service Bus (OSB), and the Oracle Mobile Application Framework (MAF). The WCP activities are persisted on the mobile device using the A-Team Mobile Persistence Extension for Oracle MAF, and status updates can be posted to WCP with the option of including location information from the device.
More information about the persistence-extension is available in the blog post: A-Team Mobile Persistence Extension for Oracle MAF.
This article describes a MAF application that accesses a WCP activity stream via OSB, persists those activities on the mobile device, and allows sending status updates back to WCP. The application's retrieving and posting uses the documented REST interface provided by WCP.
The following diagram summarizes the architecture and communications flow:
WCP is a web platform for creating intranets, extranets, composite applications, and self-service portals. Users interact with one or more portals, and those interactions are logged as activities in an activity stream. WCP records information about each activity, such as the user that performed the action, the action that was performed, and supporting information about the action. The supporting information varies according the the type of action. For example, the action of creating a document would include a link to the document that was created.
OSB connects and mediates the interaction between WCP and the mobile application. Since WCP makes the activity stream available via a REST interface, OSB consumes that interface as an External/Business Service. The format and content of those business-service REST messages are defined by WCP. OSB transforms those messages in a business service pipeline, providing a new REST interface for the mobile application. OSB provides this new interface a Proxy Service. The format and content of these proxy-service messages are defined by the OSB application. The content provided by the proxy service is typically a subset of the content provided by the business service, focused and refined for the specific needs of the mobile application.
The mobile application initially presents a list of portals. When a portal is selected, the activity stream for that portal is presented as a list. Selecting a particular activity stream item displays details about that item, such as the time stamp and additional information about the user that performed the action. If location information was included in the activity, this screen includes the street address where the activity took place.
When viewing the the activity stream for a portal, there is a menu option to post a status update message to that portal. Once posted, this message then appears in the activity stream for the portal. This message can be posted either with or without additional location information. The optional location information consists of the current latitude and longitude, as reported by the mobile device. The presence of this location information is what enables the display of the street address mentioned above.
All of the portal and activity information is persisted on the mobile device using the A-Team Mobile Persistence Extension for Oracle MAF. This allows browsing of portals and their activity streams while offline, then resynchronizing when connected.