This chapter provides an overview of Real-Time Advisor environment preparation and discusses how to:
Build the Real-Time Advisor environment.
Enable a daemon group in PeopleSoft Enterprise Process Scheduler.
Note. This final step occurs outside the Set Up navigation component of PeopleSoft Enterprise Customer Relationship Management (PeopleSoft Enterprise CRM). Its purpose is to accelerate the performance of the recommendation engine. This step must be done to enable the daemon process and ensure accurate and up-to-date recommendations for deployed dialogs.
See Also
Setting Up Real-Time Advisor Dialogs
The PeopleSoft system provides statuses, steps, actions, and several predefined types for enabling Real-Time Advisor automatically. To take full advantage of the Real-Time Advisor, you should review all business processes and determine if there are any additional advisor types or characteristics that are appropriate for the recommendation scenarios and the dataset.
There are two parts to preparing Real-Time Advisor for use by the dialog creators who create the actual recommendation experience in the Advisor Workbench tool:
Define the Real-Time Advisor environment parameters to make dialog building blocks available for the dialog creator.
Environment preparation also ensures that the dialog creator operates under the proper constraints. This preparation includes defining actions, steps, statuses, types, and mapping characteristics.
Create and start Process Scheduler on the application server.
Create a daemon and add it to the application server that is running Real-Time Advisor. This ensures that data is managed effectively and is up-to-date for deployed dialog versions.
See Also
Enterprise PeopleTools 8.48 PeopleBook: PeopleSoft Process Scheduler
To build the Real-Time Advisor Element, use the Define Steps (RAD_STEPS), Define Actions (RAD_ACTIONS), Define Statuses (RAD_STATUS), Advisor Workbench (RAD_ADVISOR), Define Type (RAD_ADVISOR_TYP), and Define Characteristic Mapping (RAD_CHARA_MAP) components.
This section discusses how to:
Define actions.
Define statuses.
Define steps.
Define the dialog type.
Define characteristic mapping.
Test characteristic mapping.
Page Name |
Object Name |
Navigation |
Usage |
RAD_ACTIONS |
Set Up CRM, Product Related, Advisor, Define Actions |
Define all available actions. Action buttons control what an end user can do within dialogs. |
|
RAD_STATUS |
Set Up CRM, Product Related, Advisor, Define Statuses |
Define all available statuses. Statuses indicate allowable stages for dialog creation. |
|
RAD_STEPS |
Set Up CRM, Product Related, Advisor, Define Steps |
Define the steps that are necessary to create a dialog. |
|
RAD_ADVISOR_TYP |
Set Up CRM, Product Related, Advisor, Define Type |
Define the type of dialog to create. The type controls the use and functionality of a dialog. |
|
RAD_CHARACTER_MAP |
Set Up CRM, Product Related, Advisor, Define Characteristic Mapping |
Define mappings to retrieve the data that the Real-Time Advisor recommendation uses. |
|
RAD_REC_ENT_TEST |
Set Up CRM, Product Related, Advisor, Define Characteristic Mapping Click the Test Characteristic Mapping link, select either Stored Location or Value Location, and click the Test button. |
Test the characteristic mapping of the current definition. |
Access the Define Actions page.
Actions control the flow of a dialog. They are associated with a given page, and they are available to the user to make a decision.
Action |
Create the actions that are available for selection in the Advisor Workbench tool. The dialog creator can select which actions appear on a page based on the defined actions. Actions ultimately appear as buttons on the runtime pages. The PeopleSoft system provides these predefined actions: Next, Recommend, Save, Start Over, Exit, Answers, and Back. There is a 30-character limit. |
Sequence |
Specify the order of the buttons at runtime. Enter the sequence numerically with the lowest number appearing on the left side of the Real-Time Advisor runtime page. |
Label |
Enter the name that appears on the action button at runtime. In most cases the action name is the same as the label. There is a 75-character limit. |
Description |
Enter a description of the action. There is a 254-character limit. |
Select to determine the behavior of Real-Time Advisor when you click the action button. The values are:
|
Access the Define Statuses page.
The status indicates the development stage of the dialog. User-defined statuses provide flexibility.
Note. If a dialog is deployed, then the deployed version is available to calling applications. If the dialog is edited after deployment,
a new version is created and used by the Advisor Workbench tool. The deployed version is still available for use by a calling
application and is not changed.
If the edited version or the version in progress is subsequently deployed, then that version automatically becomes the deployed
version. Any in-progress versions are not available to calling applications until they are validated and deployed.
If the status of the dialog is set to Archived, then all versions of the dialog are inactive and no longer available to run.
Advisor types can have different dialog creation steps.
Enter the name of the step. There is a 30-character limit. |
|
Enter the description of the step. This description appears to the dialog creator in the Advisor Workbench tool. There is a 75-character limit. |
|
Select what the Advisor Workbench tool does when the step is activated. Values are:
|
The Define Type page enables you to determine which dialog can be created. You define the recommended object and the steps to use in the dialog. You can use any record in the database as the base recommendation table.
Note. The PeopleSoft system provides the predefined Product Advisor type to recommend products. However, you can set up the system to recommend any object in the database.
Enter the name of the advisor type. This name is available from the drop-down list box in the Advisor Workbench tool. There is a 50-character limit. Advisor type is important because it determines the object that a dialog recommends and the kind of dialog you are creating. The PeopleSoft system provides the predefined advisor type called Product Advisor. You use this type to recommend products from the PeopleSoft Enterprise CRM product data model. |
|
Status |
Select Active or Inactive for the dialog type. |
Description |
Enter a description of the type for reference purposes. There is a 254-character limit. |
Enter the record that contains the information for the recommended object. The system accesses this record to return recommendations. |
Cache functionality enhances the performance of the Real-Time Advisor recommendation engine by performing calculations and recommendations only as necessary. After the dialogs are created, the environment creator must perform additional setup from within Process Scheduler. The steps are outlined in the final section of this chapter.
Field Name |
Select the unique keys to extract from the base record. These keys uniquely identify the recommendable object. |
Sequence |
Enter the order in which the fields are returned. |
Note. The field values are SETID and PRODUCT_ID for the advisor type called Product Advisor, which uses the PROD_ITEM as its base record. These are the keys that identify products in the CRM product data model.
Enables you to select the steps that you want to appear and the order in which you want them to appear.
Description |
Displays an explanation of the different steps in the type. |
Sequence |
Enter the order of the steps in the type. |
Select Hidden if the step does not appear. Select Shown if the step appears but is optional. Select Required if the step appears and is required. |
Note. Advisor types for dialogs that are only used to collect data must contain these required steps: Select Questions, Page Management, Validate Dialog, and Test Dialog.
Advisor types for dialogs that are used to collect data and also provide recommendations should contain these steps: Select Questions, Page Management, Define Target Groups, Select Characteristics, Weighting Model, Validate Dialog, and Test Dialog. Include the Select Conditions step if you want conditions to influence the recommendations or page flow.
Advisor types for dialogs that are used for recommendations (without asking questions) should contain these steps: Select Conditions, Define Target Groups, Select Characteristics, Weighting Model, Validate Dialog, and Test Dialog.
Description |
Displays statuses that are defined in the status definition and enables the user to select the statuses to use for the advisor type. |
Select these check boxes to show the dialog creator which statuses to use in the Advisor Workbench tool. |
Note. Include a status of every status type when defining the advisor type. The various statuses are required so the Advisor Workbench tool can accurately determine the state of the dialog.
When an end user drills into a recommendation, Real-Time Advisor needs information about the type of information to present and how to present it. In the Detail Information group box, you specify the PeopleCode that the system launches when the user drills into a recommendation.
See Also
Working with Application Classes
Access the Define Characteristic Mapping page.
Characteristics are needed to create dialogs to recommend objects. A characteristic is an aspect of the recommended object; it is similar to an attribute or a property. Characteristic mapping enables the dialog creator to create dialogs without needing to understand the technical features of Real-Time Advisor or the underlying data model of the recommended objects.
Note. Use characteristic mappings to retrieve information from any PeopleSoft record. This flexibility enables Real-Time Advisor to expand with the data model.
Description |
Enter a description that appears to dialog creators in the Advisor Workbench tool. There is a 30-character limit. |
Status |
Select either Active or Inactive. |
Advisor Type |
Select to specify the advisor type that uses the characteristic. |
External Label |
Enter label text that appears in the Real-Time Advisor runtime environment when the recommended object appears in a recommendation. |
Click this link to verify that the mapping is valid. Test mappings to ensure that they encompass the appropriate objects and values. Otherwise, recommendation models may not have access to the necessary recommendable objects. Click the Test Characteristic Mapping link to return the objects or values matching the mappings. |
This information indicates where the characteristic is used in the Real-Time Advisor dialog.
Select to associate the characteristic with a display template. The display template is used at runtime to show information about a given object. |
|
Select to use the characteristic in a recommendation model. In the Advisor Workbench tool, the dialog creator can use the characteristic in a weighting model. |
|
Description |
Enter a description for the characteristic. There is a 100-character limit. |
Characteristic Stored Location
The recommendation engine uses this location to determine valid objects to recommend based on the Source Record, Field Name, and Where Clause fields.
The Advisor Workbench tool uses this information in the recommendation model. Objects that match the value are included in the recommendation object pool and are available for recommendations.
Here is an example characteristic mapping to create a recommendation characteristic that uses product attributes:
Note. Create a SQL view in PeopleSoft Enterprise Application Designer before using attributes in characteristics. These views have already been created for products in the CRM product data model. Use the PROD_ATTR_D_VW view to map product attributes that do not have predefined answers (such as numeric or character), and use the RB_PRDATTMAP_VW view to map product attributes that do have predefined or mapped answers. These views—or the views that you create—can access the attribute base records and the record that contains the attributes attached to the recommended object.
To create the mapping for mapped attributes:
Enter RB_PRDATTMAP_VW as the source record in the Characteristic Stored Location group box.
Select ATTR_ITEM_ID as the field name.
Select ATTRIBUTE_ID as the field name in the Where Clause group box.
Select = as the operator.
Enter the name of the attribute ID in the Character Value field.
Select Mapped Value in the Characteristic Value Location group box.
Enter RB_PRDATTMAP_VW as the source record.
Select ATTR_ITEM_Value as the value in the Description Field.
Select ATTR_ITEM_ID as the value in the Value Field.
Select ATTRIBUTE_ID as the field name in the Where Clause group box.
Select = as the operator.
Enter the name of the attribute ID in the Character Value field.
To create mapping for unmapped attributes:
Enter PROD_ATTR_D_VW as the source record in the Characteristic Stored Location group box.
Select the appropriate field name for the attribute type that you are mapping.
Values are:
If the attribute type is Numeric, select ATTR_NUMBER.
If the attribute type is Character, select ATTRIBUTE_VALUE.
If the attribute type is Date, select ATTR_DATE.
Select ATTRIBUTE_ID as the field name in the Where Clause group box.
Select = as the operator.
Enter the name of the attribute ID in the Character Value field.
Select Mapped Value for date and character attributes in the Characteristic Value Location group box.
Select Numeric for numeric attributes.
Note. If you select Numeric here, then mapping is complete. Otherwise, continue with these final steps.
Enter PROD_ATTR_D_VW as the source record.
Matching the previous selection, select ATTR_NUMBER, ATTRIBUTE_VALUE, or ATTR_DATE as the Description Field and as the Value Field.
Select ATTRIBUTE_ID as the field name in the Where Clause group box.
Select = as the operator.
Select the name of the attribute ID in the Character Value field.
Access the Test Characteristic Mapping page.
Select either Stored Location or Value Location, and click the Test button to test the characteristic mappings. The test of the characteristic mapping only tests the most recently saved definition.
*Test |
Select either Stored Location or Value Location. Selecting the Stored Location option returns the objects that match the mapping defined in the characteristic stored location. Selecting the Value Location option returns the values that match the mapping defined in the characteristic value location. |
Test |
Click this button to test the characteristic mapping. |
Number Of Test Results |
Enter a value to limit the number of test results returned. |
Note. If the characteristic is marked as having a value type of Numeric, no values are returned if the Value Location option is selected in the Test field.
This section provides an overview of the daemon and discusses how to:
Define a daemon group in Process Scheduler.
Activate the daemon group on the application server.
Run Process Scheduler.
The Real-Time Advisor recommendation engine uses a cache to precompute recommendations for deployed dialogs. The cache ensures dialogs are run efficiently for the end user. Dialogs that are not yet deployed take longer to run because the recommendation engine uses a series of searches to find the objects to recommend (as opposed to reading directly from a cache). Deployed dialogs always use the cache for recommendations, and they do not perform searches. Therefore, if the dialog versions are deployed, you must run the daemon to ensure recommendations are available and refreshed.
The daemon enables the recommendation engine to fill and refresh its cache, as determined by the configuration settings and the advisor type. When deciding the configuration settings for the daemon, you must understand the dynamics of the recommended object set. In a deployed environment, the cache needs to be refreshed as the object set changes. For example, suppose that you recommend products from a catalog, and you have recently eliminated some products from the catalog. In that case, you would not want the recommendation engine to consider the eliminated products. If you have a highly dynamic set of recommended objects, you must refresh the cache frequently to ensure efficient operation of the engine. If the set of objects is relatively static, the cache refresh does not need to be as frequent.
Note. The daemon and Process Scheduler do not need to be activated for Real-Time Advisor until dialogs have been deployed.
Page Name |
Object Name |
Navigation |
Usage |
DAEMONGROUP |
PeopleTools, Process Scheduler, Daemon Group |
Define a daemon group in Process Scheduler. |
|
SERVERDAEMON |
PeopleTools, Process Scheduler, Servers, Daemon |
Activate the daemon group on the application server. Note. Process Scheduler may be running on multiple servers. Select a server from the Servers search page and access the Daemon page for the selected server. |
See Also
Defining a Daemon Group in Process Scheduler
Access the Server Daemon Details page.
Select this check box. A daemon process is an Application Engine process that runs continuously when Process Scheduler is operational. It triggers other Application Engine processes based on the entered daemon group. |
|
Ensure that BOBASICS appears as the default value. BOBASICS should include the daemon group that you added on the previous page. |
|
Enter a sleep time to control the activity of the process. The daemon is a process that runs in the background, but it should not run continuously. The sleep time is the number of minutes that the daemon process waits before it checks for work. When the process becomes active, it checks for processes that have been run and process that need to be run on the process server. Note. The sleep time should be less than the dialog refresh (in minutes) as defined in the advisor types. |
|
A cycle is the sequence of sleeping and working. The system automatically counts the number of times that it sleeps and works. When it reaches the recycle count value, the daemon process restarts itself. |
Note. For processing errors and cache computation exceptions, check the PeopleSoft Real-Time Advisor log tables.
See Also
Enterprise PeopleTools 8.48 PeopleBook: PeopleSoft Process Scheduler
Create and start a Process Scheduler server.
You must create and start a process schedule to finish enabling the daemon. Running Process Scheduler activates the daemon, which periodically updates the Real-Time Advisor cache.
See Also
Enterprise PeopleTools 8.48 PeopleBook: PeopleSoft Process Scheduler