Tuesday Nov 17, 2015

Remote TaskFlows/Remote Region - For Advanced Reusability in Oracle ADF

A new feature in Oracle ADF 12.2.1 is Remote TaskFlows (or Remote Regions) - this allows one application to have regions inside it that are populated from taskflows that are running as part of another application.

Initially some of you might be a bit confused - "wasn't this something that we were able to do with ADF libraries already? We could just package a taskflow from one app as an ADF library and use that library in the other application".

The slight distinction here is that the library approach had the taskflow running as part of your consuming application. Remote task flows on the other hand have the taskflow running as part of the other application and don't require the creation of a library. As a result they also don't require an ADF library update when the taskflow changes- the minute the changes are deployed on the remote server, your application will get the new version. 

One way of thinking about remote taskflows is as adding a "portal" like functionality to your ADF app - allowing one app to display parts of another app leveraging the other app resources for executing any logic. 

Here is a quick video demoing how to configure and run this.

The URLs you'll need for creating the remote region resource connection are:

http://yourserver:port/your-context-root/rtfquery

and

http://yourserver:port/your-context-root/rr

Note that there are some limitation on the type and functionality of taskflows that can be exposed as remote taskflows. And there are other things to consider such as security and session timeout settings. So have a read through the remote region documentation before you start leveraging this feature.

A couple of notes.

1. In the currently available 12.2.1 version of JDeveloper from OTN, there is a slight bug that will prevent you from creating the connection to the remote task flow - there is a patch available for this from Oracle Support - request the patch for bug 22132843 or 22093099.

2. At my OOW session about new features I mentioned that remote task flows are loaded in parallel, that is actually still not the case, while we started work on this capability - it didn't made it into 12.2.1. So remote task flows behave like other task flows and load in sequential way right now. 

Friday Jul 15, 2011

Converting ADF Pages to Reusable Page Fragments

So you finished building a great ADF Faces JSF page, and now you realize that you actually need the same functionality in 30 other places in your application. Well wouldn't it have been great to know about it before you started? What am I suppose to do now? How can I include one JSF page inside another JSF page?

Don't worry - JDeveloper and ADF come to the rescue.

ADF has some great reusability features for JSF pages in the form of TaskFlows, Page Fragments and Regions. And even if you didn't plan ahead of time to use those, you can still get your page to become a pagefragment and be included in other pages quite easily with the JDeveloper convert options for taskflows.

 Here is a small demo that shows how to take a regular ADF Faces page, and convert it to be a resuable page that you can include in multiple other pages.

Want to learn more about taskflows and regions - you can start with this ADF Controller Overview seminar I recorded.

And you can then learn even more things in the taskflow sessions on the ADF Insider seminar.

About

me
I'm a Director of Product Management for the Oracle Mobile and Development Tools.
Follow me:
Search

Archives
« February 2016
SunMonTueWedThuFriSat
 
1
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
     
       
Today