|Oracle® Fusion Middleware User's Guide for Oracle Business Process Management
11g Release 1 (188.8.131.52.3)
Part Number E15175-11
|PDF · Mobi · ePub|
This appendix explains how an administrator of either Oracle Business Process Management Workspace or Oracle BPM Worklist can add or modify strings shown in the application by creating a custom resource bundle.
Create a temporary directory at any location, for example,
/scratch/jstein/sharedLib. This will contain all the individual JAR files as well as the shared library JAR file,
custom.client.applib.jar. Do this step before doing any of the following steps.
This section tells you how to customize a resource bundle.
To customize a resource bundle:
Create an Oracle Application Development Framework Project in Oracle JDeveloper. Figure B-1 shows the Create Fusion Web Application (ADF) dialog box.
Figure B-1 Creating an ADF Project in JDeveloper
Create a Java class and name it
CustomResourceBundle. Figure B-2 shows the Create Java Class dialog box.
Figure B-2 Creating a Java Class
Include Worklist Application
JAR files. Figure B-3 shows the BPM Worklist Components library being added.
To include the Worklist Application JAR files:
From the Project Properties panel, select Libraries and Classpath.
Select Add Library.
From the Libraries list, select BPM Worklist Components.
Figure B-3 Including Worklist Application in the Library
Modify the CustomResourceBundle class. The class should look as in Figure B-4:
Figure B-4 Modifying the CustomResourceBundle Class
Make sure that this class extends the correct WorklistResourceBundle and that the
getContents() method is implemented the same way in all the supported language bundles.
Create Various Custom Resource Bundles for Other Language Support
You can create various custom resource bundles with different names under the same package. When you do so, you must append the locale to the file name. For example, for English US, your Custom Resource Bundle name will be
CustomResourceBundle_en.java. Make sure you implement the
getContents() method the same way as described in Step 4.
By default, you need to create both the file
CustomResourceBundle.java and the file
CustomResourceBundle_en.java. This is because we use the English (
_en) resource bundle by default during the application login. Otherwise, login would fail.
Create a new
JAR deployment profile as shown in Figure B-5.
Figure B-5 Creating a Deployment Profile for a JAR File
Make sure your JAR deployment profile looks like what is shown in Figure B-6.
Figure B-6 Verifying JAR Deployment Profile
Edit the JAR file location to point to the newly created directory as shown in Figure B-7.
Figure B-7 Editing the JAR Deployment Profile
Deploy the resource bundle as a JAR file as shown in Figure B-8.
Figure B-8 Deploying the Resource Bundle
The file is then deployed to the pre-defined location, namely, the shared library directory.
For more information about resources bundles and how to customize them, see Oracle Fusion Middleware Developer's Guide for Oracle SOA Suite.