WebCenter Portal Task Flow Customization in 12c O R A C L E W H I T E P A P E R J U N E

Similar documents
Generate Invoice and Revenue for Labor Transactions Based on Rates Defined for Project and Task

Creating Custom Project Administrator Role to Review Project Performance and Analyze KPI Categories

Veritas NetBackup and Oracle Cloud Infrastructure Object Storage ORACLE HOW TO GUIDE FEBRUARY 2018

Tutorial on How to Publish an OCI Image Listing

An Oracle White Paper November Primavera Unifier Integration Overview: A Web Services Integration Approach

JD Edwards EnterpriseOne Licensing

Oracle Fusion Configurator

An Oracle White Paper July Oracle WebCenter Portal: Copying a Runtime-Created Skin to a Portlet Producer

An Oracle White Paper December, 3 rd Oracle Metadata Management v New Features Overview

Load Project Organizations Using HCM Data Loader O R A C L E P P M C L O U D S E R V I C E S S O L U T I O N O V E R V I E W A U G U S T 2018

Installation Instructions: Oracle XML DB XFILES Demonstration. An Oracle White Paper: November 2011

Oracle CIoud Infrastructure Load Balancing Connectivity with Ravello O R A C L E W H I T E P A P E R M A R C H

Oracle Cloud Applications. Oracle Transactional Business Intelligence BI Catalog Folder Management. Release 11+

Oracle DIVArchive Storage Plan Manager

Correction Documents for Poland

Pricing Cloud: Upgrading to R13 - Manual Price Adjustments from the R11/R12 Price Override Solution O R A C L E W H I T E P A P E R A P R I L

Oracle Secure Backup. Getting Started. with Cloud Storage Devices O R A C L E W H I T E P A P E R F E B R U A R Y

April Understanding Federated Single Sign-On (SSO) Process

Oracle Data Provider for.net Microsoft.NET Core and Entity Framework Core O R A C L E S T A T E M E N T O F D I R E C T I O N F E B R U A R Y

Oracle WebLogic Portal O R A C L E S T A T EM EN T O F D I R E C T IO N F E B R U A R Y 2016

Loading User Update Requests Using HCM Data Loader

Automatic Receipts Reversal Processing

Frequently Asked Questions Oracle Content Management Integration. An Oracle White Paper June 2007

Configuring Oracle Business Intelligence Enterprise Edition to Support Teradata Database Query Banding

Handling Memory Ordering in Multithreaded Applications with Oracle Solaris Studio 12 Update 2: Part 2, Memory Barriers and Memory Fences

August 6, Oracle APEX Statement of Direction

Achieving High Availability with Oracle Cloud Infrastructure Ravello Service O R A C L E W H I T E P A P E R J U N E

Transitioning from Oracle Directory Server Enterprise Edition to Oracle Unified Directory

TABLE OF CONTENTS DOCUMENT HISTORY 3

Using the Oracle Business Intelligence Publisher Memory Guard Features. August 2013

Migration Best Practices for Oracle Access Manager 10gR3 deployments O R A C L E W H I T E P A P E R M A R C H 2015

Migrating VMs from VMware vsphere to Oracle Private Cloud Appliance O R A C L E W H I T E P A P E R O C T O B E R

Working with Time Zones in Oracle Business Intelligence Publisher ORACLE WHITE PAPER JULY 2014

An Oracle White Paper October The New Oracle Enterprise Manager Database Control 11g Release 2 Now Managing Oracle Clusterware

Technical Upgrade Guidance SEA->SIA migration

Oracle Service Registry - Oracle Enterprise Gateway Integration Guide

Bastion Hosts. Protected Access for Virtual Cloud Networks O R A C L E W H I T E P A P E R F E B R U A R Y

VISUAL APPLICATION CREATION AND PUBLISHING FOR ANYONE

Cloud Operations for Oracle Cloud Machine ORACLE WHITE PAPER MARCH 2017

An Oracle White Paper October Deploying and Developing Oracle Application Express with Oracle Database 12c

Oracle Flashback Data Archive (FDA) O R A C L E W H I T E P A P E R M A R C H

Siebel CRM Applications on Oracle Ravello Cloud Service ORACLE WHITE PAPER AUGUST 2017

Oracle Web Service Manager 11g Component Level Role Authorization (in SOA Suite) March, 2012

SonicMQ - Oracle Enterprise Gateway Integration Guide

