Oracle Files Administrator's Guide Release 2 (9.0.4.1) Part Number B10872-01 |
|
|
View PDF |
Oracle Files supports several different types of customization. You can change the look and feel of the Oracle Files user interface, and you can define custom workflows to create particular review processes in Oracle Files.
This chapter discusses these different types of customization. Topics include:
Some organizations have "look and feel" standards (such as the requirement to use a particular company logo or color scheme) within their respective environments. The Web (HTTP) interface for Oracle Files can be customized to match those standards.
System Administrators can make the following customizations to the Oracle Files Web user interface (UI):
Any changes must be made on each middle-tier deployment of Oracle Files.
Note: You should make copies of edited files, as all changes will be lost when any patches or upgrades are applied to the Oracle Files software. |
You can change the colors in the Oracle Files Web UI by editing an XML style sheet called custom.xss
. This file is located in:
$ORACLE_HOME/j2ee/OC4J_iFS_files/applications/files/files/cabo/styles/custom.xss
The colors of the Oracle Files Web UI are derived from four defined colors. To change the color scheme, replace one or more of these four colors with colors of your own choosing.
You can change the fonts in the Oracle Files Web UI by editing an XML style sheet, similar to changing Web UI colors. This file, called custom.xss
, is located in:
$ORACLE_HOME/j2ee/OC4J_iFS_files/applications/files/files/cabo/styles/custom.xss
Fonts on buttons and images in the Oracle Files Web UI cannot readily be changed.
You can change particular images/logos in the Oracle Files Web UI by replacing the source images on the middle-tier machine(s). Oracle Files images are located in the following directory:
$ORACLE_HOME/j2ee/OC4J_iFS_files/applications/files/files/static/files
Any new image can be used in place of an original image/logo in the Web UI, as long as the new image is the same height and width as the original.
You can customize the text that appears in the title bar of the Oracle Files Web UI. To alter the title bar text, edit the file in the following location:
$ORACLE_HOME/j2ee/OC4J_iFS_files/applications/files/files/WEB-INF/uixsrc/files/ template/pagelayout/FilespageLayout.uit
Look for the following lines:
<boundAttribute name = "htmlTitle"> <concat> <dataObject select = "ORACLE_FILES_ONLINE" source = "files:strings"/> <fixed text = " - "/> <if> <dataObject select="isTrain" source="ui:rootAttr"/> <messageFormat data:format="title@ui:rootAttr"> <dataObject select="stageText"> <ifsui:dataObjectListIndex data:index="selectedTrainStep@ui:rootAttr" data:value="trainSteps@ui:rootAttr"/> </dataObject> </messageFormat> <dataObject select = "title" source = "ui:rootAttr"/> </if> </concat> </boundAttribute>
Replace:
<dataObject select = "ORACLE_FILES_ONLINE" source = "files:strings"/>
with the following line:
<fixed text ="Your Company Name"/>
The following areas in Oracle Files cannot be customized in Oracle Collaboration Suite, Release 2:
Oracle Files comes with a default workflow process. Although you cannot customize this default process, you can define your own custom workflow process in Oracle Workflow, then register it with Oracle Files.
A workflow designer, a person with the necessary skills to design a workflow process in Oracle Workflow Builder, creates the custom workflow process, then the Site Administrator registers the custom workflow process with Oracle Files.
Refer to Chapter 3, "Defining a Workflow Process" in the Oracle Workflow Guide for detailed information about creating a custom workflow process definition. You can access the Oracle Workflow Guide at the following URL:
http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage#index-WOR
Creating and registering a custom workflow involves the following four steps:
The workflow process definition must handle the following events:
These are the three events that are sent from Oracle Files to Oracle Workflow. Once the workflow designer has created the workflow process definition, he or she uploads the .wft to the workflow schema.
Oracle Files and Oracle Workflow communicate with one another by sending a series of messages over Advanced Queueing (AQ). First, Oracle Files sends a Launch Event to Oracle Workflow to start the workflow process. Next, Oracle Workflow responds by sending the URL that Oracle Files needs to access the workflow process status page. After voting is complete (i.e., after the required approvers have responded), Oracle Workflow sends a status message to Oracle Files, indicating whether the status is Approved or Rejected. Finally, Oracle Files sends a Response Event to Oracle Workflow that indicates whether the workflow process concluded successfully, or failed.
If the workflow process expired or was cancelled, Oracle Files sends a Cancel Event to Oracle Workflow.
The following sections provide details on each of these messages in sequence.
Oracle Files initiates a new workflow process by sending a Launch Event (message type=Start Event
) to Oracle Workflow. To see an example of a Launch Event, refer to oracle.ifs.files.review
, which is part of the Oracle Files default workflow process.
The Launch Event provides the following parameters:
Oracle Workflow must respond to the Launch Event by providing Oracle Files with the URL to access the workflow process status page (message type=PROCESSURL
).
Use the following workflow function to retrieve the URL:
wf_monitor.GetEnvelopeUrl(wf_core.Translate('WF_WEB_AGENT'), itemtype, itemkey, 'NO');
The PROCESSURL Event must contain the following parameters:
GetEnvelopeUrl()
function.
After voting is complete (i.e., after the required approvers have responded), Oracle Workflow must send a status message to Oracle Files, indicating whether the status is Approved or Rejected (message type=PROCESSSTATUS
).
The PROCESSSTATUS Event must contain the following parameters:
The Response Event is the last message in the workflow process (message type=Response Event
). Oracle Files sends the Response Event to Oracle Workflow, indicating whether the workflow process concluded successfully, or failed. To see an example of a Response Event, refer to oracle.ifs.files.response
, which is part of the Oracle Files default workflow process.
The Response Event provides the following parameters:
Oracle Files sends a Cancel Event if the workflow process expired, or was cancelled, on the Oracle Files side (message type=Cancel Event
). Oracle Workflow must respond to this event by canceling the corresponding workflow process. To see an example of a Cancel Event, refer to oracle.ifs.files.cancel
, which is part of the Oracle Files default workflow process.
The Cancel Event provides only one parameter:
After the custom workflow process definition is complete, the workflow designer creates the Launch, Response, and Cancel Events in Oracle Workflow.
Refer to Chapter 13, "Managing Business Events" in the Oracle Workflow Guide for detailed information about creating events in Oracle Workflow.
After the Launch, Response, and Cancel events have been created in Oracle Workflow, the workflow designer creates event subscriptions for each of the events:
wf_engine.AbortProcess()
function.Refer to Chapter 13, "Managing Business Events" in the Oracle Workflow Guide for detailed information about creating event subscriptions in Oracle Workflow.
After creating the event subscriptions, the workflow designer must ask the Site Administrator to register the custom workflow process with Oracle Files, with the Start, Response, and Cancel Event included in the request.
The Site Administrator can register a custom workflow process definition on the Registered Workflow Process Definitions page in Oracle Files. Registering the custom workflow process definition will make it available to Workspace Administrators and Participants in a Subscriber.
Site Administrators can register, edit, or delete a custom workflow process definition.
A registered workflow process definition consists of the Workflow Process Definition Name, along with the Launch Event, Response Event, and Cancel Event strings.
To register a custom workflow process definition:
After you have registered a workflow process definition, you can edit its properties. These properties include the Workflow Process Definition Name, along with the Launch Event, Cancel Event, and Response Event strings.
To edit the Registered Workflow Process Definition properties:
You can also change the Workflow Process Definition Name.
To delete a Registered Workflow Process Definition:
In order to configure Oracle Workflow to send e-mail notifications, you must perform the following three tasks:
Set up the Oracle Workflow Notification Mailer on the middle-tier host where Oracle Workflow is installed.
PATH
to sendmail binary.LD_LIBRARY_PATH
to $OH/lib
(if not already set).sqlplus <workflow schema>/<password>@<connect_string>
wfmail.snd
, is located under $ORACLE_HOME/bin
.wfmail.tag
, is located under $ORACLE_HOME/wf/res
.wfmail.cfg
, is located under $ORACLE_HOME/wf/res
.You must create a configuration file for the Oracle Workflow Notification Mailer. Edit the sample configuration file, wfmail.cfg
, located under $ORACLE_HOME/wf/res
.
The content of the configuration file is formatted as follows:
#Description PARAMETR1=<value1> #Description PARAMETR2=<value2>
Edit the following parameters in the wfmail.cfg
file:
<username>/<password>@<connect_string>
/var/mail/<Workflow UNIX user account>
For example:
/var/mail/Workflow
some_admin@yourDomainName
http://server_name[:portID]/pls/new_workflowDAD/default_homepage.home
For example:
http://myserver:8799/pls/ocs_wf/wfa_html.home
$ORACLE_HOME/wf/res/wfmail.tag
All other parameters take the default values.
After you have set up the Oracle Workflow Notification Mailer and created a configuration file, you should run the Notification Mailer in the background. Follow these instructions to keep the Notification Mailer running even after the Workflow UNIX account has logged out, and to record standard output and error messages separately:
nohup $ORACLE_HOME/bin/wfmail.snd -f <config_file> 1>mailer.log 2>mailer_ err.log &
Where <config_file>
is equal to:
$ORACLE_HOME/wf/res/wfmail.cfg
$ORACLE_HOME/wf/res/wfmail.cfg
file is in Cleartext and poses a security problem, you can start the Notification Mailer without specifying the CONNECT parameter in the configuration file:
nohup $ORACLE_HOME/bin/wfmail.snd -f $ORACLE_HOME/wf/res/wfmail.cfg owf_ mgr/password@connect_string 1>mailer.log 2>mailer_err.log &