Types Of Task Flow Activity
Types Of Task Flow Activity
Go to application new
Business components from table
Connection hr
Entity Object
View Object
RVO
Am
Lets select the department
Keep the location view
as a LOV for the location
So define that first we will create bounded task flow go to
view controller section New select adf task flow create with page fragment
View – Department
One more view – Employee
Control flow dep to emp
Control flow emp to dep
Try to give rename in task flow
Task flow ID : Master_TF
Display Name : Master-TF
I am creating one main page name as main-page.jspx
And drag and drop task flow as a region
Now we will pull the Department view table as read only table
on department.jsff page
and select single row selection this is mandatory for master
table
Lets a surround with a panel collection that we can place the button
And drag and drop one tool bar in tool facet then drag and
drop one button give name as ShowEmployee
I am giving AFStretchWidth on Property Inspector
Now we will pull the Employee view child table as read only
table on Employee.jsff page
and select single row selection table
Now lets surround with panel collection that we can place
the button
And drag and drop one and got to property inspector and
change the name of the button
We will give a Back button action name showdep
Now we can run the main-page.jspx page
And we can see the output
When I click the button, I will go employee page
Now
we can do Method call Activity
Now going to Application module and generate java class
Now I am writing the code: -
public void emptydepatmenttable() {
ViewObjectImpl
devtvc = this.getDepartmentsView1();
devtvc.executeEmptyRowSet();
}
I have create
view criteria with bind variable in Departments View Object
Filter out based on the location table
DepartmentsVC
is Viewcriteria name
BindLocId
is Bind variable Name
public void deptbyloc(String
locid){
ViewObjectImpl
deptvo = this.getDepartmentsView1();
ViewCriteria
deptvc = deptvo.getViewCriteria("DepartmentsVC");
deptvo.setNamedWhereClauseParam("BndLocId",
locid);
deptvo.applyViewCriteria(deptvc);
deptvo.executeQuery();
}
These are
the 2 methods I have created
Now I am go to client inter face
And pull the 2 methods
And go to task flow
Here we can see green color that is default activity
I have drag and drop method that is method call activity
Right click mark activity as default activity
I have given control flow
how to go to location search now
Got to departments.jsff page
Add one more button
I need to drag and drop
method as ADF parameter Form
Ok
Design this area
This one will give label
I have checked one more time
Lets design this container
Here rows put 1
Then drag the button in right side
Then go to the main-page and Run it
Its run with empty
I am entering 1700 locationId
showDept
Data came
Select 30 DeptId click ShowEmployees
Data refreshed
How to not go to the empty page when there is no employee of
a particular Department
Go to the task flow we will give drag and drop Router Activity
Control flow
Now remove this one
Goto property
Give Y
Create new expression
#{data.taskflow_view_EmployeePageDef.EmployeesView3Iterator.estimatedRowCount
== 0}
I have changed control flow to
#{data.taskflow_view_DepartmentPageDef.DepartmentsView1Iterator.estimatedRowCount
eq 0}
Running
Output
Here we can see ShowEmployee disable
I will enter LocId 1700 now its enable ShowEmployee
But when I click ShowEmployee But Data not changing
now we will check
I have changed ShowEmployee Button action : *showemp
Now it is changing
output
Now I am creating new page how to add and updates recard
First we have to create a view page addupdate.jsff page
Come to the datacontrol darg the Department view Instance as
a updatable form
We include Commit button and Rollback Button
Add Panel GroupLayou with Horizontal
Commit will be the give name as Save and Rollback will be
the name as Cancel
Lets see how to give the navigations that create update will
work separatly on the same page fragmet
Now I have drag and drop create insert page in Department
Table to task flow
It will should be onAdd with control flow case
Now connect from createInsert to AddorUpdateDept page
From Department.jsff page to AddorUpdateDept.jsff page add
control flow case name as onUpdate.
And return will be from AddorUpdateDept page to Department
page name as Back
Go to the Department Page add button
Action
And same as drag one more button and give it a name Update
and action is onUpdate
I am giving action Back in Cancel button
I have removed disable property Expression (Commit and Rollback)
Output
Now I am creating URL view
Control flow name as Kazabi
Go to property
https://fusion.mykajabi.com/login ---
Path
now got to Department and design this container for add the
Give the Action name
Output
When I click the kazabi button then move the kazabi site
Copy the button path source in Department Page
Same as doing Employee Page
Button – Kazabi
Past here
I have change the and drag and drop Wildcard floe case give the connection to URLView
Now go to cut the wildcard and URLView
ADF Task flow Template
Past in Template Task flow
Now we are create task flow TemplateTaskFlow
Now I am doing TaskFlowCallActivity
Change the Control flow
Delete control flow
And cut the Employee View
Past in Detail_Taskflow
Defaul Activity
Here I have drag and drop return activity
I have give the Control flow case
Given action same name to there
Here we can add some properties
Go to Default_taskflow right click Run As Dialog : “true” and Desplay Type : “inline-Popup”
Got some error now we need to Convert Employee.jsff to jspx
Right click and select Convertto Task Flow with Pages
Comments
Post a Comment