A-18 Oracle Fusion Middleware Users Guide for Oracle Business Process Management
Figure A–17 Navigating to Secure the Application
The Enable ADF Security dialog box appears.
13. Select ADF Authentication as shown in
Figure A–18 .
Creating Custom ADF Applications with Oracle Business Process Management Workspace Task Flows A-19
Figure A–18 Selecting ADF Authentication
Click Next. The Select Authentication Type dialog box appears.
14.
Select HTTP Basic Authentication as shown in Figure A–19
.
Note: If you choose ADF Authentication and Authorization, do the
following:
1.
In the Application Resources - Descriptors - META-INFO folder, open jazn-data.xml
.
2.
Select Resource Grants.
3.
Select Task Flow type.
4.
Select Show task flows imported from ADF libraries.
The taskflows are listed in the Resources listing.
5.
Select the appropriate taskflow that you have consumed in the application—for example, taskList-task-flow-definition.
6.
Add a Granted to ted role for the view permission.
A-20 Oracle Fusion Middleware Users Guide for Oracle Business Process Management
Figure A–19 Selecting HTTP Basic Authentication
For information about enabling ADF security in a Fusion web application see Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development
Framework.
Click Finish.
Creating Custom ADF Applications with Oracle Business Process Management Workspace Task Flows A-21
15.
Create an EAR deployment profile, build the EAR, and deploy it. To deploy the EAR, do the following:
a. From the application-level menu, navigate to Deploy then
TaskListTaskFlowSample_Appl...
.
Note: If you are using the task flow in federated mode, do the
following:
■
Pass the list of federated servers to the task flow. For more information, see
Section A.1.1.2, federatedServers.
■
Enable global trust between the federated servers. This is done so that the already ted user token is passed to all the federated
servers. Do the following:
1.
Login to the Oracle WebLogic Server console.
2.
Under Domain Structures, select the domain name base_domain. The domain name
may be different if a non-soa server is used. You can rename the domain name during
configuration.
3.
Select the Security tab.
4.
Click the Advanced link near the bottom Save
button.
5.
Give some password in the Credential: field. The same password needs to be
given for all the federated servers .
6. Click Save.
7.
Restart the server.
A-22 Oracle Fusion Middleware Users Guide for Oracle Business Process Management
Figure A–20 Deploying the Application
The Deployment Action dialog box appears.
b. Select Deploy to Application Server as shown in
Figure A–21 .
Figure A–21 Deploying to Application Server
Click Next. The Select Server dialog box appears. 16.
Select the server. Deselect Deploy to all Server instances in the domain. Click Next
. The Server Instances dialog box appears.
Creating Custom ADF Applications with Oracle Business Process Management Workspace Task Flows A-23
17. Select the server instance and click Finish.
18.
Access the following link, specifying the proper values for server and port. http:server:portTaskListTaskFlowSample-ViewController-cont
ext-rootfacestestSample.jspx .
A login popup appears. Log in as any user. The task list appears for the logged-in user as shown in
Figure A–22 .
If the task flow is used in federated mode, then the list of servers appear in the Show list. Selecting any combination of servers from the list refreshes the task list
to show all the tasks belonging to the selected servers. If you passed the parameter showServerColumn
as true, then the server column appears in the task list and indicates the server to which the task belongs.
Figure A–22 Process Workspace Task List
Click on any of the tasks title links to see the task details in a new browser window.
A.5.2 Sample 2: Creating an ADF Page with Task Flows
This sample shows how to create an ADF page and add three task flows to the page. The page will be divided into two parts. If the user selects TaskFlow from left side, the
corresponding task flow appears on the right side.
To create the ADF page with task flows: 1.
Follow Steps 1 to 6 of Section A.5.1, Sample 1: Creating an Application with an
Embedded Tasklist Task Flow. .
2. Configure the JSPX page as follows:
a. In Component Palette, select ADF Faces.
b. Drag and drop the Panel Stretch Layout on to the JSPX page.
c. Delete Top, Start, Bottom, and End from the JSPX page. The JSPX page will
look like Figure A–23
.