X

Shay Shmeltzer's Oracle Development Tools Tips

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

Shay Shmeltzer
Director of Product Management - Oracle

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. 

Join the discussion

Comments ( 14 )
  • Joshua Wednesday, March 2, 2016

    Is there any additional settings to be done to make this work?

    Do we need to install remote region patch?


  • Shay Shmeltzer Thursday, March 3, 2016

    Joshua - as the blog says you need to install a patch for 12.2.1


  • guest Wednesday, March 16, 2016

    Installed the patch and its working fine,

    Is there a possibility to transfer a parameter/data from consumer app to producer app.


  • Shay Shmeltzer Wednesday, March 16, 2016

    guest - yes, if a task flow has parameters defined for it, you'll be able to assign value for them when you add that dynamic region.


  • guest Thursday, March 17, 2016

    @Shay Shmeltzer: Thanks its working, but i have noticed that it's performance is bit slow i.e intial loading of the region or refreshing the region after few seconds lets just say after 10 secs , do you have any suggestion to make its performance fast?


  • guest Saturday, March 19, 2016

    How do we depoy the producer application in the server?

    Is it in the form of jar?


  • guest Monday, March 21, 2016

    How to deploy producer app in to the server?


  • Shay Shmeltzer Monday, March 21, 2016

    guests - in terms of deployment of the producer - you deploy it like a regular ADF application (using the EAR).

    The application then runs on its own server.

    As far as performance - the app is running on a separate instance so there is a bit of overhead to get the data/UI over to your instance. But beyond that, regular ADF tuning is still valid on both apps.


  • guest Tuesday, March 22, 2016

    Can we add producer app programmaticly?


  • antowan Friday, June 17, 2016

    Hello,

    please show post with securtiy sample,

    really thanks


  • guest Wednesday, January 11, 2017

    Hello

    I have master application and 4 module that are shared library on webligic.

    modules need to use together. By the way I implemented global menu and one region in master app to access all modules pages and control user accessibility (by filtering menu).

    Question:

    Is it ok that I use remote region for access to each module in master application?

    Is here any suggestion?


  • nitin sahu Wednesday, February 22, 2017

    Hi,

    I am trying to access remote task flow with security enable, but facing error.

    I also observed that producer and consumer both required to access similar skin.


  • Vincent Monday, September 18, 2017
    Hello,

    When I try to access a remote taskflow with Authentication and Authorization set on the Producer app, the consumer page is automatically redirected to the Producer/adfAuthentication.

    How can I avoid this ?

    The taskflow and page fragment are not secured in the Producer app (granted to test-all).

    Any suggestion ?

    Thanks by advance.
  • shay Monday, September 18, 2017
    Vincent,
    You need to implement single-sign-on between the two applications if you want to eliminate the need to re-authenticate.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.