Leverage the Oracle Data Integration Platform Inside Azure and Amazon Cloud

Oracle WebCenter Portal 11g Developer Workshop

Oracle Communications Interactive Session Recorder and Broadsoft Broadworks Interoperability Testing. Technical Application Note

PeopleSoft Fluid Navigation Standards

Subledger Accounting Reporting Journals Reports

Oracle Data Masking and Subsetting

RAC Database on Oracle Ravello Cloud Service O R A C L E W H I T E P A P E R A U G U S T 2017

Application Container Cloud

Oracle Clusterware 18c Technical Overview O R A C L E W H I T E P A P E R F E B R U A R Y

Benefits of an Exclusive Multimaster Deployment of Oracle Directory Server Enterprise Edition

Using Oracle In-Memory Advisor with JD Edwards EnterpriseOne

Oracle Application Development Framework Overview

Oracle Virtual Directory 11g Oracle Enterprise Gateway Integration Guide

October Oracle Application Express Statement of Direction

Oracle Fusion Middleware 11g Oracle Access Manager Frequently Asked Questions June 2009

Oracle JD Edwards EnterpriseOne Object Usage Tracking Performance Characterization Using JD Edwards EnterpriseOne Object Usage Tracking

ORACLEAS PORTAL 10g (10.1.4) INTEGRATE YOUR ENTERPRISE CONTENT MANAGEMENT SYSTEMS INTO ORACLE PORTAL

Deploy VPN IPSec Tunnels on Oracle Cloud Infrastructure. White Paper September 2017 Version 1.0

Oracle WebCenter Portal 11g Developer Workshop

Oracle Service Cloud Agent Browser UI. November What s New

Oracle NoSQL Database For Time Series Data O R A C L E W H I T E P A P E R D E C E M B E R

An Oracle White Paper October Release Notes - V Oracle Utilities Application Framework

Extreme Performance Platform for Real-Time Streaming Analytics

Repairing the Broken State of Data Protection

Installing Oracle WebCenter Sites on Oracle Java Cloud Service

An Oracle White Paper July Methods for Downgrading from Oracle Database 11g Release 2

Deploying Custom Operating System Images on Oracle Cloud Infrastructure O R A C L E W H I T E P A P E R M A Y

NOSQL DATABASE CLOUD SERVICE. Flexible Data Models. Zero Administration. Automatic Scaling.

SOA Cloud Service Automatic Service Migration

Oracle VM 3: IMPLEMENTING ORACLE VM DR USING SITE GUARD O R A C L E W H I T E P A P E R S E P T E M B E R S N

StorageTek ACSLS Manager Software Overview and Frequently Asked Questions

Oracle NoSQL Database Parent-Child Joins and Aggregation O R A C L E W H I T E P A P E R A P R I L,

Hard Partitioning with Oracle VM Server for SPARC O R A C L E W H I T E P A P E R J U L Y

Oracle Enterprise Data Quality New Features Overview

Establishing secure connections between Oracle Ravello and Oracle Database Cloud O R A C L E W H I T E P A P E R N O V E M E B E R

Oracle Financial Consolidation and Close Cloud. What s New in the November Update (16.11)

Deploying the Zero Data Loss Recovery Appliance in a Data Guard Configuration ORACLE WHITE PAPER MARCH 2018

Integrating Oracle SuperCluster Engineered Systems with a Data Center s 1 GbE and 10 GbE Networks Using Oracle Switch ES1-24

Oracle WebCenter Portal 11g Developer Workshop

CONTAINER CLOUD SERVICE. Managing Containers Easily on Oracle Public Cloud

Oracle Access Manager 10g - Oracle Enterprise Gateway Integration Guide

Oracle Business Activity Monitoring 12c Best Practices ORACLE WHITE PAPER DECEMBER 2015

Oracle JD Edwards EnterpriseOne Object Usage Tracking Performance Characterization Using JD Edwards EnterpriseOne Object Usage Tracking

Oracle WebCenter Portal 11g Developer Workshop

Oracle Mobile Application Framework

Sun Fire X4170 M2 Server Frequently Asked Questions

An Oracle White Paper February Combining Siebel IP 2016 and native OPA 12.x Interviews

APPLICATION BUILDER CLOUD. Application Creation Made Easy

SecureFiles Migration O R A C L E W H I T E P A P E R F E B R U A R Y

