|Oracle® Communications Billing and Revenue Management Developer's Guide
Part Number E16702-08
|PDF · Mobi · ePub|
This section describes the procedures for adding custom fields to your Oracle Communications Billing and Revenue Management (BRM) Customer Center implementation.
Before you read this chapter, you should be familiar with these concepts:
Storable Class Editor in Developer Center. For more information, see Storable Class Editor Help.
You should also have a working knowledge of JBuilder.
To code and deploy custom fields for Customer Center, perform these tasks in this order:
As with all BRM Java clients, the field numbers for Customer Center custom fields must be added to Infranet.properties. If you add custom fields to Customer Center:
Add your custom field numbers to the Infranet.properties file.
Before creating your jar file, copy the modified Infranet.properties file to the top level of the directory structure along with your other compiled source files.
Note:When Customer Center is deployed by using Web Start, an Infranet.properties file is normally not required since the BRM host and port information is read from the Web Start .jnlp file. However, if the Infranet.properties file exists in the CLASSPATH, it is recognized by Customer Center, or, more specifically, Portal Communication Module (PCM).
For example, if you are adding a custom credit score field and a custom panel for displaying that field, the file and directory structure might look like this:
Note that the Infranet.properties file is at the top level of this directory structure.
This jar command:
jar cvf ccCustomFields.jar .
Generates a jar file containing:
0 Mon Dec 10 09:03:40 PST 2002 META-INF/MANIFEST.MF
0 Mon Dec 10 08:58:28 PST 2002 Infranet.properties
0 Mon Dec 10 09:01:14 PST 2002 com/
0 Mon Dec 10 08:58:54 PST 2002 com/mycompany/
0 Mon Dec 10 08:58:54 PST 2002 com/mycompany/CustomPanel.class
0 Mon Dec 10 09:01:36 PST 2002 customfields/
0 Mon Dec 10 09:01:36 PST 2002 customfields/CreditScore.class
Important:Be sure to include the "." at the end of the jar command. This specifies the current directory.
Note:This example assumes that you have only one Infranet.properties file packaged in a jar file per Customer Center deployment. The jar file is recognized and picked up when Customer Center is run.
For detailed custom field development procedures, see "Adding Custom Fields to Customer Center".
This section describes how to select the custom fields profile object that you want to add to Customer Center.
Note:This procedure uses the sample profile object /profile/customfieldsprof. Replace this object name with the one you create in Developer Center.
Start Storable Class Editor in Developer Center.
Create your custom fields in a profile object.
For information, see the Storable Class Editor Help.
Create a directory in the CustCntr/custom directory for your custom field Java code, as in this example:
Choose File – Generate Custom Fields Source.
Click Browse and select the CustCntr/custom/custom_fields directory.
Note:If you are deploying only in Java, you can deselect the option to export C code.
The source Java code for your custom fields is generated in CustCntr/custom/custom_fields. In this example, these files are:
Click OK in the confirmation dialog box.
This section describes how to compile and sign the profile object that you created by using the Storable Class Editor.
Go to the CustCntr/custom/custom_fields directory.
Copy the contents of the custom fields file (CCSDK_Home/CustomerCareSDK/CustCntr/custom/custom_fields) to the end of the CCSDK_Home/CustomerCareSDK/CustCntr/bin/Infranet.properties file by using a text editor.
Note:The InfranetPropertiesAdditions.properties file contains information required when running code that references your custom fields.
Rename the CCSDK_Home/CustomerCareSDK/CustCntr/custom/custom_fields/InfranetPropertiesAdditions.properties file to Infranet.properties.
You use this file for deploying your custom fields with WebStart. This file is similar to the one you created in step 2 except it doesn't contain the connection and login parameters.
If you have more than one set of custom fields, merge all associated InfranetPropertiesAdditions.properties files.
Note:If you are deploying multiple sets of custom fields (you used Developer Center to generate multiple custom source files), you have several copies of the InfranetPropertiesAdditions.properties file. You must merge all of these files into the CCSDK_Home/CustomerCareSDK/CustCntr/bin/Infranet.properties file.
Compile your custom fields.
Go to your custom field directory (CCSDK_Home/CustomerCareSDK/CustCntr/custom/custom_fields).
Compile your source code:
javac -classpath ../../../lib/pcm.jar -d . *.java
A directory matching the Java package name of your custom fields (in this example, customfields) is created.
Package the compiled code and the revised Infranet.properties file, as in this example:
jar cf ../ccCustomFields.jar customfields Infranet.properties
The jar file is placed up one level in the CCSDK_Home/CustomerCareSDK/CustCntr/custom directory.
If you are deploying the jar file using Web Start, sign the jar file.
Go to CCSDK_Home/CustomerCareSDK/CustCntr/custom directory and find your jar file.
Sign your jar file by using the signjar script, as in this example:
Verify that the signing process completed properly by using the jarsigner utility provided in the JDK:
jarsigner -verify ccCustomFields.jar
The expected output is:
This section describes how to configure your custom fields in JBuilder. This enables you to use the fields later when building a new panel or other customization.
Before you use JBuilder to configure your custom fields, set up a JBuilder project. See "Setting Up JBuilder to Customize the Customer Center Interface".
Open your BRM project. See "Creating a JBuilder Project for Customer Center SDK".
Chose Project – Project Properties.
Click the Required Libraries tab.
You should see a single library named CCSDK.
Select the CCSDK library and then click Edit.
In the Configure Libraries dialog box, click Add.
Go to your CCSDK install directory, select your custom fields jar file, and then click OK.
Click OK in each of the open dialog boxes.
Go to the CCSDK_Home/CustomerCareSDK/CustCntrExamples/Profile directory.
Copy ProfileTemplate.txt to your custom fields file (CustomFieldsProfile.java in this example).
Choose File - Open File and open the CustomFieldsProfile.java file.
Replace the two instances of XXX with your Java Class name (CustomFieldsProfile in this case).
In CustomFieldsProfile.java, find this line:
And specify the customfieldsprof subclass:
This maps to the profile object created in Developer Center. This example shown in Figure 36-1 references the /profile/customfieldsprof profile object.
Click the Design tab at the bottom of the JBuilder window.
Verify that you can launch the Business Application SDK (BAS) widget Configurator and that it displays your custom profile object and custom fields.
In the widget palette at the top of the JBuilder window, click the CCSDK Components tab.
In the lower left pane, click the PIATextfield widget. This is typically the first widget in the list.
Drag the widget into your panel.
Right-click the widget instance on the left side of the window and click Configurator.
If prompted, log in to BRM.
Expand the node containing your custom field and select your profile object.
If your profile object is visible in the configurator, you have successfully made JBuilder aware of your custom fields. You can continue constructing your panel. If it is not visible verify that:
Your JBuilder library path is correct.
There are no errors in the Infranet.properties file you modified in CustCntr/bin when you combined the existing file with the InfranetPropertiesAdditions.properties file that was generated by Developer Center.
Your CustCntr/bin/Infranet.properties file contains the entries for your custom fields. Choose Project – Project Properties in JBuilder, click the Required libraries tab select CCSDKlib in the list, and click Edit. Verify that CustCntr/bin and ccCustomFields.jar are in the list.
When you have completed your panel layout, save your changes.
This section describes how to build and deploy your custom fields in your custom profile panel:
Run Configurator to add your profile panel to Customer Center, and save your changes:
Run the build script (CCSDK_Home/CustomerCareSDK/buildAll.bat). This script compiles and packages your new panel into the CCSDK_Home/CustomerCareSDK/CustCntr/custom/ccCustom.jar file.
Add ccCustomFields.jar to the CLASSPATH in the CCSDK_Home/CustomerCareSDK/CustCntr/bin/runCustomerCenter:
Test your customizations. See "Testing Your Customizations".
To deploy your customizations with Customer Center WebStart:
Open the CCSDK_Home/CustomerCareSDK/CustCntr/custom/custom.jnlp file with a text editor.
Add this entry for ccCustomFields.jar:
Continue with the standard deployment procedure. See "Deploying Your Customer Center Customizations".