Databases Reference
In-Depth Information
5.
Check the
Generate Class If It Does Not Exist
opion and then click on the
OK
buton.
6.
Now the
employeeBean
name is added to the managed bean list in the
Select Method
dialog.
7.
Add a method named
prepageEmployeeQuery()
in the method secion
and click on
OK
.
8.
Now the
EmployeeBean.java
will be opened with the
prepageEmployeeQuery()
method.
9.
Inside the method, change the return type to
String
and then just type
return "employee";
10.
Now change the name of the method call acivity to
prepageEmployeeQuery
.
This is opional, but it is a standard to have the same name as the method for the
method call acivity.
11.
So now whenever you double-click on the method acivity, it will take you to the
prepageEmployeeQuery()
method from the Java class.
The green circular border for the activity indicates that the activity is
the default activity. This can be toggled by right-clicking on the task
flow and navigating to
Mark Activity
|
Default Activity
.
What just happened?
We have now created the task low with a method call acivity that calls a method from
EmployeeBean.java
. The
prepageEmployeeQuery()
method returns a string variable
as
employee
.
We have kept the scope of the managed bean as
pageflowScope
, which means that the
bean is visible only within
createEmployeeFlow
.
Have a go hero - explore the task flow
Now just look at the task flow that you have created and then do the following:
Find out what are the tags available for the task flow
Idenify the
fixed-outcome
and the
toString
atributes
Search WWH ::
Custom Search