Hello All, In this post I’ll show how to reinitialise taskFlow in the dynamic region in an ADF Application.
We all use bounded task flows in ADF application development and to switch between multiple taskflows we use the concept of the dynamic region
Recently I came across a problem about the dynamic region and bounded task flows, Scenario is like this
I have dropped a BTF in the dynamic region and there is a link on the page to open that task flow and those who have used dynamic region would be familiar with this piece of code
and the important thing is that this BTF has two view activities (view1 and view2), view1 is default activity.
When the user clicks on the link it opens default activity in the dynamic region and then user navigate to second activity by clicking a button on default activity
Now user clicks the link again but this time page refreshed but default activity is not loaded, the dynamic region shows second activity (It is not expected as the requirement is to re-initialize task flow and load default activity again)
So to do that we need to refresh task flow (to Reinitialise taskflow) and for that just add one more line in the code, Bind region to bean and refresh it
Cheers 🙂 Happy Learning
An Oracle ACE, Blogger, Reviewer, Technical Lead working on Oracle ADF