First page Back Continue Last page Graphics

Sharing Data Controls


Sharing Data Controls

The ADF Model layer provides a scoping mechanism for data controls called a DataControlFrame. At any given time there is one current DataControlFrame. Whenever a data control is referenced, for example by the EL expression #{}, the ADF Model layer goes to the current DataControlFrame to find the data control. 

By default, the called task flow shares all data control instances with its caller (shared data control scope.) You can change that by setting the task flow’s data control scope to isolated. With this setting, a DataControlFrame is created for each task flow that is entered, with the result that each task flow has its own unique instance of any data controls it uses—it is isolated from its caller and does not share any data control instances.

The model layer uses the DataControlFrame to manage the transaction that the data controls within the frame participate in. The behavior of various task flow transactional settings is dependent on the data control scope, as shown in the following table: