الثلاثاء، 7 أبريل 2020

ADF Taskflow – Passing Parameter

This document explains how a parameter is sent to a bounded taskflow.
We will do the following steps to understand the parameter flow.
1. Create a page to accept user input
2. Create a page to display the output
3. Create a bounded taskflow to be called from the unbounded taskflow and define the input parameter
4. Create the taskflow call activity to invoke the bounded taskflow
5. Assign the input parameter in the taskflow call
  1. Create a page to accept user input:
Create a page(page1.jspx) with a text input and a command button. Make this page as the default activity in the unbounded taskflow.
tf1
Create a managed bean with a string(inputVal) and assign it to the text input(testBean.inputVal).
tf2
  1. Create a page to display the output:
Create another page(page4.jspx) with a output text.
tf3
Assign a pageflow value(pageFlowScope.outputValue) to it.
tf4
  1. Create a bounded taskflow to be called from the unbounded taskflow and define the input parameter:
Create a bounded taskflow and make page4 the default activity. Define input parameter(pageFlowScope.outputValue) for this taskflow. Please note the parameter name: inputParameter1
tf5
  1. Create the taskflow call activity to invoke the bounded taskflow:
Invoke the created taskflow using a taskflow call activity.
tf6
  1. Assign the input parameter in the taskflow call:
In the taskflow definition, look for the input parameter and assign the value to testBean.inputVal.
tf7
We can test now by running page1.jspx.
tf8
Please note the flow of entered data.
  1. The entered data is assigned to testBean.inputVal
  2. inputVal becomes the input parameter of the taskflow definition.
  3. inputVal then becomes the input parameter of the called bounded taskflow and gets assigned to pageFlowScope.outputValue which gets displayed as the output text.

ليست هناك تعليقات:

إرسال تعليق

ADF: Programmatic View Object Using Ref Cursor.

ADF: Programmatic View Object Using Ref Cursor. Posted by:  Manish Pandey   April 25, 2013   in  ADF   Leave a comment   3758 Views Sometime...