TABLE OF CONTENTS DOCUMENT HISTORY 3

Technical White Paper August Recovering from Catastrophic Failures Using Data Replicator Software for Data Replication

An Oracle White Paper September Security and the Oracle Database Cloud Service

Handling Memory Ordering in Multithreaded Applications with Oracle Solaris Studio 12 Update 2: Part 1, Compiler Barriers

Oracle FLEXCUBE Direct Banking Release Dashboard Widgets Transfer Payments User Manual. Part No. E

Oracle FLEXCUBE Direct Banking Release Corporate Cash Management User Manual. Part No. E

Oracle Financial Services Regulatory Reporting for US Federal Reserve Lombard Risk Integration Pack

Transcription:

WebCenter Portal Task Flow Customization in 12c O R A C L E W H I T E P A P E R J U N E 2 0 1 7

Disclaimer The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle s products remains at the sole discretion of Oracle. WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

Table of Contents Introduction 1 Understanding WebCenter Task Flow Customization Process 1 Preparing a Customizable WebCenter Portal Application 1 Creating Customization Classes 2 Making Your Customization Classes Available to JDeveloper 4 Enabling Seeded Customizations for View Projects 5 Configuring Design Time Customization Layers for JDeveloper 6 Configuring the adf-config.xml File 7 Customizing WebCenter Portal Task Flows 8 Setting up for WebCenter Portal Task Flows 8 Applying Customizations 11 Applying Customization to the Deployed WebCenter Portal Application 11 Removing Customization 12 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

Introduction WebCenter Portal exposes its common functionalities using task flows (ADF Libraries). With the JDeveloper Customization Developer role, customers can customize WebCenter Portal task flows to extend or alter the out-of-the-box look and feel and functionality. The beauty of the JDeveloper Customization Developer role is that look and feel of the out-of-the-box shipped task flows of WebCenter Portal can be altered without actually writing any code. This document describes the steps to alter the look and feel of the out-of-the-box shipped task flows using the JDeveloper Customization Developer role. Understanding WebCenter Task Flow Customization Process When task flow customizations are applied to a deployed WebCenter Portal, customizations are applied to all instances of the task flow. Hence, you need not repeat these customizations for each specific page, where the task flow is being used. For WebCenter Portal task flow customizations, create seeded customizations for task flows in an ADF Fusion technology application and package the task flow customizations in a JAR archive using JDeveloper. Import the seeded customizations later to the MDS repository attached to the WebCenter Portal instance. Preparing a Customizable WebCenter Portal Application Create an ADF Fusion application with a default role as shown in Figure 1. Figure 1. Create ADF Fusion Application 1 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

Creating Customization Classes A customization class is the interface that MDS uses to define which customization applies to the base definition metadata. Each customization class defines a customization layer (for example, site or user) and can contain multiple layer values. For a task flow customization, use the SiteCC layer. The customization classes that are used in the application should be available in JDeveloper when customizing the application. This white paper uses the approach of creating the CC classes in a sample application. Later, the CC classes are packaged in a JAR and placed under the JDeveloper classpath. To create a customization class 1. In the application ViewController project of your newly created ADF Fusion application, add a new java class named WCSiteCC, extending oracle.mds.cust.customizationclass (see Figure 2). Figure 2. Create Customization Classes 2 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

