Jump to: navigation, search

Publish the CEP Rules Template

DevGuide2.png Purpose: To publish the CEP Rule templates which enable the rules creation.

Import the CEP Rule Templates of your Application in the Genesys Rules Development Tool

DevGuide2.png Purpose: To import the template created by the create script in the Genesys Rules Development Tool. Even if you do not plan to customize this template, your rules template must be published in the Rules System Repository before you try to create rules.
Prerequisites

Start

  1. Navigate to Window > Open Perspective > Other > Template Development to switch to the Template Development perspective of the Genesys Rules Authoring Developer Tool.
  2. Select File > Import....
  3. In the Import dialog window, navigate to General > Existing Projects into Workspace. Click Next.
  4. Select Select Root Directory:, then click Browse.
  5. Import your project:
    • Browse the \apps\<application name> folder of the Genesys Web Engagement Installation directory and navigate to the \_composer-project\WebEngagement\WebEngagement_CEPRule_Templates subdirectory.
    • Click OK. The WebEngagement_CEPRule_Templates_<application name> is added to the Projects list view of the Import Dialog Window.
    • Select the WebEngagement_CEPRule_Templates_<application name> project.
    • Warning: Do not enable the option Copy projects into workspace.
      Import the default templates by clicking finish.
    • Click Finish to import the project.

End
As a result, the CEP_Rule_Templates_<application name> is added to the Project Explorer.

The CEPRule Template MyProject is added to the Project explorer.



Next Steps
Resultset next.png Configure the CEP Rule Templates

Configure the CEP Rule Templates

DevGuide2.png Purpose: To configure the project properties.
Prerequisites

  • The Web Engagement Categories business attribute was previously defined in Genesys Administrator.

Start

  1. In the Project Explorer, right-click on the WebEngagement_CEPRule_Templates project. Click on Properties.
  2. In the Properties dialog window:
    • Navigate to Template Properties. In Publishing Data, set Type to web_engagement.
      GWE-CEPRulesTemplateComposerProjectProperties.png
    • Navigate to Template Properties > Imports. The Imports panel shows up.
    • Select the option Enable global imports.
      GWE-ImportsPropertiesCEPRules.PNG

      Note:The com.genesyslab.wme.cep.api.Event and com.genesyslab.wme.cep.drools.EventDispatcher packages must be present.
    • Click OK.
  3. In the Project Explorer, navigate to WebEngagement_CEPRule_Templates > Parameters > category.
  4. In the Parameters Editor Panel, set the Web Engagement Categories value for the Attribute Name option.
    Set the Attribute Name for Web Engagement
    Set the Attribute Name for Web Engagement.
  5. Save.

End

Next Steps
Resultset next.png Publish the CEP Rule Templates in the Rules Repository

Publish the CEP Rule Templates in the Rules Repository

DevGuide2.png Purpose: To publish the template in the repository to enable the rules creation in Genesys Rules Authoring Tool.
Prerequisites

Start

  1. In Project Explorer, right click on WebEngagement_CEPRule_Templates.
  2. Select Publish. The Publish Template Wizard dialog box opens.
    GWE-publishInComposer.PNG
  3. Select WebEngagement_CEP_Rule_Templates.
    GWM Publish selectRulesInComposer.png
    Click to enlarge
  4. Click Finish.

End

Next Steps
Resultset next.png Build and Deploy

This page was last edited on July 17, 2020, at 15:48.
Comments or questions about this documentation? Contact us for support!