First page Back Continue Last page Text

oracle adf workshop

Notes:


Passing Values to a Task Flow from a Task Flow Call Activity (continued)

By default, input parameters are passed by reference, although you can select the pass-by-value check box in the Property Inspector for the task flow call activity to pass by value. Mixing the two, however, can lead to unexpected behavior in cases where parameters reference each other.

Task flow call activity input parameters can be passed by reference only if managed bean objects are passed, not individual values, so the pass-by-value check box applies only to managed bean objects and is used to override the default setting of passing by reference. Individual values are only passed by value.

If you call a bounded task flow using a URL rather than a task flow call activity, you pass parameters and values on the URL itself.

To specify input parameters on the task flow call activity, perform the following steps:

1. Select the task flow call activity in the task flow diagram.

2. In the Property Inspector, click Parameters and expand the Input Parameters section:

Click Add and enter a name for the parameter, for example.

Enter a parameter value, for example, #{pageFlowScope.callingTaskflowParm}. The value specifies where the parameter value will be taken from within the calling task flow.

Optionally select the pass-by-value check box (by default, parameters are passed by reference to the called bounded task flow). Task flow call activity input parameters can be passed by value only if managed bean objects are passed, not individual values.

After you have specified an input parameter for the task flow call activity, you can specify a input parameter definition for the called ADF bounded task flow as explained previously.