2. In WCSiteCC.java, add the code. The following is a sample WCSiteCC Class code. package view; import java.io.ioexception; import java.io.inputstream; import java.util.properties; import oracle.mds.core.metadataobject; import oracle.mds.core.restrictedsession; import oracle.mds.cust.cachehint; import oracle.mds.cust.customizationclass; public class WCSiteCC extends CustomizationClass { public WCSiteCC() { super(); } @Override public CacheHint getcachehint() { // TODO Implement this method return null; } @Override public String getname() { // TODO Implement this method return "site"; } } @Override public String[] getvalue(restrictedsession mdssession, MetadataObject mo) { // TODO Implement this method return new String[]{"webcenter"}; } 3. Rebuild the ViewController project. 3 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

Making Your Customization Classes Available to JDeveloper After you create the customization classes, you must make them available to JDeveloper so that you can use them when implementing customizations. When working with the Customization Developer role, your customization classes must be available on Project s classpath. To make the customization classes 1. In the Application window of the JDeveloper, right-click the ViewController project and select Project Properties. 2. In the Project Properties dialog, select Deployment, then click New Profile. 3. In the Create Deployment Profile dialog (Figure 3), select JAR File from the Profile Type drop-down list. 4. In Deployment Profile Name, enter the deployment profile name, for example mycc, and click OK. Figure 3. Create a Deployment Profile 5. Edit the deployment profile to add the WCSiteCC class (Figure 4). 4 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

Figure 4. Edit the JAR Deployment Profile Properties 6. Click OK to save the profile. 7. Click OK to close project properties 8. From the File menu, click Save All. 9. In the Application window of the JDeveloper, right-click the ViewController project and select Deploy, then select the newly created deployment profile, for example, mycc. 10. In the Deploy dialog, select Deploy to JAR File, and click Finish. This deploys the jar profile under <Application>/ViewController/deploy/myCC.jar. where <Application> is the name of the application. 11. In the Application window of the JDeveloper, right-click the ViewController project, and select Project Properties. 12. In the Project Properties dialog, select Libraries and Classpath, and then select Add Jar/Directory to add mycc.jar to view Controller s Classpath. Enabling Seeded Customizations for View Projects To enable seeded customization for view projects 1. In the Application window of the JDeveloper, right-click the ViewController project and select Project Properties. 2. In the Project Properties dialog, select ADF View. 3. Select the Enable Seeded Customizations check box (Figure 5). 5 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

Figure 5. Enable Seeded Customization for View Projects 4. Click OK. 5. From the File menu, click Save All. Configuring Design Time Customization Layers for JDeveloper For customizing WebCenter Portal task flows, configure the CC layer values that can be used in the JDeveloper Customization role. In JDEV_HOME/jdev/CustomizationLayerValues.xml, you can configure the CC layer values. For WC task flow customizations, we use Site layer with value as WebCenter. For example, <cust-layers xmlns="http://xmlns.oracle.com/mds/dt"> <cust-layer name="site" id-prefix="s"> <cust-layer-value value="webcenter" display-name="webcenter"/> </cust-layer> </cust-layers> 6 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

Based on the above setting, the JDeveloper Customization role considers WebCenter as the layer value for Site layer. Note: The site layer value is case sensitive. Configuring the adf-config.xml File The adf-config.xml file of the application must have an appropriate cust-config element in the mds-config section. The cust-config element allows clients to define an ordered and named list of customization classes. You can use the overview editor for the adf-config.xml file to add customization classes. To add the customization classes 1. Open the adf-config.xml file of your application in the Overview editor. 2. On Overview editor, select MDS. 3. Add the WCSiteCC class to generate MDS Customization configuration (see Figure 6). Figure 6. Add Customization Classes 4. From the File menu, click Save All. 7 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

The following is the example of the customization class order in the adf-config.xml file: <adf-config xmlns="http://xmlns.oracle.com/adf/config"> <adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config"> <mds-config xmlns="http://xmlns.oracle.com/mds/config" version="11.1.1.000"> <cust-config> <match path="/"> <customization-class name="view.wcsitecc"/> </match> </cust-config> </mds-config> </adf-mds-config> </adf-config> Customizing WebCenter Portal Task Flows Out-of-the- box all the WebCenter Portal task flows have well defined UI and behaviour, that is, business logic. In certain customer deployments, out-of-the- box look and feel or behaviour of the task flows may not be suitable. You may want to modify the look and feel of the portal server or may want to add your own task flow on one of the existing WebCenter Portal task flow or you may want to modify the UI of a WebCenter Portal task flow by eliminating few buttons on the toolbar or add your own button. This can be accomplished without opening the WebCenter Portal task flow JARs and modifying the shipped code of WebCenter Portal. The JDeveloper Customization role is a powerful mechanism available, which allows customization of ADF Library without changing the code in the base library JAR. Since WebCenter Portal and ADF layer are built on top of MDS, the JDeveloper Customization role can be leveraged to extend WebCenter Portal task flows. All WebCenter Portal task flows are packaged as ADF Library so task flow customization is possible in JDeveloper design time. Once the setup is done (see Configuring Design Time Customization Layers for JDeveloper) is ready for allowing task flow customization for WebCenter Portal task flows. Setting up for WebCenter Portal Task Flows This Setup is a onetime activity in JDeveloper used to set up the workspace to allow the customization of WebCenter Portal task flows. This step is mandatory before working on any of the task flow use cases mentioned above. To setup workspace for WebCenter portal task flow 1. For customizing WebCenter Portal task flows, you need to include WebCenter Portal task flow view JAR in your project. Perform the following steps: a. Navigate to WC_ORACLE_HOME/webcenter/modules/oracle.webcenter.framework/ directory on the machine where WebCenter Portal server is installed. b. Copy the task flow containing the JAR that you intend to customize to a location visible from JDeveloper install. For example, if you want to customize search taskflow, you would copy search-service-view.jar. 2. Run the JDeveloper Studio in Default Role. 8 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

3. In the application window s Projects palette select, select Libraries & Classpath. 4. Click Add Jar / Directory. 5. Navigate to the WebCenter Portal task flow directory and, select the task flow view JAR you added in step 8 above. 6. Click Select and then click OK on the project properties. 7. From the File menu, click Save All. 8. In the application s Projects palette select the Navigate Display Options icon and then click Show Libraries (Figure 7). You can see All Libraries that have been included in the ViewController project in navigator. Figure 7. Application Projects Palette 9. Select Tools, then Switch Roles, then Customization Developer to start JDeveloper in Customization role. 10. In JDeveloper Customization role, verify that the layer site is selected with WebCenter as layer value in the Customization Context window (Figure 8). 9 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

Figure 8. Customization Context 5. Select jsff or jspx from the WebCenter Portal task flow and start the customization. Figure 9 shows an example for customizing createtopic.jsff in Discussion Forum service. All customizations will be saved under the following directory: Application Directory/ViewController/libraryCustomizations Figure 9. Customize createtopic.jsff in Discussion Forum Service, an example 10 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

Applying Customizations The output of the task flow customization is the generated MDS customization. The customizations show up as the.xml.xml or.jspx.xml or jsff.xml file in the project. These customization documents are essentially the instructions for MDS to apply delta on top of the base document that is shipped to show the customized behaviour at runtime. Applying Customization to the Deployed WebCenter Portal Application In order to view the customization done in Customizing WebCenter Portal Task Flows, these customizations need to be transferred to the MDS repository of the deployed WebCenter Portal instance. We recommend you to back up the MDS schema before performing this step, as this step updates runtime WebCenter Portal metadata repository.. You can restore back to original state in case of any incorrect customization that can make the task flow non functional. To apply customization to deployed portal application 1. Rebuild the application in JDeveloper as a default user. 2. Create a JAR profile and package the library customizations under ViewController project in a JAR archive. For customization to get in Jar, add directory for ViewController/libraryCustomizations to Contributors in the Edit JAR Deployment Profile dialog as shown in Figure 10. Figure 10. Edit JAR Deployment Profile Properties 11 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

3. Run the new deployment profile and take the generated JAR that contains customizations to a machine where WebCenter portal is deployed. Extract the jar content to a temporary directory on the machine, for example, /tmp/wc-cust. 4. Use the importmetadata WLST command to import these task flow customizations into the WebCenter Portal application s MDS repository. The following is the example command to import customization: wls:/weblogic/serverconfig>importmetadata(application='webcenter', server='wc_portal', fromlocation='/tmp/wc-cust', docs= /** ) For more details on the importmetadata WLST commands, see WLST Command Reference for Infrastructure Components. Removing Customization The customization applied in Applying Customizations can be removed if you choose. Once removed, the WebCenter Portal task flow behaviour or look and feel reverts to the original shipped product. Use the deletemetadata WLST command to remove the applied customization. Note: Execute the deletemetadata WLST command with caution, as incorrect use of this command may cause loss of metadata documents. The following is the example for the deletemetadata WLST command: deletemetadata(application, server, docs, [restrictcustto], [excludeallcust], [excludebasedocs], [excludeextendedmetadata], [cancelonexception], [applicationversion]) For more information about the deletemetadata WLST command, WLST Command Reference for Infrastructure Components. 12 WEBCENTER PORTAL TASK FLOW CUSTOMIZATION IN 12C

Oracle Corporation, World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065, USA Worldwide Inquiries Phone: +1.650.506.7000 Fax: +1.650.506.7200 C O N N E C T W I T H U S blogs.oracle.com/oracle facebook.com/oracle twitter.com/oracle oracle.com Copyright 2016, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only, and the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document, and no contractual obligations are formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without our prior written permission. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. 0617 White Paper Title June 2017 Author: Nitin Shah Contributing Authors: Amit Baxi